time in snmptraps
Pushpa Thimmaiah <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAASqVJU2ktub0wMvMxUNjmVnEbrxn92gtEye=Np6Wz3x7uWBng@mail.gmail.com> |
Hi Folks, SnmpDaemon running on my desktop and using 'snmptrap' to send traps out from desktop Value of object DISMAN-EVENT-MIB::sysUpTimeInstance in snmptraps and in 'snmpget -m ALL -M ~/mibs -v 2c -c public localhost DISMAN-EVENT-MIB::sysUpTimeInstance' differs. After debugging, 1. net-snmp-xx/apps/snmptrap.c passes [value of get_uptime()] host system uptime to .1.3.6.1.2.1.1.3.0 (DISMAN-EVENT-MIB::sysUpTimeInstance) in trap PDU. 2. net-snmp-xx/agent/mibgroup/mibII/system_mib.c , uses netsnmp_get_agent_uptime to calculate .1.3.6.1.2.1.1.3.0 According to SNMPv2-MIB, sysUpTime(.1.3.6.1.2.1.1.3) is uptime of snmpdaemon. Kindly let me know why .1.3.6.1.2.1.1.3.0 (DISMAN-EVENT-MIB::sysUpTimeInstance) being used in snmptrap.c instead of HOST-RESOURCES-MIB::hrSystemUptime (.1.3.6.1.2.1.25.1.1) HOST-RESOURCES-MIB::hrSystemUptime displays value of get_uptime() [net-snmp-xx/agent/mibgroup/host/hr_system.c] Thanks, Pushpa.T ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users