188
mdc-admin
Parameters
inform
: Specifies informs.
trap
: Specifies traps.
interface-type
{
interface-number
|
interface-number.subnumber
}: Specifies an interface by its type
and number. The
interface-number
argument specifies a main interface number. The
subnumber
argument specifies a subinterface number in the range of 1 to 4094.
Usage guidelines
The
snmp-agent source
command enables the SNMP agent to use the primary IP address of an
interface or subinterface as the source IP address in all its SNMP informs or traps, regardless of their
outgoing interfaces. An NMS can use this IP address to filter all the informs or traps sent by the
SNMP agent.
Make sure 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.
Examples
# Configure the primary IP address of GigabitEthernet 1/0/1 as the source address of SNMP traps.
<Sysname> system-view
[Sysname] snmp-agent trap source gigabitethernet 1/0/1
# Configure the primary IP address of GigabitEthernet 1/0/2 as the source address of SNMP informs.
<Sysname> system-view
[Sysname] snmp-agent inform source gigabitethernet 1/0/2
Related commands
snmp-agent
target-host
snmp-agent
trap
enable
snmp-agent sys-info contact
Use
snmp-agent sys-info contact
to configure the system contact.
Use
undo snmp-agent sys-info contact
to restore the default contact.
Syntax
snmp-agent
sys-info
contact
sys-contact
undo
snmp-agent
sys-info
contact
Default
The system contact is:
Hewlett Packard Enterprise Company
3000 Hanover St
Palo Alto, CA 94304
Views
System view
Predefined user roles
network-admin
mdc-admin