H3C Technologies H3C S6300 Series Switches User Manual
Page 111
98
Step
Command
Remarks
2.
Configure a target host.
•
(Method 1) Send traps to the target
host:
In non-FIPS mode:
snmp-agent target-host trap address
udp-domain { ip-address | ipv6
ipv6-address } [ udp-port
port-number ] params securityname
security-string [ v1 | v2c | v3
[ authentication | privacy ] ]
In FIPS mode:
snmp-agent target-host trap address
udp-domain { ip-address | ipv6
ipv6-address } [ udp-port
port-number ] params securityname
security-string v3 { authentication |
privacy }
•
(Method 2) Send informs to the target
host:
In non-FIPS mode:
snmp-agent target-host inform
address udp-domain { ip-address |
ipv6 ipv6-address } [ udp-port
port-number ] params securityname
security-string { v2c | v3
[ authentication | privacy ] }
In FIPS mode:
snmp-agent target-host inform
address udp-domain { ip-address |
ipv6 ipv6-address } [ udp-port
port-number ] params securityname
security-string v3 { authentication |
privacy }
Use either method.
By default, no target host is
configured.
3.
(Optional.) Configure a
source address for
notifications.
snmp-agent { inform | trap } source
interface-type interface-number
By default, SNMP uses the IP
address of the outgoing routed
interface as the source IP address.
4.
(Optional.) Enable
extended
linkUp/linkDown
notifications.
snmp-agent trap if-mib link extended
By default, the SNMP agent sends
standard linkup/linkDown
notifications.
5.
(Optional.) Configure
the notification queue
size.
snmp-agent trap queue-size size
By default, the notification queue
can hold 100 notification
messages.
6.
(Optional.) Configure
the notification lifetime. snmp-agent trap life seconds
The default notification lifetime is
120 seconds.
7.
(Optional.) Configure
the interval for sending
periodical traps.
snmp-agent trap periodical-interval
interval-time
By default, the periodical trap
sending interval is 60 seconds.
This configuration is available in
Release 2311P03 and later
versions.