50.3. SNMP diagnostics and statistics

50.3.1. SNMP diagnostics

This command reports the current situation of the SNMP resource:

[15:53:04] ABILIS_CPX:d d snmp

RES:Snmp ----------------------------------------------------------------------
       Simple_Network_Management_Protocol                                      
       STATE:READY          UDP-LOCPORT:161              
       CUR-COMMUNITY:public
       - Last sent trap: ------------------------------------------------------
       Local Date and Time | LocAdd-LocPort             | RemAdd-RemPort
                           | Trap
                           | Resource
       --------------------+----------------------------+----------------------
       19/01/2018 12:20:09   192.168.029.254-161          192.168.020.200-162
                             cxTrapIpUp
                             Ip-1 (LAN)
       ------------------------------------------------------------------------

The meaning:

STATE

SNMP port state:

  • INACTIVE - configuration parameter ACT:NO.

  • READY - the driver is fully ready to work.

UDP-LOCPORT

UDP port number.

CUR-COMMUNITY

Current SNMP Community.

Local Date and Time

Local Date and Time of last successfully sent trap.

LocAdd-LocPort

Local source address and source UDP port.

RemAdd-RemPort

Destination address and destination UDP port.

Trap

Enterprise specific trap code.

Resource

Resource index and subtype.

50.3.2. SNMP statistics

This command can help to understand what is happening, in case of troubles:

[15:53:05] ABILIS_CPX:d s snmp

RES:Snmp ----------------------------------------------------------------------
       Simple_Network_Management_Protocol                                      
       --- Cleared 1 days 04:33:08 ago, on 18/01/2018 at 08:47:55 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       PCK        |        243|        252|TRAP       |          0|          9|
       GET-REQ    |          5|          0|           |           |           |
       GET-NEXT   |        238|          0|REQ-VAR    |        243|           |
       GET-RESP   |          0|        243|           |           |           |
       SET-REQ    |          0|          0|SET-VAR    |          0|           |
       ------------------------------------------------------------------------
       BAD-VER    |          0|           |DENIED-IP  |          0|           |
       BAD-COM-N  |          0|           |           |           |           |
       BAD-COM-U  |          0|           |
       ------------------------------------------------------------------------
       ASN-ERR    |          0|           |NO-NAME    |          0|          0|
       TOO-BIG    |          0|          0|GEN-ERR    |          0|          0|
       RONLY      |          0|           |BAD-VALUE  |          0|          0|
       ------------------------------------------------------------------------
[15:59:02] ABILIS_CPX:d se snmp

RES:Snmp ----------------------------------------------------------------------
       Simple_Network_Management_Protocol                                      
       --- Cleared 3 days 16:16:20 ago, on 06/04/2019 at 17:19:13 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       PCK        |       5997|       6548|TRAP       |          0|        551|
       GET-REQ    |       5293|          0|           |           |           |
       GET-NEXT   |        704|          0|REQ-VAR    |       5997|           |
       GET-RESP   |          0|       5997|           |           |           |
       SET-REQ    |          0|          0|SET-VAR    |          0|           |
       ------------------------------------------------------------------------
       Traps service statistics:
       -----------|--OUTPUT---|-----------|--OUTPUT---|-----------|--OUTPUT---|
       REQ        |        551|REQ-SUCC   |        551|REQ-FAIL   |          0|
       EVENT      |        551|EVENT-SUCC |        551|EVENT-FAIL |          0|
       SEND       |        551|SEND-SUCC  |        551|SEND-FAIL  |          0|
       ------------------------------------------------------------------------
       Standard traps statistics:
       -----------|--OUTPUT---|-----------|--OUTPUT---|-----------|--OUTPUT---|
       COLDSTART  |          1|LINKDOWN   |          0|AUTHFAIL   |          0|
       WARMSTART  |          0|LINKUP     |          0|EGPNL      |          0|
       ------------------------------------------------------------------------
       Enterprise specific traps statistics:
       -----------|--OUTPUT---|-----------|--OUTPUT---|-----------|--OUTPUT---|
       Eth        |          1|
       Dsl        |          0|Sntp       |          0|X25        |          0|
       Lapb       |          0|MlmPl      |          0|MlmSl      |          0|
       PadL1      |          0|
       PriIsdn    |          0|PriLapdQ   |          0|
       BriIsdn    |          0|BriLapdQ   |          0|
       CellPdn    |          0|CellVoice  |          0|
       Ppp        |          0|FtpSrv     |          0|Ip         |        532|
       SysLog     |          0|PoeAc      |          0|PoeCli     |          0|
       Npv        |          0|Opc        |          0|Rjs        |          0|
       Gps        |          0|Gpio       |          0|IoHub      |          0|
       CtiVm      |          0|CtiSms     |          0|CtiMix     |          0|
       Vs         |          0|Pots       |          0|Tftp       |          0|
       Ipsh       |          0|Vrrp       |          0|VrrpRouters|          0|
       Trfa       |          0|Alarm      |          0|Ldap       |          0|
       Rip        |          0|Ddns       |          0|Dns        |          0|
       CtiVr      |          0|Tcp        |          0|Udp        |          0|
       Ike        |          0|IpConf     |          0|
       ------------------------------------------------------------------------

With reference to the shown interval of time («Cleared 3 days 16:16:20 ago») these counters show the number of:

PCKReceived/sent packets.
TRAPOutgoing Trap packets.
GET-REQIncoming “GetRequest” packets.
GET-NEXTIncoming “GetNext” packets.
GET-RESPIncoming “GetRequest” packets.
REQ-VARReceived requests.
SET-REQIncoming “SetRequest” packets.
SET-VARSet variables.
BAD-VERTimes that a packet with a bad SNMP version number is received.
DENIED-IPDenied IP addresses.
BAD-COM-NReceived packets with Community name unknown.
BAD-COM-UReceived packets with operation not allowed for that community name.
ASN-ERRTimes that a packet with a bad ASN.1 fromat is received.
NO-NAMENumber of 'no such name' errors responses sent.
TOO-BIGNumber of 'too big' errors responses sent.
GEN-ERRNumber of 'generic' errors responses sent.
RONLYImpossible for an Agent. This variable is present only for compatibility with the standard ‘snmp’ group of the MIB-II specification.
BAD-VALUETimes that the “BadValue” error is generated.