Snmp-Agent Target-Host - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

Parameters
sys-contact: Contact information for system maintenance, a string of up to 200 characters.
sys-location: Geographical location of the device, a string of up to 200 characters.
version: Specifies the SNMP version to be employed.
v1: Specifies SNMPv1.
v2c: Specifies SNMPv2c.
v3: Specifies SNMPv3.
all: Specifies all the SNMP versions available, that is, SNMPv1, SNMPv2c, and SNMPv3.
Description
Use the snmp-agent sys-info command to set the system information, including geographical location
of the switch, contact information for system maintenance, and the SNMP version employed by the
switch.
Use the undo snmp-agent sys-info location command to restore the default contact information and
geographical location, or stop the running of the corresponding SNMP version.
If the switch fails, you can contact the switch manufacturer according to the system information.
The SNMP versions of the device and the NMS must be consistent; otherwise data exchange cannot be
completed.
The device processes the SNMP messages of the corresponding SNMP version when the SNMP
version is enabled on the device. If only SNMPv1 is enabled, while the device receives SNMPv2c
messages, the messages will be discarded; if only SNMPv2c is enabled, the device discards the
received SNMPv1 messages.
Multiple SNMP versions can be running the on the device at the same time to allow access of different
NMSs.
By default, the contact information of an S3100 Ethernet switch is "Hangzhou H3C Technologies Co.,
Ltd.", the geographical location is "Hangzhou China", and the SNMP version employed is SNMPv3.
You can use the display snmp-agent sys-info command to display the current SNMP system
information.
Examples
# Specify the contact information for system maintenance as Dial System Operator # 1234.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent sys-info contact Dial System Operator # 1234

snmp-agent target-host

Syntax
snmp-agent target-host trap address udp-domain ip-address [ udp-port port-number ] params
securityname security-string [ v1 | v2c | v3 [authentication | privacy ] ]
undo snmp-agent target-host ip-address securityname security-string
1-20

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents