On Wednesday 04 April 2007 09:53, Thomas Anders wrote:
> Michael Renner wrote:
> > But while 'ap-mrtg -i 192.168.5.11 -c public -t w' works well, snmpwalk
> > won't: snmpwalk -c public -v1 192.168.5.11
> > Timeout: No Response from 192.168.5.11
>
> What about just fetching sysDescr.0?

well, I got an answer, but no value:
snmpget -v1 -c public 192.168.5.11 sysDescr.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-MIB::sysDescr.0


> snmpget -c public -v1  192.168.5.11 1.3.6.1.2.1.1.1.0

snmpget -c public -v1  192.168.5.11 1.3.6.1.2.1.1.1.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-MIB::sysDescr.0


> snmpget -c public -v2c 192.168.5.11 1.3.6.1.2.1.1.1.0

I get a timeout. This device is some years old, maybe 'V 1' only.

> If this still runs into a timeout, work through the corresponding FAQ
> checklist:
>
> http://www.net-snmp.org/wiki/index.php/FAQ:Applications_03

OK, it seems to me, that the '-d' switch makes the same output like tcpdump 
does. 

snmpget -v1 -d -c public 192.168.5.11 sysDescr.0

Sending 43 bytes to UDP: [192.168.5.11]:161
0000: 30 29 02 01  00 04 06 70  75 62 6C 69  63 A0 1C 02    0).....public...
0016: 04 45 8B 41  8F 02 01 00  02 01 00 30  0E 30 0C 06    .E.A.......0.0..
0032: 08 2B 06 01  02 01 01 01  00 05 00                    .+.........


Received 43 bytes from UDP: [192.168.5.11]:161
0000: 30 29 02 01  00 04 06 70  75 62 6C 69  63 A2 1C 02    0).....public...
0016: 04 45 8B 41  8F 02 01 02  02 01 01 30  0E 30 0C 06    .E.A.......0.0..
0032: 08 2B 06 01  02 01 01 01  00 05 00                    .+.........

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-MIB::sysDescr.0

cassiopeia:~# snmpwalk -v1 -d -c public 192.168.5.11

Sending 40 bytes to UDP: [192.168.5.11]:161
0000: 30 26 02 01  00 04 06 70  75 62 6C 69  63 A1 19 02    0&.....public...
0016: 04 66 92 0A  03 02 01 00  02 01 00 30  0B 30 09 06    .f.........0.0..
0032: 05 2B 06 01  02 01 05 00                              .+......


Resending 40 bytes to UDP: [192.168.5.11]:161
0000: 30 26 02 01  00 04 06 70  75 62 6C 69  63 A1 19 02    0&.....public...
0016: 04 66 92 0A  03 02 01 00  02 01 00 30  0B 30 09 06    .f.........0.0..
0032: 05 2B 06 01  02 01 05 00                              .+......


Strange. Thanks for your help!
> http://www.net-snmp.org/wiki/index.php/FAQ:Applications_04
>
>
> +Thomas

-- 
|Michael Renner      E-mail: [EMAIL PROTECTED]  |
|D-81541 Munich      Germany        ICQ: #112280325 |
|Germany             Don't drink as root!      ESC:wq

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to