Forum Discussion

cmaloy_15909's avatar
cmaloy_15909
Icon for Nimbostratus rankNimbostratus
Mar 28, 2011

Perl LocalLB::VirtualServer label question

I am using the Perl iControl SDK and retrieving F5 data via the LocalLB::VirtualServer interface. I am trying to build a tool which displays F5 virtual server/pool info for each of 40 applications. There are multiple virtual servers per application and our virtual server naming convention is not consistent. For example, we could have an application named Benefits with virtual server names of vs_benefits.abc.com and vs_compensation.abc.com. I'm wondering if there is a field within the virtual server configuration that can be used as a application label. In other words I would retrieve all virtual servers and then display all virtual server info where the application label was Benefits.

 

 

The iControl code to retrieve all of the virtual server info is working fine. I just need help with correlating the virtual server names to an Application ID. Ideally we would have just named our Virtual Servers with the Application ID + FQDN, but hindsight is 20/20. Any help would be appreciated. Thanks.

 

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Only the name I'm afraid... It would be nice to have a short and a long description for VS's... And Pools... Very nice... Or even the ability to rename existign ones. But short of vi and attacking the config file by hand (Or sed :), you're out of luck at the moment...

     

     

    H
  • You could look at externalizing the those application names into a separate data store. Data groups come to mind... You could add the virtual name and app name into a record in a string class and then build some client code to parse it out. I'll see what I can do to come up with some sample code for that when I get a chance.

     

     

    -Joe