Forum Discussion

Chris_Olson_172's avatar
Chris_Olson_172
Icon for Altostratus rankAltostratus
Feb 08, 2013

command line port change on VIP

I have looked everywhere for command line syntax to change the service port on a virtual. I cannot find it anywhere. I am in a managed envrionment with command line access only to the F5.

 

Is it even possible without the GUI? For example, the port below ddi-tcp-1 (8888) needs to be changed to webcache (8080). Can I do this from the command line?

 

Thank you,

 

Chris

 

virtual HL7_server {

 

snat automap

 

pool pool_hl7_server

 

destination 2XX.XXX.XX.00:ddi-tcp-1

 

ip protocol tcp

 

persist source_addr

 

profiles {

 

Http_compression {}

 

tcp {}

 

}

 

}

 

 

 

8 Replies

  • Kernel:

     

    Linux 2.6.18-164.11.1.el5.1.0.f5app

     

    Package:

     

    BIG-IP Version 10.2.1 473.0

     

    Hotfix HF1 Edition

     

  • Great, thanks. So, using tmsh you'd use this command: [tmsh] modify ltm virtual 'name' destination ip_address:port
  • Thank you VERY much! I have little experience with tmsh. I've only needed to use the "b" commands to get what I've needed done. I will read up on it.

     

    Thanks again,

     

    Chris

     

  • Hi Chris, if you prefer to use bigpipe the following command will do the same thing:

     

     

    b virtual [name] destination [ip_address]:[port]

     

     

    TMSH completely replaces bigpipe in v11 so it might be a good idea to get familiar with that!
  • That's so simple it's almost embarrassing. Thanks again. I'll brush up on TMSH.
  • Also, it is important to note that like bigpipe, changes made using tmsh commands aren't saved automatically. The command to do that is: tmsh save /sys config