HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)

s
snmpd(1M) snmpd(1M)
-logfile logfile
-l logfile Use the logfile for logging rather than the default logfile,
/var/adm/snmpd.log
.
A value of
- will direct logging to
stdout.
-log_format value
The value can be 0 or 1.
0 means use traditional logging format for
/var/adm/snmpd.log
file. 1 means use new logging format. The new logging
format gives the Log level, Timestamp, Program Name, File name, Line Number
and message in separate lines.
-mask logmask
-m logmask Sets the initial logging mask to logmask. The logmask option may not be used in
the agent start up scripts. This option should be used only while debugging the
agent. See the SNMP Agent Logging section for valid values of logmask and for
other details.
-n Normally snmpdm puts itself into the background as if the command was ter-
minated with an ampersand(&). This option inhibits that behavior and makes the
agent run in the foreground.
-Port portnum
-P portnum Specify the UDP port number that the agent will listen on for SNMP requests. The
default is port 161. The value can also be specified in /etc/services
. Only the
super-user can start
snmpdm and only one snmpdm can execute on a particular
UDP port.
-sysDescr description
-sys description
Allows the user to specify the value for the system.sysDescr MIB
object. The
format is a text string enclosed in quotes. This option overrides the
sysDescr
specified in /etc/SnmpAgent.d/snmpd.conf
. For example,
snmpdm -sys "nsmd1, test system"
-tcpany Allow Master agent to accept connections from any subagent. This is a default
option.
-tcplocal Allow Master agent to accept connections from local TCP subagents.
-tcpnone Do not allow Master agent to accept connections from any TCP subagent.
SNMPv1 Security
Each
SNMP request is accompanied by a community name, which is essentially a password that enables
SNMP access to MIB values on an agent. A Manager can request to read a MIB value by issuing an
SNMP
GetRequest/GetNextRequest, or a manager may request to alter a
MIB value by issuing an SNMP SetRe-
quest.
By default, the agent does not respond to any
SNMP requests, regardless of community name used in the
request. To configure the agent to respond to SNMP GetRequests/GetNextRequests, add a
get-
community-name to /etc/SnmpAgent.d/snmpd.conf
. See the snmpd.conf (4) manpage. To
configure the agent to respond to
SNMP SetRequests AND GetRequests/GetNextRequests, add a
set-
community-name to /etc/SnmpAgent.d/snmpd.conf
.
SNMPv2c
Simple Network Management Protocol Community based Version 2 (
SNMPv2) is supported in this version
of the SNMP Agent.
Traps
The agent also sends information to a manager without an explicit request from the manager. Such an
operation is called a
trap. By default, SNMP traps are not sent to any destination. To configure the
agent to send traps to one or more specific destinations, add the trap destinations to
/etc/SnmpAgent.d/snmpd.conf.
The Master Agent (
snmpdm) and the MIB-2 subAgent (mib2agt) collaborate to send the following SNMP
traps:
coldStart Sends a coldStart trap when the SNMP Agent is invoked.
Section 1M770 Hewlett-Packard Company 2 HP-UX 11i Version 2: August 2003