Forum Discussion

Jacob_Becker's avatar
Jacob_Becker
Icon for Nimbostratus rankNimbostratus
Nov 16, 2007

bigip.conf parser

Does anyone know if there an exist an bigip.conf parser module for perl or python? Basically what I would like to be able to do is extract information from the conf, such as virtual server name, ip address, and pool. And then turn around and update a wiki. But before going out and writing something new, I thought I would ask.
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    I haven't heard of anyone propagating to a wiki with perl. But you could use the output from 'b virtual' to get similar output.

     

     

    Here's the output for two virtual servers on the same IP. You can use 'b virtual help' to get more detail on the function.

     

     

     

    VIRTUAL ADDRESS 10.0.142.212 UNIT 1

     

    | ARP enable

     

    | (cur, max, limit, tot) = (0, 94, 0, 153808)

     

    | (pkts,bits) in = (387680, 198.8M), out = (311772, 273.4M)

     

    +-> VIRTUAL ext_webmail_https_vs SERVICE 443

     

    | PVA acceleration none

     

    | (cur, max, limit, tot) = (0, 46, 0, 195)

     

    | (pkts,bits) in = (3253, 5.740M), out = (4253, 28.57M)

     

    | requests (total) = 695

     

    +-> RULE webmail_Front-End-Https_header_insert_rule

     

    | +-> HTTP_REQUEST 695 total 0 fail 0 abort

     

    +-> RULE log_http_headers_rule

     

    +-> HTTP_REQUEST 695 total 0 fail 0 abort

     

    +-> HTTP_REQUEST_SEND 695 total 0 fail 0 abort

     

    +-> HTTP_RESPONSE 680 total 0 fail 0 abort

     

    +-> POOL webmail_http_pool LB METHOD round robin MIN/CUR ACTIVE MEMBERS 0/1

     

    | (cur, max, limit, tot) = (0, 49, 0, 425)

     

    | (pkts,bits) in = (3738, 5.838M), out = (4007, 28.15M)

     

    +-> POOL MEMBER webmail_http_pool/10.0.142.211:80 active,up

     

    | session enabled priority 0 ratio 0

     

    | (cur, max, limit, tot) = (0, 49, 0, 425)

     

    | (pkts,bits) in = (3738, 5.838M), out = (4007, 28.15M)

     

    | requests (total) = 693

     

     

     

     

     

    Aaron