Forum Discussion

Vincent_Malguy_'s avatar
Vincent_Malguy_
Icon for Nimbostratus rankNimbostratus
Oct 11, 2007

snmp pool monitoring

Hi,

 

 

I am playing with snmp inside a perl script. Thank for the file MIB_deconstructed that help a lot.

 

 

Still, I have some questions :

 

 

1-Does someone have a perl fonction to print the ip in hexa format (for exemple , the result of the iod .1.3.6.1.4.1.3375.2.2.10.1.2.1.3.4.86.73.80.49

 

 

2-Does someone have a perl function/table to print in humanreadable what is return in the ltmPoolLBMode (iod : .1.3.6.1.4.1.3375.2.2.5.1.2.1.2.10.116.101.115.116.95.114.97.116.105.111

 

) ?

 

 

3-Does someone have "a way" to get the member that are inside a pool ?

 

 

Regards,

 

F5 PC certified,

 

Vincent.
  • the first question is anwsered :

     

    @IP = split "", $polled_oids->{$vs_ip};

     

    print hex ($IP[2].$IP[3]).".".hex ($IP[4].$IP[5]).".".hex ($IP[6].$IP[7]).".".hex ($IP[8].$IP[9]);

     

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    for 1 & 2:

     

    I think what you are looking for here is "snmptranslate" which is one of the utilities included with the snmp distribution. See Jeff's first comment at the end of the SNMP MIB article for a few more details: Click here

     

     

    Pool members roll up under the pool OID, will look it up & post back when I get back to a workstation w/Excel.

     

     

    HTH

     

    /deb