HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
s
snmpd(1M) snmpd(1M)
Log Masks
Log masks enable the user to specify the particular classes of messages that should be logged to
/var/adm/snmpd.log or 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
==================================================================
Log factory trace messages 8388608 0x00800000 FACTORY_TRACE
Log factory warning messages 268435456 0x10000000 FACTORY_WARN
Log factory error messages 536870912 0x20000000 FACTORY_ERROR
For example, to turn on error log messages:
decimal format: snmpdm -m 536870912
hex format: snmpdm -m 0x20000000
string format: snmpdm -m FACTORY_ERROR
Using -m or -mask logmask command line options might cause the master agent to run in the foreground
and the agent would not daemonize. This could potentially cause system hang during boot times if any of
these options were added to the start up scripts, since the boot up environment might wait indefinitely for
the agent to daemonize. So it is adviced not to add these command line options to the start up scripts but
use these options only during an agent debug session.
Supported MIB Objects
The Management Information Base (MIB) is a conceptual database of values MIB (objects) on the agent.
The Master SNMP Agent implements a small number of
MIB objects but most MIB objects are imple-
mented by subAgents that attach to the Master Agent. See
/opt/OV/snmp_mibs/
on systems with
OpenView products installed for definitions of particular
MIB
objects.
This version of the SNMP Agent includes three subAgents,
/usr/sbin/mib2agt
, and
/usr/sbin/hp_unixagt
which implement the MIB-2 and hp-unix MIBs respectively, and the third
/usr/sbin/trapdestagt
which is used in configuring destinations for the agent’s traps. The MIBs
for the subagents mib2agt and hp_unixagt are described in
/opt/OV/snmp_mibs/rfc1213-MIB-II
and /opt/OV/snmp_mibs/hp-unix
on systems with OpenView products installed.
The MIB-2 subAgent supports most of the objects in
RFC1213. The EGP group is not supported. The hp-
unix subAgent supports most of the objects in the hp-unix MIB.
DEPRECATED MIBS
The ieee8023Mac MIB group corresponding to the following OID is no longer supported:
private(4).enterprises(1).hp(11).nm(2).interface(4).ieee8023Mac(1)
This MIB group is replaced with the "Ether-Like"
MIB group (RFC1398) which corresponds to OID:
mgmt(2).mib-2(1).transmission(10).dot3(7)
SNMP Agent Startup
The SNMP Agent startup mechanism is built upon the System V.4 file system paradigm. The startup
script,
/etc/netmanrc, which was used in previous releases of the SNMP Agent is no longer used.
Automatic Startup
As installed, the SNMP Master Agent and all subAgents should startup automatically each time the system
re-boots or any time the system transitions from run level 1 to run level 2. When the system enters run
level 2 the operating system will execute
/sbin/init.d/SnmpMaster which will startup the Master
Agent. Similarly, the operating system invoked
/sbin/init.d/SnmpMib2,
/sbin/init.d/SnmpHpunix and /sbin/init.d/SnmpTrpDst
will startup the MIB2, HP Unix
and Trap Dest subAgents respectively immediately after the Master Agent is started.
Prior to executing these startup scripts the system will examine all scripts in
/etc/rc.config.d for
environment variables which could potentially influence the startup of the Master Agent and each
subAgent. See the particular startup script or configuration file for details on supported environment
Section 1M−−802 − 3 − HP-UX Release 11i: December 2000
___
___