Snmp-Agent Usm-User { V1 | V2C - HP 6125G Command Reference Manual

Network management and monitoring
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

Parameters
interface-type interface-number: Specifies the interface type and interface number.
Description
Use snmp-agent trap source to specify the source IP address contained in the traps.
Use undo snmp-agent trap source to restore the default.
By default, SNMP chooses the IP address of an interface to be the source IP address of the traps.
Upon the execution of this command, the system uses the primary IP address of the specified interface as
the source IP address of the traps, and the NMS uses this IP address to uniquely identify the agent. Even
if the agent sends out traps through different interfaces, the NMS uses this IP address to filter all traps sent
from the agent.
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.
Related commands: snmp-agent target-host and snmp-agent trap enable.
Examples
# Configure the IP address for the port Vlan-interface1 as the source address for traps.
<Sysname> system-view
[Sysname] snmp-agent trap source Vlan-interface1

snmp-agent usm-user { v1 | v2c }

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
View
System view
Default level
3: Manage level
Parameters
v1: Specifies SNMPv1.
v2c: Specifies SNMPv2.
user-name: Specifies the username, a case-sensitive string of 1 to 32 characters.
group-name: Specifies the 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
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents