10-26
Before you can configure the IP address of a particular interface as the source IP address of the trap,
ensure that the interface already exists and that it has a legal IP address. Otherwise, if the configured
interface does not exist, the configurations will fail; if the specified IP address is illegal, the
configuration will be invalid. After a legal IP address is configured for the interface, the configuration
becomes valid automatically.
Related commands:
snmp-agent trap enable, snmp-agent target-host
.
Examples
# Configure the IP address of Vlan-interface 1 as the source address for traps.
<Sysname> system-view
[Sysname] snmp-agent trap source Vlan-interface 1
snmp-agent usm-user { v1 | v2c }
Syntax
snmp-agent usm-user
{
v1
|
v2c
}
user-name
group-name
[
acl
acl-number
]
undo snmp-agent usm-user { v1 | v2c }
user-name
group-name
View
System view
Default Level
3: Manage level
Parameters
v1
: The configured user name should be applied in the SNMPv1 networking environment. If the agent
and the NMS use SNMPv1 packets to communicate with each other, this keyword is needed.
v2c
: The configured user name should be applied in the SNMPv2c networking environment. If the
agent and the NMS use SNMPv2c packets to communicate with each other, this keyword is needed.
user-name
: User name, a string of 1 to 32 characters. It is case sensitive.
group-name
: Group name, a string of 1 to 32 characters. It is case sensitive.
acl acl-number
: Associates a basic ACL with the user.
acl-number
is in the range 2000 to 2999. By
using a basic ACL, you can restrict the source IP address of SNMP packets, that is, you can configure
to allow or prohibit SNMP packets with a specific source IP address, so as to allow or prohibit the
specified NMS to access the agent by using this user name.
Description
Use the
snmp-agent usm-user
{
v1
|
v2c
}
command to add a user to an SNMP group.
Use the
undo snmp-agent usm-user
{
v1
|
v2c
}
command to delete a user from an SNMP group.
As defined in the SNMP protocol, in SNMPv1 and SNMPv2c networking applications, the NMS and the
agent use community name to authenticate each other; in SNMPv3 networking applications, they use
user name to authenticate each other. If you prefer using the user name in the authentication, the
device supports configuration of SNMPv1 and SNMPv2c users. Creating an SNMPv1 or SNMPv2c
user equals adding of a new read-only community name. After you add the user name into the
read-only community name field of the NMS, the NMS can establish SNMP connection with the device.
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...