F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

SJoshi_230759's avatar
SJoshi_230759
Icon for Nimbostratus rankNimbostratus
Mar 30, 2016

Want to rename a Virtual Server on a F5 LTM

I want to rename a Virtual Server on a F5 LTM.

 

I got a request to change the name of virtual server ( VIP ). Deleting the VIP, pool, snat pool etc and then recreate them with a new name will take lot of time. I want to replace the existing object with new one by using sed editor. I have prepared one sample config.

 

cp bigip.conf bigip.conf.bak

 

CHANGE NAME

 

Next we amend the old object name with its new name.

 

sed -i 's/[OLD NAME]/[NEW NAME]/g' bigip.conf

 

VERIFY CONFIGURATION

 

b verify load

 

COMMIT CONFIGURATION

 

b load

 

Can someone please check the config and shared the feedback.

 

4 Replies

  • We are using 11.4.1 version cat /VERSION Product: BIG-IP Version: 11.4.1 Build: 685.32 BaseBuild: 608.0 Edition: Engineering Hotfix HF9
  • Bad luck ;-) starting with 11.6.0, f5 provides a renaming function for objects - see 11.6.0 release notes: Object move and rename (early access) This release provides early access to the feature that enables move/rename of specific BIG-IP object types, such as virtual servers, virtual addresses, pools (implicitly moves pool members), nodes, monitors, profiles, iRules, iApps, device names, self IP addresses, iCall, and folders. Note that this functionality is not provided for VLANs or Partitions.
  • I think your approach should work. However, manually editing and reloading configuration files is generally not recommended and might lead to other problems such as this one (although the version in use at your site is not affected by this specific bug).

     

    If you are running an HA environment, you could alternatively think about doing all the changes on the standby unit (auto sync being disabled) and then sync config to the active one, thus minimizing the amount of time for the change to happen on the active side.