Snmp-Agent Trap Source - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent trap queue-size 200

snmp-agent trap source

Syntax
snmp-agent trap source interface-type interface-number
undo snmp-agent trap source
View
System view
Parameters
interface-type interface-number: Interface type and interface number. The source IP address of the trap
is the IP address of this interface.
Description
Use the snmp-agent trap source command to configure the source address for the SNMP traps sent.
Use the undo snmp-agent trap source command to cancel the configuration.
By default, the outbound interface is determined by SNMP and the IP address of this interface is used
as the source IP address of the traps.
After the command is executed, the system uses the primary IP address of the specified interface as the
source IP address of the traps sent. Thus on the NMS you can use the IP address to uniquely identify
the agent.
For example, although the agent uses different outbound interfaces to send traps, the NMS can still use
the IP address to filter all the traps that the agent sends.
You can configure this command to track a specific event by the source addresses of SNMP traps.
Before configuring an interface as the source interface for the SNMP traps sent, make sure the interface
is assigned an IP address.
Related commands: snmp-agent trap enable, snmp-agent target-host.
Examples
# Configure VLAN-interface 1 as the source interface for the SNMP traps sent.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent trap source Vlan-interface 1
1-25

Advertisement

Table of Contents
loading

Table of Contents