Snmp-Agent Trap Ifmib - H3C s3600 series Command Manual

Hide thumbs Also See for s3600 series:
Table of Contents

Advertisement

Use the undo snmp-agent trap enable command to disable a device from sending SNMP traps that
are of specified types.
By default, a device sends all types of SNMP traps.
The snmp-agent trap enable command need to be coupled with the snmp-agent target-host
command. The snmp-agent target-host command specifies the destination hosts for SNMP traps. At
least one destination host is required for SNMP traps.
Examples
# Enable sending of SNMP authentication failure traps, with the destination IP address being 10.1.1.1
and the community name being public.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent trap enable standard authentication
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname public

snmp-agent trap ifmib

Syntax
snmp-agent trap ifmib link extended
undo snmp-agent trap ifmib link extended
View
System view
Parameters
None
Description
Use the snmp-agent trap ifmib link extended command to configure the extended trap. "Interface
description" and "interface type" are added into the extended linkUp/linkDown trap.
Use the undo snmp-agent trap ifmib link extended command to restore the default setting.
By default, the linkUp/linkDown trap uses the standard format defined in IF-MIB (refer to RFC 1213 for
detail). In this case, no MIB object name is added after the OID field of the MIB object.
Examples
# Before the configuration of the extended trap function, the trap information is as follows when a link is
down:
#Apr
2 05:53:15:883 2000 H3C L2INF/2/PORT LINK STATUS CHANGE:- 1 -
Trap 1.3.6.1.6.3.1.1.5.3(linkDown): portIndex is 4227634, ifAdminStatus is 2, ifOperStatus
is 2
#Apr 2 05:53:16:094 2000 H3C IFNET/5/TRAP:- 1 -1.3.6.1.6.3.1.1.5.3(linkDown) Interface 31
is Down
# Configure the extended linkUp/linkDown trap format to make traps include the interface description
and interface type information.
<Sysname> system-view
1-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents