Forum Discussion

Nanda_Kumar_676's avatar
Nanda_Kumar_676
Icon for Nimbostratus rankNimbostratus
Feb 22, 2010

BIGPIPE Command

Hello,

 

 

I am not sure if this is the right place to post my question. I am sorry if my question dose not belong here. I have been given a task to generate a list of offline virtual server and its associated pool and pool member details. I know the "bigpipe virtual all show" will list all the details but some tweak is required for only to see the offline virtual server. Right now I am doing a tedious task by manually finding the details. Any help will be greatly appreciated.

7 Replies

  • Hi Nanda,

     

     

    This is a good place for such a question.

     

     

    Which LTM version are you running?

     

     

    Are you mostly interested in finding virtual servers that have been manually disabled? Or do you want to find a VIP which is down because there are no pool members?

     

     

    Are you wanting to check this regularly or detect when a VIP goes down?

     

     

    Thanks,

     

    Aaron
  • Hi,

     

     

    Thank you for the response.

     

     

    I am running LTM 9.1.1. I am interested in finding list of virtual servers which is down because there are no pool members or down because pool members are down. This is only one time task so that we can approach application owners to identify weather they still need that Virtual server.

     

     

    Regards,

     

    Nanda Kumar.R
  • If it's just a one time deal, you could piece this together in a few steps:

     

     

    - Filter in the GUI's virtual server page for VIPs which are unavailable and save the list of VIP names to a text file on the LTM filesystem as /var/tmp/vip_names

     

    - Run the following command:

     

     

    grep -A 2 -f /var/tmp/vip_names /config/bigip.conf|egrep "(^virt|pool)"

     

     

    If you want to get the pool membership list, you could grep for the pool name, save that to a file and then use:

     

     

    grep -A 2 -f vip_names /config/bigip.conf| grep pool| awk '{print "b "$0" list"}'| bash

     

     

    I'm sure there are more complete ways to handle this. But I don't think it's worth the time to develop a proper script if you only need to do it once.

     

     

    Aaron
  • Aaron, Can you please provide me more detailed instructions to perform this. I am not very good at linux / unix. I actually saved the list of VIP names as .txt on my system and copied it back to LTM (/var/tmp/vip_names). When I run the command - grep -A 2 -f /var/tmp/vip_names /config/bigip.conf|egrep "(^virt|pool)" - it dose not give me any out put.
  • Can you run:

     

     

    grep -A 2 -f /var/tmp/vip_names /config/bigip.conf

     

     

    and see if it returns anything? If so, can you post the anonymized output? If not, either the file isn't readable or it doesn't contain the virtual server names.

     

     

    Thanks,

     

    Aaron
  • Aaron, Here is the output. It still dose not show me any thing.

     

     

    [root@int-f5-mgmt-alpha:Standby] vip_names pwd

     

    /var/tmp/vip_names

     

    [root@int-f5-mgmt-alpha:Standby] vip_names grep -A 2 -f /var/tmp/vip_names /config/bigip.conf

     

    [root@int-f5-mgmt-alpha:Standby] vip_names

     

     

    The content of vip_names.txt file is as below.

     

    UAT_AdminUserAdmin_VS_8088

     

    UAT_UserAdmin_VS_8083

     

    UAT_Datawarehouse_VS_8080

     

    UAT_eCatMgmt_VS_81

     

    UAT_Tracker_VS_80

     

    UAT_IDM_VS_80

     

    UAT_EA_VS_80

     

    UAT_ALSCEM_VS_8202

     

    UAT_GC3_VS_80

     

    UAT_WPSDev_VS_9081

     

    UAT_TranTrac_VS_8097

     

    UAT_ALUserMaint_VS_8110

     

    UAT_UCCNETVisibilityService_VS_8121

     

    UAT_BusinessLibraryClient_VS_8126

     

    UAT_WebEventsMgmt_VS_80

     

    vip-qa-ws-ideastore-https-sdeu

     

    vip-qa-ws-ideastore-http-sdeu

     

     

  • It looks like you created a directory and then a file named vip_names. If that's the case, can you change the grep command to:

     

     

    grep -A 2 -f /var/tmp/vip_names/vip_names /config/bigip.conf

     

     

    If that works, then try:

     

     

    grep -A 2 -f /var/tmp/vip_names/vip_names /config/bigip.conf|egrep "(^virt|pool)"

     

     

    Thanks,

     

    Aaron