Forum Discussion
How to get the list of severs which are disabled and enabled on LTM we are using version:BIG-IP 10.2.4 Build 771.30
Hello Team,
There is a requirement to our Process on how to get the List of servers which were enabled and disabled.
is there any way to find all the enabled and disabled servers in a single Log file.
we are using version:BIG-IP 10.2.4 Build 771.30
2 Replies
- nitass
Employee
not sure if this is useful.
root@ve10(Active)(tmos) show sys version|grep -i -A 6 package Main Package Product BIG-IP Version 10.2.4 Build 817.0 Edition Hotfix HF7 Date Mon May 20 15:08:56 PDT 2013 root@ve10(Active)(tmos) list ltm virtual ltm virtual bar { destination 172.28.24.9:http disabled ip-protocol tcp mask 255.255.255.255 profiles { http { } tcp { } } rules { qux } snat automap } ltm virtual fwd { destination any:any ip-forward mask any profiles { fastl4_loose-init { } } snat automap translate-address disabled translate-port disabled } root@ve10(Active)(tmos) list ltm virtual all enabled ltm virtual bar { } ltm virtual fwd { enabled } root@ve10(Active)(tmos) list ltm virtual all disabled ltm virtual bar { disabled } ltm virtual fwd { } - Kevin_Stewart
Employee
Also give this a shot:
tmsh list ltm virtual all disabled |perl -pe 's/(?<={)\n//' |grep disabled |awk -F" " '{ print $3 }'The "tmsh list ltm virtual all disabled" command will return all of the VIPs, but then expands on the disabled ones. The above takes that output, removes newlines immediately following an open curly (when there's expanded data), greps on "disabled", and the awk prints the 3rd field - the VIP name.
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