Originally posted by: SystemAdmin
In AIX 5, the following SNMP daemons can be used to make information available to clients.
snmpd
/usr/sbin/snmpd is a symbolic link to either the snmpdv1 daemon which supports only SNMP version 1, or to either the encrypted or non-encrypted version of the snmpdv3 daemon which supports SNMP version 3. For information about the snmpd daemon, please refer to the documentation of the appropriate version of the SNMP agent.
The SNMP daemon provides the following three functions:
Receiving and authenticating SNMP requests from network monitors.
Processing requests and returning results to the originating monitor.
Sending trap notification to all hosts listed in the configuration file.
snmpdv1 daemon
Starts the Simple Network Management Protocol (SNMP) version 1 agent as a background process.
snmpdv3 daemon
Starts the Simple Network Management Protocol (SNMP) version 3 agent as a background process.
hostmibd
The hostmibd command starts the hostmibd dpi2 sub-agent.
This daemon is used for some of the most basic AIX performance data.
dpid2
The dpid2 DPI-SMUX converter daemon complies with the standard Simple Network Management Protocol Distributed Protocol Interface Version 2.0.
dpid2 acts as a DPI® 2.0 to SMUX converter. It is used to allow DPI sub-agents, such as /usr/sbin/hostmibd, to talk with the AIX SNMP version 1 agent.
aixmibd
Provides the AIX® Enterprise Management Information Base (MIB) extension subagent, for use with the Simple Network Management Protocol (SNMP) version 3 agent, that collects data from system for variables defined in the AIX Enterprise Specific MIB.
One focus of the subagent is on the data related to the file systems, volume groups, logical volumes, physical volumes, paging space, processes, print queues, print jobs, system users, system groups, users currently logged in, subsystems, subservers, system environment, and various devices.
Another focus of the subagent is on important system traps.
For example, when the /home file system reaches the threshold 95% (percent used size), a trap can be generated to report the event to a manager.
Xmservd
Xmservd can show more detailed information. Xmservd comes with Performance Toolbox which must be purchased separately. Performance Toolbox Books have information on xmservd.
To use aixmibd, you need to modify /etc/snmpdv3.conf file. Because aixmibd managed MIBs are excluded by default.
The entry looks like this before changing
-
exclude aixmibd managed MIBs from the default view
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - excluded -
Add "#" so that aixmibd managed MIBs will not be excluded, and the stop and restart the daemons. The changed file should now show:
-
exclude aixmibd managed MIBs from the default view
#VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191
Then stop and start snmpd and aixmibd by src commands. refresh command does not re-read the config file.
-
stopsrc -s aixmibd
-
stopsrc -s snmpd
-
startsrc -s snmpd
-
startsrc -s aixmibd
-
snmpinfo -v -m dump -c public hrProcessorLoad
hrProcessorLoad.1 = 20
hrProcessorLoad.2 = 20
hrProcessorLoad.3 = 19
hrProcessorLoad.4 = 19
Configuration files and parameters
/etc/hostmibd.conf: Defines the configuration parameters for hostmibd command.
/etc/mib.defs: Defines the Management Information Base (MIB) variables the SNMP agent and manager should recognize and handle
/etc/aixmibd.conf: Contains the configuration file for the aixmibd subagent.
/usr/samples/snmpd/aixmibd_security_readme: Contains the example configurations for different views and information about related security issues. Also contains information describing how to set the variables in /etc/aixmibd.conf.
/usr/samples/snmpd/aixmibd.my: Contains the MIB definitions for the aixmibd subagent.
/usr/samples/snmpd/hr.my: Contains more MIB definitions.
/etc/snmpd.conf: Specify smux peer entry in snmpd v1 agent configuration file.
/etc/snmpd.peers: Specify the configuration for smux peer.
/etc/clsnmp.conf: Configuration file for the clsnmp command.
/etc/snmpdv3.conf: Defines a sample configuration file for the snmpdv3 agent.