I exclude the snmp_mib in the command line, why I can't get the traffic statistics?
fei tan <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone. In the file README.win32 of net-snmp 5.4.2.1, it said: --------------------------------------------------------- To see what Windows modules are being loaded, you can shut down the service and then run snmpd.exe from the command line with winExtDLL debugging enabled using (all on one line): snmpd.exe -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib, sysORTable -DwinExtDLL The Windows DLL snmpmib.dll (SNMPMIB) contains SNMP traffic statistics (.1.3.6.1.2.1.11). As we are using Net-SNMP and not the Windows SNMP Service, no values will be returned from the Windows extension. To allow SNMP statistics to be received, the Net-SNMP module snmp_mib is permitted to load by not excluding it in the above command line. As stated above, this module will take precedence over the Windows module. ---------------------------------------------------------- So, I shut the windows snmp service, and run the net-snmp use the following command line: snmpd.exe -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,snmp_mib,sysORTable Then, I use the following command line to get the traffic statistics: snmpget -v 1 -c public localhost .1.3.6.1.2.1.11 But, I get the following output: Timeout: No Response from localhost. (if I get other OID, I can get the response) (use "snmpd.exe -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib" get the same output:"Timeout: No Response from localhost.") In addition: 1) when use "snmpd.exe -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,snmp_mib,sysORTable" there is a following waring: C:/usr/etc/snmp/snmpd.conf: line 253: Warning: Unknown token: disk. 2) when use "snmpd.exe -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,sysORTable" there is a following waring: C:/usr/etc/snmp/snmpd.conf: line 253: Warning: Unknown token: disk. C:/usr/etc/snmp/snmpd.conf: line 103: Warning: Unknown token: syslocation. C:/usr/etc/snmp/snmpd.conf: line 104: Warning: Unknown token: syscontact. C:/usr/etc/snmp/snmpd.conf: line 253: Warning: Unknown token: disk. why? I exclude the snmp_mib in the command line, why I can't get the traffic statistics? and what's the meaning of the above warnings? Could anyone help me? your help will be apprecicated! Thanks! -- Fei Tan ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ 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