Hi All,
1) /usr/local/sbin/snmpd -f -Le -D
/usr/local/sbin/snmpd: option requires an argument -- D
Usage: /usr/local/sbin/snmpd [OPTIONS] [LISTENING ADDRESSES]
Version: 5.4.2.1
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net
-a log addresses
-A append to the logfile rather than truncating it
-c FILE[,...] read FILE(s) as configuration file(s)
-C do not read the default configuration files
-d dump sent and received SNMP packets
-DTOKEN[,...] turn on debugging output for the given TOKEN(s)
(try ALL for extremely verbose output)
Don't put space(s) between -D and TOKEN(s).
-f do not fork from the shell
-g GID change to this numeric gid after opening
transport endpoints
-h, --help display this usage message
-H display configuration file directives understood
-I [-]INITLIST list of mib modules to initialize (or not)
(run snmpd with -Dmib_init for a list)
-L <LOGOPTS> toggle options controlling where to log to
e: log to standard error
o: log to standard output
n: don't log at all
f file: log to the specified file
s facility: log to syslog (via the specified facility)
(variants)
[EON] pri: log to standard error, output or /dev/null for level 'pri'
and above
[EON] p1-p2: log to standard error, output or /dev/null for levels 'p1'
to 'p2'
[FS] pri token: log to file/syslog for level 'pri' and above
[FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
-m MIBLIST use MIBLIST instead of the default MIB list
-M DIRLIST use DIRLIST as the list of locations
to look for MIBs
-p FILE store process id in FILE
-q print information in a more parsable format
-r do not exit if files only accessible to root
cannot be opened
-u UID change to this uid (numeric or textual) after
opening transport endpoints
-v, --version display version information
-V verbose display
-x ADDRESS use ADDRESS as AgentX address
-X run as an AgentX subagent rather than as an
SNMP master agent
Deprecated options:
-l FILE use -Lf <FILE> instead
-P use -p instead
-s use -Lsd instead
-S d|i|0-7 use -Ls <facility> instead
Best Regards,
________________________________
From: Dave Shield <d.t.shi...@liverpool.ac.uk>
To: down Load <engl...@yahoo.com>
Cc: net-snmp-coders@lists.sourceforge.net
Sent: Tuesday, April 7, 2009 8:15:57 PM
Subject: Re: Segmentation fault(coredump)
2009/4/7 down Load <engl...@yahoo.com>:
> 1) /usr/local/sbin/snmpd -f -Le -Dhost/hr_storage
[snip]
> host/hr_storage: var_hrstoreEntry: request
> HOST-RESOURCES-MIB::hrStorageType.45 exact=1
> host/hr_storage: var_hrstoreEntry:
> compare HOST-RESOURCES-MIB::hrStorageType => 1
> (index 31 ....HOST-RESOURCES-MIB::hrStorageType.31
> (index 32 ....HOST-RESOURCES-MIB::hrStorageType.32
> (index 33 ....HOST-RESOURCES-MIB::hrStorageType.33
> (index 34 ....HOST-RESOURCES-MIB::hrStorageType.34
> (index 35 ....HOST-RESOURCES-MIB::hrStorageType..35
> (index 36 ....HOST-RESOURCES-MIB::hrStorageType.36
> (index 37 .....HOST-RESOURCES-MIB::hrStorageType.37
> (index 38 ....HOST-RESOURCES-MIB::hrStorageType.38
> (index 39 ....HOST-RESOURCES-MIB::hrStorageType.39
> (index 40 ....HOST-RESOURCES-MIB::hrStorageType.40
> (index 41 ....HOST-RESOURCES-MIB::hrStorageType.41
> (index 42 ....HOST-RESOURCES-MIB::hrStorageType.42
> (index 43 ....HOST-RESOURCES-MIB::hrStorageType.43
> (index 44 ....HOST-RESOURCES-MIB::hrStorageType.44
> (index 45 ....HOST-RESOURCES-MIB::hrStorageType.45
> host/hr_storage: var_hrstoreEntry: process
> HOST-RESOURCES-MIB::hrStorageType.45 (ffffffff)
OK - that helps a bit.
We at least know that the problem occurs after this point.
> Segmentation fault(coredump)
Can you please try the following:
1) /usr/local/sbin/snmpd -f -Le -D
Note that this will produce a *lot* of output.
Wait until it has quietened down, and then run
2) snmpget -v 1 -c public localhost hrStorageType.45
Then post the last dozen-or-so lines of output from snmpd.
Please do *NOT* post the whole output!!!
(As I said, there will be lots and lots and lots,
mostly completely irrelevant!)
Dave
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders