RE: I exclude the snmp_mib in the command line, why I can't get the traffic statistics?

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC0C76A8D5@mailserver.metatv-ds.metatv.com>
> From: fei tan [mailto:[email protected]] 
> Sent: Saturday, June 13, 2009 9:56 AM

> 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

	You misread the instructions:

[SNIP]
> 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 
{/SNIP]

	This means, "don't have 'snmp_mib' in that list".  You should have left it as is:

[SNIP]
> snmpd.exe -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,
> sysORTable -DwinExtDLL
[/SNIP]


> 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

	That should be snmpwalk, not snmpget.  Actually, you should use snmpgetnext ("crawl") until you get a response, then try walking.

> 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.")

	That might be interesting, but it's tangential.  You're trying to get a non-object.

> 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.

	These configuration tokens aren't recognized when the MIB module that implements them is disabled.  It's nothing to worry about.


	HTH,

Mike

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.