Forum Discussion
list ltm profile
We are on BIG-IP 14.1.5 Build 0.0.7 Final.
I am coding a script to move a VIP from one partition to another since we use more than just /Common. It will use the tmos "list ltm" command with the one-line option to grab the related json. It will then remove those objects found from the current partition, change to the new partition, and do the following to recreate it in another partition:
load sys config merge from-terminal
Paste the configuration to load the end with CTRL-D
My script needs to pull all the related objects that a VIP has like pool, monitor, profile, policy, etc. So far the only thing I've not been able to do with the list ltm command is to list out a cookie insert persistence profile.
For example, one VIP has a cookie insert persistence profile /Imaging/imagingapidev.yrcw.com_cookie_pers. I have not found the right syntax to list it. In tmos when I look at the help for list ltm profile, there is nothing about persistence or cookie listed as a component. What component do I use?
list ltm profile ?????? /Imaging/imagingapidev.yrcw.com_cookie_pers one-line
This works for pool:
list ltm pool /Imaging/imagingapidev.yrcw.com_pool one-line
This works for virtual:
list ltm virtual /Imaging/imagingapidev.yrcw.com_vs one-line
etc. Just need to figure out how to list persistence profile.
Hi garylonbrown,
Cookie Persistence:
list ltm persistence cookie /partition/name
https://clouddocs.f5.com/cli/tmsh-reference/v15/modules/ltm/ltm_persistence_cookie.html
Source Address Persistence:
list ltm persistence source-addr /partition/name
https://clouddocs.f5.com/cli/tmsh-reference/v15/modules/ltm/ltm_persistence_source-addr.html
Hi garylonbrown,
Cookie Persistence:
list ltm persistence cookie /partition/name
https://clouddocs.f5.com/cli/tmsh-reference/v15/modules/ltm/ltm_persistence_cookie.html
Source Address Persistence:
list ltm persistence source-addr /partition/name
https://clouddocs.f5.com/cli/tmsh-reference/v15/modules/ltm/ltm_persistence_source-addr.html
- Gary_Lon_BrownAltostratus
Thanks. That works.
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