Forum Discussion

Antony2015's avatar
Antony2015
Icon for Altostratus rankAltostratus
Mar 04, 2015

How to rename a virtual server in tmsh or bash ( F5 LTM 11.5.x)

Hi All,

 

How to rename a virtual server in tmsh or bash ( F5 LTM 11.5.x)

 

Local Traffic ›› Virtual Servers

 

Name :

 

From

 

aa-dc.xx.com-vip-443

 

to

 

aa-dc.yy.com-vip-443

 

I tried using vi editor and "sed" command to change the name, its loading the configuration correctly , but the name is not changing.

 

Appreciate your quick response on this. Thanks

 

5 Replies

  • In versions previous to 11.6, I've heard that you can edit the

    bigip.conf
    file manually and save it, but from what I gather, that's not the most stable way to do it, and could cause some undesired headaches. From 11.6 there is the ability to change names on some objects. Here's a question about how to rename objects in 11.6, if you were to upgrade.

    The way I've had to handle renaming objects in 11.5 (specifically virtuals) is to use tmsh to list the config for the virtual, and then modify the config to use another ip/port temporarily and make a copy of the config with a different name using the original server/ip combination. With this method, you do need to be cognizant of where the hooks are to that original vs so you can update them to use the new one and then remove the old VIP.

  • shaggy's avatar
    shaggy
    Icon for Nimbostratus rankNimbostratus

    I used to edit bigip.conf, but I noticed many more issues afterwards (having to rebuild MCP database) than prior versions. I currently will delete/recreate objects if a rename is needed. There is user-impact, so I have to complete the changes off-hours or only to applications that can take the risk, but the delete/create commands can all be completed very quickly with TMSH commands

     

  • I also am facing this due to restandardization of naming conventions. Is anyone able to put a list together on which config files to modify?

     

  • What if you change the service port to 0 (all) on the old virtual.

     

    Then when you add the new virtual in, with the specific port, it will take over traffic for that particular port?

     

    Then you could delete the old one...

     

    Would that work?

     

  • Please let me know if we modify the VS name in the conf file [LTM 11.6], will it impact incoming connections while editing? Does this change needs any downtime? Im talking about the method where in VIP is renamed in bigip.conf and saving it, then verify using "tmsh load sys config verify partitions all". However we have only a common partition in the system I am planning to modify VS name.