Site/SunNet/Domain Manager Reference Manual
  Cerca solo questo libro
Scarica il manuale in formato PDF

NAME

na.snmp-trap.default-trapfile - SunNet Manager SNMP trap file

DESCRIPTION

The SNMP trap daemon na.snmp-trap(8) translates SNMP traps to SunNet Manager traps. It uses the SNMP trap file to map trap types to names and to determine which trap types should be ignored.
The default file name is defined by the value of this keyword in the /etc/opt/SUNWconn/snm/snm.conf file for Solaris 2.x and in the /etc/snm.conf file for Solaris 1.x on the system where the trap daemon is running. At installation, this file name is /var/opt/SUNWconn/snm/snmp.traps for Solaris 2.x and /var/adm/snmp.traps for Solaris 1.x. If you wish to specify a different trap file for a specific device, identify the trap file in an SNMP host file entry for the device.

SYNTAX

The SNMP trap file consists of one or more entries. Each entry defines the traps for one enterprise.
The first line in an entry is of the following format:
enterprise id
where
id
is the enterprise identifier in dot notation. Set id to "0" to specify the trap names for generic traps.
The remaining lines in an entry are of the following format:
number name
discard
where
number is the type number of the trap.
name
is the name of the trap.
discard
is an optional field that, if set to the string discard, indicates that this trap type should be discarded.

EXAMPLE

The following is an example of a trap file entry:
enterprise 1.3.6.1.4.1.42
1
CPU_Failure
2
Power_Supply_Failure
3
Network_Connection_Failure
4       Over_Heating                    discard
5       RealTimeClock_Failure           discard

SEE ALSO

snm.conf(5), na.snmp-trap(8)

NOTES

na.snmp-trap.default-trapfile is not a file. It is the name of a keyword in snm.conf(5). Since you can change the name of the file, it is listed by its keyword.