Figure 1. Configuration files for snmp
The z/OS® UNIX snmp command is used
to send SNMP requests to SNMP agents on local or remote hosts, or
to receive SNMP traps or notifications. You can also use the synonym, osnmp,
as the name of this command. The requests can be SNMPv1, SNMPv2c,
or SNMPv3. For SNMPv2c and SNMPv3 requests, the OSNMP.CONF configuration
file is required. The winSNMPname specified
on an OSNMP.CONF statement can be used as the value of the -h parameter
on the snmp command. For a detailed explanation
of the parameters you can specify on the snmp command,
see z/OS Communications Server: IP System Administrator's
Commands.
To configure the
snmp command, perform the following
tasks:
- The snmp command needs to be able to resolve
the name of the host, on which the command is executing, to the host's
IP address. You can provide this information either by configuring
a domain name server or by configuring local host files. For information
about the search order used to locate local host files, see the local
host tables entry in Table 1.
As part of its support for the SNMPv3 protocol, the command also uses
this IP address when creating its SNMPv3 engineID value.
- Provide snmp configuration information
- Provide user MIB object information