As requested I've had the customer start snmpd in debug mode then issue
a simple snmp query
of the following: snmpwalk -v1 -c accept localhost
1.3.6.1.2.1.4.20.1.1
The resulting output from snmpd is as follows:
Script started on Mon 20 Jun 2005 03:24:49 AM EDT
[EMAIL PROTECTED] root]# /usr/sbin/snmpd -f -Le -d
cmaX: listening for subagents on port 25375
cmaX: subMIB 1 handler has disconnected
cmaX: subMIB 2 handler has disconnected
cmaX: subMIB 3 handler has disconnected
cmaX: subMIB 5 handler has disconnected
cmaX: subMIB 6 handler has disconnected
cmaX: subMIB 8 handler has disconnected
cmaX: subMIB 9 handler has disconnected
cmaX: subMIB 10 handler has disconnected
cmaX: subMIB 11 handler has disconnected
cmaX: subMIB 14 handler has disconnected
cmaX: subMIB 16 handler has disconnected
cmaX: subMIB 21 handler has disconnected
cmaX: subMIB 22 handler has disconnected
cmaX: subMIB 23 handler has disconnected
cmaX: subMIB 1 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 2 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 3 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 5 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 6 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 8 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 9 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 10 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 11 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 14 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 16 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 21 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 22 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: subMIB 23 will be sent on port 25376 to hp Advanced Server
Management_Peer
cmaX: sent ColdStarts on ports 25376 to 25393
cmaX: subMIB 18 handler has disconnected
cmaX: subMIB 18 will be sent on port 25393 to cpqnicd
Sending 44 bytes to 10.20.202.26
0000: 30 2A 02 01 00 04 06 61 63 63 65 70 74 A4 1D 06
0*.....accept...
0016: 0A 2B 06 01 04 01 BF 08 03 02 0A 40 04 0A 19 20
[EMAIL PROTECTED]
0032: 6B 02 01 00 02 01 00 43 01 18 30 00 k......C..0.
NET-SNMP version 5.1.2
Received 44 bytes from 127.0.0.1
0000: 30 2A 02 01 00 04 06 61 63 63 65 70 74 A1 1D 02
0*.....accept...
0016: 04 1B BE 87 7A 02 01 00 02 01 00 30 0F 30 0D 06
....z......0.0..
0032: 09 2B 06 01 02 01 04 14 01 01 05 00 .+..........
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr
Sending 52 bytes to 127.0.0.1
0000: 30 32 02 01 00 04 06 61 63 63 65 70 74 A2 25 02
02.....accept.%.
0016: 04 1B BE 87 7A 02 01 00 02 01 00 30 17 30 15 06
....z......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 0A 19 20 6B 40 04 .+..........
[EMAIL PROTECTED]
0048: 0A 19 20 6B .. k
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 1B BE 87 7B 02 01 00 02 01 00 30 13 30 11 06
....{......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 0A 19 20 6B 05 00 .+..........
k..
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.10.25.32.107
Sending 52 bytes to 127.0.0.1
0000: 30 32 02 01 00 04 06 61 63 63 65 70 74 A2 25 02
02.....accept.%.
0016: 04 1B BE 87 7B 02 01 00 02 01 00 30 17 30 15 06
....{......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 40 04
[EMAIL PROTECTED]
0048: 7F 00 00 01 ....
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 1B BE 87 7C 02 01 00 02 01 00 30 13 30 11 06
....|......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 1B BE 87 7C 02 01 00 02 01 00 30 13 30 11 06
....|......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 1B BE 87 7C 02 01 00 02 01 00 30 13 30 11 06
....|......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 1B BE 87 7C 02 01 00 02 01 00 30 13 30 11 06
....|......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 1B BE 87 7C 02 01 00 02 01 00 30 13 30 11 06
....|......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 1B BE 87 7C 02 01 00 02 01 00 30 13 30 11 06
....|......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
************************************************************************
*
########################################################################
Second SNMPWALK
Received 44 bytes from 127.0.0.1
0000: 30 2A 02 01 00 04 06 61 63 63 65 70 74 A1 1D 02
0*.....accept...
0016: 04 3E 1D 61 22 02 01 00 02 01 00 30 0F 30 0D 06
.>.a"......0.0..
0032: 09 2B 06 01 02 01 04 14 01 01 05 00 .+..........
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr
Sending 52 bytes to 127.0.0.1
0000: 30 32 02 01 00 04 06 61 63 63 65 70 74 A2 25 02
02.....accept.%.
0016: 04 3E 1D 61 22 02 01 00 02 01 00 30 17 30 15 06
.>.a"......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 0A 19 20 6B 40 04 .+..........
[EMAIL PROTECTED]
0048: 0A 19 20 6B .. k
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 3E 1D 61 23 02 01 00 02 01 00 30 13 30 11 06
.>.a#......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 0A 19 20 6B 05 00 .+..........
k..
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.10.25.32.107
Sending 52 bytes to 127.0.0.1
0000: 30 32 02 01 00 04 06 61 63 63 65 70 74 A2 25 02
02.....accept.%.
0016: 04 3E 1D 61 23 02 01 00 02 01 00 30 17 30 15 06
.>.a#......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 40 04
[EMAIL PROTECTED]
0048: 7F 00 00 01 ....
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 3E 1D 61 24 02 01 00 02 01 00 30 13 30 11 06
.>.a$......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 3E 1D 61 24 02 01 00 02 01 00 30 13 30 11 06
.>.a$......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 3E 1D 61 24 02 01 00 02 01 00 30 13 30 11 06
.>.a$......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 3E 1D 61 24 02 01 00 02 01 00 30 13 30 11 06
.>.a$......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 3E 1D 61 24 02 01 00 02 01 00 30 13 30 11 06
.>.a$......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received 48 bytes from 127.0.0.1
0000: 30 2E 02 01 00 04 06 61 63 63 65 70 74 A1 21 02
0......accept.!.
0016: 04 3E 1D 61 24 02 01 00 02 01 00 30 13 30 11 06
.>.a$......0.0..
0032: 0D 2B 06 01 02 01 04 14 01 01 7F 00 00 01 05 00
.+..............
Received SNMP packet(s) from 127.0.0.1
GETNEXT message
-- IP-MIB::ipAdEntAddr.127.0.0.1
send response: Error building ASN.1 representation (build int size 4:
s/b 8)
Received TERM or STOP signal... shutting down...
Sending 43 bytes to 10.20.202.26
0000: 30 29 02 01 00 04 06 61 63 63 65 70 74 A4 1C 06
0).....accept...
0016: 08 2B 06 01 04 01 BF 08 04 40 04 0A 19 20 6B 02
[EMAIL PROTECTED] k.
0032: 01 06 02 01 02 43 02 6F E9 30 00 .....C.o.0.
[EMAIL PROTECTED] root]# exit
-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 09:14
To: Licause, Al
Cc: [email protected]
Subject: RE: snmpwalk failing to return info from lo
[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
On Fri, 2005-06-17 at 14:04, Licause, Al wrote:
> Dave,
>
> Thanks for the quick response. That is one of the last commands I
> asked the customer to attempt. It returned nothing.
OK - then I'd be inclined to check whether the agent is
a) actually receiving the requests at all
(or are some firewall settings getting in the way)
b) reading the expected access control settings
> I also had the customer strace this
> command and can provide that output if it would be helpful.
Tracing the 'snmpwalk' command probably won't help.
It sounds more likely that the problem lies on the agent side.
Have your customer shut down the SNMP agent
(probably "/etc/rc.d/init.d/snmp stop")
and then run
snmpd -f -Le -d
In another window, run the snmpwalk command again.
Does the agent show incoming packet dumps or not?
If it does, then they'll need to look at the access control settings in
the snmpd.conf file. If it doesn't, then they'll need to look at the
firewall settings - probably in the '/etc/sysconfig/iptables' file.
Or the SNMP agent may be displaying some other useful output, of course.
Dave
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders