2342 CHAPTER 154: SNMP CONFIGURATION COMMANDS

 

version: The SNMP version in use.

 

all: Specifies SNMPv1, SNMPv2c, and SNMPv3.

 

v1: SNMPv1.

 

v2c: SNMPv2c.

 

v3: SNMPv3.

Description

Use the snmp-agentsys-infocommand to configure system information,

 

including the contact information, the location, and the SNMP version in use.

 

Use the undo snmp-agent sys-info contact command and the undo

 

snmp-agentsys-info location command to restore the default.

 

Use the undo snmp-agentsys-info version command to disable use of the

 

SNMP function of the specified version.

 

By default, the location information is Hangzhou China, version is SNMPv3, and

 

the contact is Hangzhou H3C Technology Co., Ltd.

Related command:

display snmp-agentsys-info.

 

Network maintenance switch fabricers can use the system contact information to

n get in touch with the manufacturer in case of network failures. The system

 

location information is a management variable under the system branch as

 

defined in RFC1213-MIB, it identifies the location of the managed object.

Example

# Configure the contact information as “Dial System Operator at beeper #

 

27345”.

 

<Sysname> system-view

 

[Sysname] snmp-agent sys-info contact Dial System Operator at beeper # 27345

 

 

 

snmp-agent target-host

 

 

Syntax

snmp-agent target-host trap address udp-domain { ip- address ipv6 ipv6-

 

address } [ udp-portport-number ] [ vpn-instancevpn-instance-name ] params

 

securityname security-string[ v1 v2c v3 [ authentication privacy ] ]

 

undo snmp-agent target-host { ip- address ipv6 ipv6- address } securityname

 

security-string [ vpn-instancevpn-instance-name ]

View

System view

Parameter

trap: Specifies the host to be the Trap host.

 

address: Specifies the IP address of the target host for the SNMP messages.

udp-domain: Indicates that the Trap message is transmitted using UDP.

ip-address:The IPv4 address of the Trap host.

Page 2342
Image 2342
3Com MSR 30, MSR 50 manual Snmp-agent target-host, Related command Display snmp-agentsys-info