Forum Discussion
Need help to get the LTM command get the name of the VIP and IP of VIP and VLAN of VIP in one output
Hi Thiyagu,
You can try this from command line:
"tmsh list ltm virtual | grep virtual destination vlan"
If you're not using grep, then it will shows all VS configuration component. Filter the component that you need using grep.
Regards,
Ahmad
- Thiyagu_343098May 04, 2018
Nimbostratus
Thanks a lot Ahmed.
Could you please help me to know , can we use multiple grep in the same command output to filter?
Regards, Thiyagu
- Samir_Jha_52506May 04, 2018
Noctilucent
You can call multiple grep in single unix command...
Output of 1st grep command will input of other grep n so on... Some manual work require to get vlan details against vip ip.
- mr_shaggy_17493May 04, 2018
Nimbostratus
Well the previous command will filtering the "list ltm virtual" results to only the configuration component which is containing the word virtual, destination, and VLAN.
- virtual for filtering VS name
- destination for filtering VS address
- vlan for filtering VLAN config on the VS
This is the result on my bigip:
root@(F5)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm virtual | grep virtual destination vlan ltm virtual vs_Apps80 { destination 10.4.40.78:http vlans { vlan_ASM vlans-enabledRegards,
Ahmad
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