Forum Discussion

Satya_09_155275's avatar
Satya_09_155275
Icon for Nimbostratus rankNimbostratus
May 19, 2014

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

  • 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 { }
    
  • 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.