Smarts IP: How can I get a list of the OID's that Smarts IP polls for a device type (same SysOID)?
search cancel

Smarts IP: How can I get a list of the OID's that Smarts IP polls for a device type (same SysOID)?

book

Article ID: 304037

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I get a list of all of the OIDs that Smarts IP polls for a specific device type?
How can I get a list of all of the OIDs that Smarts IP polls for all devices with the same SysOID?




To get a list of all OIDs that Smarts IP polls for a specific device, enable SNMP Tracing of that device. To enable SNMP tracing for a device in the IP domain, run the following dmctl command:

dmctl -s <AM DOMAIN> invoke ICIP_SNMPAccessorInterface::DEVSTAT-SNMP-Poller setTrace ICIM_UnitaryComputerSystem::<device> TRUE

Once tracing is enabled, The output of all polling for the specified device will show up in the Smarts IP domain log file (see Note statement). You can then pull all unique OIDs from that output to have a list of the OIDs that are polled for that specific device type. 

IMPORTANT!
Note the following important considerations about enabling SNMP Tracing:

  • You will want to keep SNMP Tracing enabled for a few polling cycles because the Polling Intervals might be different for connectivity and performance, and the only way to capture all of them is to ensure that all polling has completed while tracing is enabled.
  • You will want to disable SNMP tracing as soon as you can after gathering the list of the OIDs. If you keep tracing enabled for a long period of time, it will cause your domain log file size to grow much faster than it would normally without SNMP tracing enabled.


Additional Information

Example log file output with SNMP Tracing enabled
The output in the log file with SNMP Tracing enabled will look similar to the following output. 

SNMP Packet:  73 bytes
      "   0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15    "      ASCII      "
------+---+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+----+---+---+---+---+-"
     0:  30 47 02 01 00 04 06 70 75 62 6c 69 63 a0 3a 02     0G.....public :. "
    16:  02 13 bd 02 01 00 02 01 00 30 2e 30 0e 06 0a 2b     ........0.0...+ "
    32:  06 01 02 01 02 02 01 07 02 05 00 30 0e 06 0a 2b     ...........0...+ "
    48:  06 01 02 01 02 02 01 08 02 05 00 30 0c 06 08 2b     ...........0...+ "
    64:  06 01 02 01 01 03 00 05 00 -- -- -- -- -- -- --     .........        "
SNMP Message:
    0:  packet ->
        SEQUENCE (0x30), 71 bytes:
    2:    version ->
          INTEGER-32 (0x02), 1 byte == 0 <v1>
    5:    community ->
          OCTET-STRING (0x04), 6 bytes == "public"
   13:    Get-request ->  (0xa0), 58 bytes:
   15:      request-id ->
            INTEGER-32 (0x02), 2 bytes == 5053
   19:      error-status ->
            INTEGER-32 (0x02), 1 byte == 0 <noError>
   22:      error-index ->
            INTEGER-32 (0x02), 1 byte == 0
   25:      VarBindList ->
            SEQUENCE (0x30), 46 bytes:
   27:        VarBind -> SEQUENCE (0x30), 14 bytes:
   29:          OBJ-ID (0x06), 10 bytes == ".1.3.6.1.2.1.2.2.1.7.2"
   41:          NULL (0x05), 0 bytes == <Null>
   43:        VarBind -> SEQUENCE (0x30), 14 bytes:
   45:          OBJ-ID (0x06), 10 bytes == ".1.3.6.1.2.1.2.2.1.8.2"
   57:          NULL (0x05), 0 bytes == <Null>
   59:        VarBind -> SEQUENCE (0x30), 12 bytes:
   61:          OBJ-ID (0x06), 8 bytes == ".1.3.6.1.2.1.1.3.0"
   71:          NULL (0x05), 0 bytes == <Null>
Sent 73 bytes to 10.1.8.200, port 161.
Received 78 bytes from 10.1.8.200, port 161.
SNMP Message:
    0:  packet ->
        SEQUENCE (0x30), 76 bytes:
    2:    version ->
          INTEGER-32 (0x02), 1 byte == 0 <v1>
    5:    community ->
          OCTET-STRING (0x04), 6 bytes == "public"
   13:    Response ->  (0xa2), 63 bytes:
   15:      request-id ->
            INTEGER-32 (0x02), 2 bytes == 5053
   19:      error-status ->
            INTEGER-32 (0x02), 1 byte == 0 <noError>
   22:      error-index ->
            INTEGER-32 (0x02), 1 byte == 0
   25:      VarBindList ->
            SEQUENCE (0x30), 51 bytes:
   27:        VarBind -> SEQUENCE (0x30), 15 bytes:
   29:          OBJ-ID (0x06), 10 bytes == ".1.3.6.1.2.1.2.2.1.7.2"
   41:          INTEGER-32 (0x02), 1 byte == 1
   44:        VarBind -> SEQUENCE (0x30), 15 bytes:
   46:          OBJ-ID (0x06), 10 bytes == ".1.3.6.1.2.1.2.2.1.8.2"
   58:          INTEGER-32 (0x02), 1 byte == 1
   61:        VarBind -> SEQUENCE (0x30), 15 bytes:
   63:          OBJ-ID (0x06), 8 bytes == ".1.3.6.1.2.1.1.3.0"
   73:          TIME-TICKS (0x43), 3 bytes == 162504
SNMP Packet:  73 bytes