Hello all.
Daemon net-snmp 5.4.1 crashed while trying obtain information about filesystem
(HOST-RESOURCES-MIB::hrStorageType).
Input data :
- oslevel -r 5300-07
- Native compiler
IBM(R) XL C/C++ Enterprise Edition V8.0 for AIX(R)
export CC=/usr/vac/bin/cc_r
snmpd has been configured with option:
./configure --disable-shared --without-kmem-usage
--with-default-snmp-version="3" --with-sys-contact="[EMAIL PROTECTED]"
--with-sys-location="Hosting M1" --with-logfile="/var/log/snmpd.log"
--with-persistent-directory="/var/net-snmp" --with-cc=/usr/vac/bin/cc_r
Source has been compiled without visible mistakes, but make test failed.
root # make test
... SKIPPED
Target "all" is up to date.
( cd testing; make test )
./RUNTESTS -a -D `pwd`/..
1: testing SNMPv1 support... ....ok
... SKIPPED
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... SKIPPED
55: testing initial load device on Solaris using HOST-RESOURCES... SKIPPED
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... SKIPPED
58: testing if snmpnetstat finds the running agent in udpTable... FAIL
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... .FAIL
Summary: 57 / 59 succeeded.
make: 1254-004 The error code from the last command is 2.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
root #
---------------------------------------------------------------------------------
After "make install", i have successfully running daemon
/usr/local/sbin/snmpd -c /usr/local/etc/snmpd.conf -Lf /var/tmp/net-snmpd.log
-p /var/tmp/net-snmpd.pid my_host:1161
root #ps -elf | grep snmpd
40001 A root 2118306 1 0 60 20 3a9cee400 3676
16:18:33 - 0:00 /usr/local/sbin/snmpd -c /usr/local/etc/snmpd.conf -Lf
/var/tmp/net-snmpd.log -p /var/tmp/net-snmpd.pid my_host:1161
root #
root #netstat -an | grep 1161
udp4 0 0 192.168.0.10.1161 *.*
---------------------------------------------------------------------------------
root #/usr/local/bin/snmpwalk -c public -v 1 my_host:1161
SNMPv2-MIB::sysDescr.0 = STRING: AIX my_host 3 5 00C9REYD4S00
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.15
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (29406) 0:04:54.06
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: my_host
SNMPv2-MIB::sysLocation.0 = STRING: "Hosting M1"
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.9 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
....
HOST-RESOURCES-MIB::hrStorageType.35 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.36 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.37 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.38 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
Timeout: No Response from my_host:1161
root #
root #ps -elf | grep snmpd
root #
---------------------------------------------------------------------------------
Next attempt is trying to get specified oid :
[EMAIL PROTECTED]:net-snmp-5.4.1 #/usr/local/bin/snmpget -c public -v 1
my_host:1161 HOST-RESOURCES-MIB::hrStorageSize.38
HOST-RESOURCES-MIB::hrStorageSize.38 = INTEGER: 7962624
[EMAIL PROTECTED]:net-snmp-5.4.1 #/usr/local/bin/snmpget -c public -v 1
my_host:1161 HOST-RESOURCES-MIB::hrStorageDescr.38
HOST-RESOURCES-MIB::hrStorageDescr.38 = STRING: /oracle
[EMAIL PROTECTED]:net-snmp-5.4.1 #/usr/local/bin/snmpget -c public -v 1
my_host:1161 HOST-RESOURCES-MIB::hrStorageAllocationUnits.38
HOST-RESOURCES-MIB::hrStorageAllocationUnits.38 = INTEGER: 4096 Bytes
[EMAIL PROTECTED]:net-snmp-5.4.1 #/usr/local/bin/snmpget -c public -v 1
my_host:1161 HOST-RESOURCES-MIB::hrStorageType.38
HOST-RESOURCES-MIB::hrStorageType.38 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
[EMAIL PROTECTED]:net-snmp-5.4.1 #/usr/local/bin/snmpget -c public -v 1
my_host:1161 HOST-RESOURCES-MIB::hrStorageDescr.39
HOST-RESOURCES-MIB::hrStorageDescr.39 = STRING: /oracle/oradata/sid/data
[EMAIL PROTECTED]:net-snmp-5.4.1 #/usr/local/bin/snmpget -c public -v 1
my_host:1161 HOST-RESOURCES-MIB::hrStorageType.39
Timeout: No Response from my_host:1161.
[EMAIL PROTECTED]:net-snmp-5.4.1 #
/oracle/oradata/sid/data is a mount point from disk storage IBM DS4800
--------------------------------------------------------------------------------------------
[EMAIL PROTECTED]:/#cd /tmp/snmp-test-59-1311138
[EMAIL PROTECTED]:snmp-test-59-1311138 #cat invoked
snmpd -d -r -U -p /tmp/snmp-test-59-1311138/snmpd.pid -Lf
/tmp/snmp-test-59-1311138/snmpd.log -C -c /tmp/snmp-test-59-1311138/snmpd.conf
udp:localhost:8834
/opt/net-snmp/net-snmp-5.4.1/apps/snmpwalk -d -v2c -c testcommunity -t 10 -r 5
udp:localhost:8834 .1
kill -TERM 1339872
testing full snmpwalk (SNMPv2c) against agent (may take time)...FAIL
[EMAIL PROTECTED]:snmp-test-59-1311138 #tail -20 output-eval_onescript.sh1311138
0048: 01 02 26 05 00 ..&..
Resending 53 bytes to UDP: [127.0.0.1]:8834
0000: 30 33 02 01 01 04 0D 74 65 73 74 63 6F 6D 6D 75 03.....testcommu
0016: 6E 69 74 79 A1 1F 02 04 17 D4 60 5E 02 01 00 02 nity ....Ф`^....
0032: 01 00 30 11 30 0F 06 0B 2B 06 01 02 01 19 02 03 ..0.0...+.......
0048: 01 02 26 05 00 ..&..
Resending 53 bytes to UDP: [127.0.0.1]:8834
0000: 30 33 02 01 01 04 0D 74 65 73 74 63 6F 6D 6D 75 03.....testcommu
0016: 6E 69 74 79 A1 1F 02 04 17 D4 60 5E 02 01 00 02 nity ....Ф`^....
0032: 01 00 30 11 30 0F 06 0B 2B 06 01 02 01 19 02 03 ..0.0...+.......
0048: 01 02 26 05 00 ..&..
Timeout: No Response from udp:localhost:8834
::hrStorageType.36 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.37 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.38 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk
[EMAIL PROTECTED]:snmp-test-59-1311138 #tail -20 snmpd.log
Received SNMP packet(s) from UDP: [127.0.0.1]:59628
GETNEXT message
-- HOST-RESOURCES-MIB::hrStorageType.37
Sending 62 bytes to UDP: [127.0.0.1]:59628
0000: 30 3C 02 01 01 04 0D 74 65 73 74 63 6F 6D 6D 75 0<.....testcommu
0016: 6E 69 74 79 A2 28 02 04 17 D4 60 5D 02 01 00 02 nity (...Ф`]....
0032: 01 00 30 1A 30 18 06 0B 2B 06 01 02 01 19 02 03 ..0.0...+.......
0048: 01 02 26 06 09 2B 06 01 02 01 19 02 01 04 ..&..+........
Received 53 bytes from UDP: [127.0.0.1]:59628
0000: 30 33 02 01 01 04 0D 74 65 73 74 63 6F 6D 6D 75 03.....testcommu
0016: 6E 69 74 79 A1 1F 02 04 17 D4 60 5E 02 01 00 02 nity ....Ф`^....
0032: 01 00 30 11 30 0F 06 0B 2B 06 01 02 01 19 02 03 ..0.0...+.......
0048: 01 02 26 05 00 ..&..
Received SNMP packet(s) from UDP: [127.0.0.1]:59628
GETNEXT message
-- HOST-RESOURCES-MIB::hrStorageType.38
[EMAIL PROTECTED]:snmp-test-59-1311138 #cat persist
!|[EMAIL PROTECTED]:snmp-test-59-1311138 #
[EMAIL PROTECTED]:snmp-test-59-1311138 #tail -20 snmpd.log.stdout
[EMAIL PROTECTED]:snmp-test-59-1311138 #
----------------------------------------------------------------------------------------
Does net-snmp-5.4.1 support disk type based on external storage DS4800 ?
Could you help me, please.
--
Best regards,
Alexander.
Много знаешь? Помоги другим на [EMAIL PROTECTED]
http://r.mail.ru/cln3253/otvet.mail.ru/
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders