PDU Discovery using SNMP

luisescobar
Kilo Contributor

I'm running an snmp probe against a PDU device and getting the following back from the probe:

<outletTable oid="1.3.6.1.4.1.1718.3.2.3">

<outletEntry oid="1.3.6.1.4.1.1718.3.2.3.1">

<outletName oid="1.3.6.1.4.1.1718.3.2.3.1.3">

<unk_1 oid="1.3.6.1.4.1.1718.3.2.3.1.3.1">

<unk_1 oid="1.3.6.1.4.1.1718.3.2.3.1.3.1.1" type="SnmpOctetString">Open_Outlet_A1</unk_1>

</unk_1>

<unk_2 oid="1.3.6.1.4.1.1718.3.2.3.1.3.2">

<unk_1 oid="1.3.6.1.4.1.1718.3.2.3.1.3.2.1" type="SnmpOctetString">Open_Outlet_B1</unk_1>

</unk_2>

</outletName>

I'm trying to loop and extract through both <outletName> values (Open_Outlet_A1 and Open_Outlet_B1) but so far have been unssuccessful.

Here is the code that I've been working with

var outlets = g_disco_functions.getXMLMemoryTable( 'outlets', this.document, '//serverTech/sentry3/systemTables/outletTable/outletEntry/' );

      // process the outlets

              var outlet_list = '';

              outlets.first();

              while (outlets.next()) {

                      var dn = outlets.getValue('outletName');

                      if (dn) {

                              if (outlet_list.length > 0)

                                      outlet_list += ', ';

                              outlet_list += dn;

                      }

}

Does anyone have any experience with this that can provide some feedback?

Thanks in advance.

1 ACCEPTED SOLUTION

Hi Luis,



How is your SNMP probe set up - more specifically the SNMP Fields?   If the MIB was loaded/compiled properly, try this in the SNMP Fields related list ::



Command = Table


OID = iso.org.dod.internet.private.enterprises.serverTech.sentry3.systemTables.outletTable


Table Fields = outletName,outletCapabilibies,outletStatus



and run a test against the PDU, let me know how the results look.



Thanks,


-Ryan


View solution in original post

5 REPLIES 5

Luis,



Need some feedback from you regarding building a custom probe/sensor for PDU Discovery. We have a client who needs to discover PDU using SNMP, what's the effort/time required to build this out?



Thanks!