Forum Discussion
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
- tatmotiv
Cirrostratus
Which TMOS version are you running? - SJoshi_230759
Nimbostratus
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 - tatmotiv
Cirrostratus
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. - tatmotiv
Cirrostratus
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com