HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
s
snmpd(1M) snmpd(1M)
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 SNMPR
agent with a community name that does not match the community names specified
in /etc/SnmpAgent.d/snmpd.conf
.
The Master Agent (
snmpdm) and the IPv6 subAgent (
ipv6agt) collaborate to send the following SNMP
traps:
linkDown Sends a linkDown trap when an IPv6 interface goes down.
linkUp Sends a linkUp trap when an IPv6 interface comes up.
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.
Log Masks
Log masks enable the user to specify the particular classes of messages that should be logged to
/var/adm/snmpd.log
or the specified logfile. There are three different ways in which you can specify
the logmask that you want. They are: (1) decimal number, (2) hex number, or (3) text string. The three
may not be used in combination.
To select multiple output types do the following. For decimal or hex format simply add the individual log-
mask values together and enter that number. When entering strings, place multiple strings on the same
line, space separated, without quotes.
==================================================================
LOG MASK VALUES
FUNCTION Decimal Hex String
==================================================================
Turn off logging 0 0x00000000 LOGGING_OFF
Log factory trace messages 8388608 0x00800000 FACTORY_TRACE
Log factory warning messages 268435456 0x10000000 FACTORY_WARN
Log factory error messages 536870912 0x20000000 FACTORY_ERROR
Log factory configure messages 65536 0x00010000 FACTORY_CONFIG
Log factory packet messages 131072 0x00020000 FACTORY_PACKET
Log factory trap messages 262144 0x00040000 FACTORY_TRAP
Log factory access messages 524288 0x00080000 FACTORY_ACCESS
Log factory emanate messages 1048576 0x00100000 FACTORY_EMANATE
Log factory verbose messages 2097152 0x00200000 FACTORY_VERBOSE
Log factory user messages 4194304 0x00400000 FACTORY_USER
Log factory thread messages 1073741824 0x40000000 FACTORY_THREAD
Log factory timer messages 2147483648 0x80000000 FACTORY_TIMER
For example, to turn on error log messages:
decimal format: snmpdm -m 536870912
hex format: snmpdm -m 0x20000000
string format: snmpdm -m FACTORY_ERROR
Supported MIB Objects
The Management Information Base (MIB) is a conceptual database of values on the agent. The Master
SNMP Agent implements a small number of MIB objects but most MIB objects are implemented by
subAgents that have attached to the Master Agent. See /var/opt/OV/share/snmp_mibs/ on sys-
tems with HP OpenView products installed for definitions of particular MIB objects.
This version of the SNMP Agent includes the subAgents,
/usr/sbin/mib2agt,
/usr/sbin/hp_unixagt and /usr/sbin/ipv6agt which implement the MIB-2, HP UNIX and
IPv6 MIBs respectively. The IPv6 subagent is supported ONLY on HP-UX 11i Version 1 platform with the
IPv6 depot installed. The MIB-II and HP-UX MIBs are described in
/var/opt/OV/share/snmp_mibs/Standard/rfc1213-MIB-II and
/var/opt/OV/share/snmp_mibs/Vendor/Hewlett-Packard/hp-unix on systems with HP
Openview products installed.
HP-UX 11i Version 2: August 2003 − 3 − Hewlett-Packard Company Section 1M−−771