Forum Discussion
2 Replies
Sort By
- nitassEmployee
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_StewartEmployee
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.