Hi,
I am using net-snmp 5.6.2 version on my Linux system. I am using IPv4
version.
When I do snmpwalk on ipSystemstatsTable I can see some of the OIDs are
missing in the table compared to MIB definition entries.
Example (ipSystemstatsTable):
MIB entries in RFC 4293:
IpSystemStatsEntry ::= SEQUENCE {
ipSystemStatsIPVersion InetVersion,
ipSystemStatsInReceives Counter32,
ipSystemStatsHCInReceives Counter64,
ipSystemStatsInOctets Counter32,
ipSystemStatsHCInOctets Counter64,
ipSystemStatsInHdrErrors Counter32,
ipSystemStatsInNoRoutes Counter32,
ipSystemStatsInAddrErrors Counter32,
ipSystemStatsInUnknownProtos Counter32,
ipSystemStatsInTruncatedPkts Counter32,
ipSystemStatsInForwDatagrams Counter32,
ipSystemStatsHCInForwDatagrams Counter64,
ipSystemStatsReasmReqds Counter32,
ipSystemStatsReasmOKs Counter32,
ipSystemStatsReasmFails Counter32,
ipSystemStatsInDiscards Counter32,
ipSystemStatsInDelivers Counter32,
ipSystemStatsHCInDelivers Counter64,
ipSystemStatsOutRequests Counter32,
ipSystemStatsHCOutRequests Counter64,
ipSystemStatsOutNoRoutes Counter32,
ipSystemStatsOutForwDatagrams Counter32,
ipSystemStatsHCOutForwDatagrams Counter64,
ipSystemStatsOutDiscards Counter32,
ipSystemStatsOutFragReqds Counter32,
ipSystemStatsOutFragOKs Counter32,
ipSystemStatsOutFragFails Counter32,
ipSystemStatsOutFragCreates Counter32,
ipSystemStatsOutTransmits Counter32,
ipSystemStatsHCOutTransmits Counter64,
ipSystemStatsOutOctets Counter32,
ipSystemStatsHCOutOctets Counter64,
ipSystemStatsInMcastPkts Counter32,
ipSystemStatsHCInMcastPkts Counter64,
ipSystemStatsInMcastOctets Counter32,
ipSystemStatsHCInMcastOctets Counter64,
ipSystemStatsOutMcastPkts Counter32,
ipSystemStatsHCOutMcastPkts Counter64,
ipSystemStatsOutMcastOctets Counter32,
ipSystemStatsHCOutMcastOctets Counter64,
ipSystemStatsInBcastPkts Counter32,
ipSystemStatsHCInBcastPkts Counter64,
ipSystemStatsOutBcastPkts Counter32,
ipSystemStatsHCOutBcastPkts Counter64,
ipSystemStatsDiscontinuityTime TimeStamp,
ipSystemStatsRefreshRate Unsigned32
}
Snmpwalk output:
madhu@Ideapad:~/Desktop/testing$ snmpwalk -Os -c public -M
src/net-snmp/mibs/ -m ALL -v 2c 192.168.225.18 ipSystemStatsTable
ipSystemStatsInReceives.ipv4 = Counter32: 261596
ipSystemStatsHCInReceives.ipv4 = Counter64: 261596
ipSystemStatsInHdrErrors.ipv4 = Counter32: 0
ipSystemStatsInAddrErrors.ipv4 = Counter32: 0
ipSystemStatsInUnknownProtos.ipv4 = Counter32: 0
ipSystemStatsReasmReqds.ipv4 = Counter32: 5
ipSystemStatsReasmOKs.ipv4 = Counter32: 1
ipSystemStatsReasmFails.ipv4 = Counter32: 0
ipSystemStatsInDiscards.ipv4 = Counter32: 0
ipSystemStatsInDelivers.ipv4 = Counter32: 249813
ipSystemStatsHCInDelivers.ipv4 = Counter64: 249813
ipSystemStatsOutRequests.ipv4 = Counter32: 325384
ipSystemStatsHCOutRequests.ipv4 = Counter64: 325384
ipSystemStatsOutNoRoutes.ipv4 = Counter32: 0
ipSystemStatsOutForwDatagrams.ipv4 = Counter32: 0
ipSystemStatsHCOutForwDatagrams.ipv4 = Counter64: 0
ipSystemStatsOutDiscards.ipv4 = Counter32: 0
ipSystemStatsOutFragReqds.ipv4 = Counter32: 55
ipSystemStatsOutFragOKs.ipv4 = Counter32: 55
ipSystemStatsOutFragFails.ipv4 = Counter32: 0
ipSystemStatsOutFragCreates.ipv4 = Counter32: 0
ipSystemStatsOutTransmits.ipv4 = Counter32: 325557
ipSystemStatsHCOutTransmits.ipv4 = Counter64: 325557
ipSystemStatsDiscontinuityTime.ipv4 = Timeticks: (0) 0:00:00.00
ipSystemStatsRefreshRate.ipv4 = Gauge32: 60000 milli-seconds
madhu@Ideapad:~/Desktop/testing$
Is this the default behavior because ipv6 is not enabled, if ipv6 is
enabled can I see all the OIDs for the IP-MIB tables ?
Thanks in advance.
--
Thanks & Regards...
Madhu
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders