Snmp-Agent Trap Source - H3C S5830V2 Series Command Reference Manual

Network management and monitoring
Hide thumbs Also See for S5830V2 Series:
Table of Contents

Advertisement

Predefined user roles
network-admin
Parameters
seconds: Sets a lifetime in seconds, in the range of 1 to 2592000.
Usage guidelines
When congestion occurs or the target host is not reachable, the SNMP agent buffers notifications in a
queue. The notification lifetime sets how long a notification can stay in the queue. A notification is
deleted when its lifetime expires.
Examples
# Set the SNMP notification lifetime to 60 seconds.
<Sysname> system-view
[Sysname] snmp-agent trap life 60
Related commands
snmp-agent target-host
snmp-agent trap enable

snmp-agent trap source

Use the snmp-agent trap source command to specify a source IP address for the notifications sent by the
SNMP agent.
Use the undo snmp-agent trap source command to restore the default.
Syntax
snmp-agent trap source interface-type interface-number
undo snmp-agent trap source
Default
The SNMP agent uses the IP address of the outgoing routed interface as the source IP address of
notifications.
Views
System view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies a Layer 3 interface by its type and number.
Usage guidelines
The snmp-agent trap source command enables the SNMP agent to use the primary IP address of an
interface as the source IP address in all its SNMP notifications, regardless of their outgoing interfaces. An
NMS can use this IP address to filter all the notifications sent by the SNMP agent.
Make sure that the specified interface has been created and assigned a valid IP address. The
configuration will fail if the interface has not been created and will take effect only after a valid IP
address is assigned to the specified interface.
112

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2 series

Table of Contents