F3215-HP Load Balancing Module System Maintenance Command Reference-6PW101
79
Before you can configure the IP address of a particular interface as the source IP address of the trap,
make sure the interface already exists and that it has a legal IP address. If the configured interface does
not exist, the configuration fails. If the specified IP address is illegal, the configuration becomes invalid.
When a legal IP address is configured for the interface, the configuration automatically becomes valid.
Examples
# Configure the IP address for GigabitEthernet 0/1 as the source address for traps.
<Sysname> system-view
[Sysname] snmp-agent trap source gigabitethernet 0/1
Related commands
• snmp-agent target-host
• snmp-agent trap enable
snmp-agent usm-user { v1 | v2c }
Use snmp-agent usm-user { v1 | v2c } to add a user to an SNMPv1 or SNMPv2c group.
Use undo snmp-agent usm-user { v1 | v2c } to delete a user from an SNMPv1 or SNMPv2c group.
Syntax
snmp-agent usm-user { v1 | v2c } user-name group-name [ acl acl-number | acl ipv6 ipv6-acl-number ]
*
undo snmp-agent usm-user { v1 | v2c } user-name group-name
Views
System view
Default command level
3: Manage level
Parameters
v1: Specifies SNMPv1.
v2c: Specifies SNMPv2c.
user-name: Specifies a username, a case-sensitive string of 1 to 32 characters.
group-name: Specifies a group name, a case-sensitive string of 1 to 32 characters.
acl acl-number: Specifies a basic ACL to filter NMSs by source IPv4 address. The acl-number argument
represents a basic ACL number in the range of 2000 to 2999. Only the NMSs with the IPv4 addresses
permitted in the ACL can use the specified username (community name) to access the SNMP agent.
acl ipv6 ipv6-acl-number: Specifies a basic ACL to filter NMSs by source IPv6 address. The
ipv6-acl-number argument represents a basic ACL number in the range of 2000 to 2999. Only the NMSs
with the IPv6 addresses permitted in the ACL can use the specified username (community name) to
access the SNMP agent.
Usage guidelines
Make sure you have created the SNMPv1 or SNMPv2c group.
When you create an SNMPv1 or SNMPv2c user, the system automatically creates a read-only
community that has the same name as the SNMPv1 or SNMPv2c username. To change the access right
of this community to write access, use the snmp-agent community command or the snmp-agent group