HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)

s
snmpd(1M) snmpd(1M)
-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 terminated
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 for-
mat 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"
SNMPv1 Security
An SNMP Manager application can request to read a MIB value available at an agent by issuing an
SNMP
GetRequest, or a manager application may request to alter a MIB value by issuing an SNMP SetRequest.
Each
SNMP request is accompanied by a community name, which is essentially a password that enables
SNMP access to MIB values on an agent.
Note, the agent does not respond to any SNMP requests, including GetRequests, if no community name is
configured in /etc/SnmpAgent.d/snmpd.conf
. To configure the agent to respond to GetRequests
accompanied by a specific community name, add the community name as a
get-community-name
to
the configuration file. By default the
get-community-name
is set to public in the file. For details on
this configuration file see the snmpd.conf(4) manual page.
By default, the agent does not allow managers to alter
MIB values (it returns errors for
SNMP SetRe-
quests). To configure the agent to respond to
SNMP SetRequests (AND GetRequests), add a
set-
community-name
to the file
/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.
Then 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.
linkDown Sends a linkDown trap when an interface goes down.
linkUp Sends a linkUp trap when an interface comes up.
authenticationFailure
Sends an authenticationFailure trap when an SNMP request is sent to the agent with
a community name that does not match any community names the agent is configured
to work with.
SNMP Agent Logging
The SNMP Agent provides the capability to log various types of errors and events. There are three types of
logging: Errors, Warnings and Traces.
Section 1M852 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005