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
Hello All, I'm working on a taks to get the the name of the VIP and IP of VIP and VLAN of VIP. I'm looking for a single LTM command which would help to get out the required data.
could you please help me with this.
Regards, Thiyagu
- mr_shaggy_17493
Nimbostratus
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_343098
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_52506
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_17493
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-enabled
Regards,
Ahmad
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