Snmp-Agent - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

View
Ethernet port view, interface view
Parameters
None
Description
Use the enable snmp trap updown command to enable the sending of port/interface linkUp/linkDown
traps.
Use the undo enable snmp trap updown command to disable the sending of linkUp/linkDown traps.
By default, the sending of port/interface linkUp/linkDown traps is enabled.
Note that you need to enable the generation of port/interface linkUp/linkDown traps both on the
port/interface and globally if you want a port/interface to generate port/interface linkUp/linkDown traps
when the state of the port/interface changes.
To enable this function on a port/interface, use the enable snmp trap updown command; to enable
this function globally, use the snmp-agent trap enable [ standard [ linkdown | linkup ] * ] command.
By default, both are enabled.
Examples
# Enable the port Ethernet 1/0/1 to send linkUp/linkDown SNMP traps to the NMS whose IP address is
10.1.1.1 using the community name public.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname public
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] enable snmp trap updown

snmp-agent

Syntax
snmp-agent
undo snmp-agent
View
System view
Parameters
None
Description
Use the snmp-agent command to enable the SNMP agent.
Use the undo snmp-agent command to disable the SNMP agent.
Execution of the snmp-agent command or any of the commands used to configure the SNMP agent,
you can start the SNMP agent.
1-11

Advertisement

Table of Contents
loading

Table of Contents