v1: Specifies SNMPv1.
•
•
v2c: Specifies SNMPv2c.
v3: Specifies SNMPv3.
•
Usage guidelines
Configure the SNMP agent with the same SNMP version as the NMS for successful communications
between them.
In FIPS mode, only SNMPv3 is supported.
Examples
# Configure the system contact 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
Related commands
display snmp-agent sys-info
snmp-agent target-host
Use snmp-agent target-host to configure a target host for receiving traps sent by the SNMP agent.
Use undo snmp-agent target-host to remove settings for an SNMP trap target host.
Syntax
In non-FIPS mode:
snmp-agent target-host trap address udp-domain { ip-address | ipv6 ipv6-address } [ udp-port
port-number ] [ vpn-instance vpn-instance-name ] params securityname security-string [ v1 | v2c | v3
[ authentication | privacy ] ]
undo snmp-agent target-host trap address udp-domain { ip-address | ipv6 ipv6-address } params
securityname security-string [ vpn-instance vpn-instance-name ]
In FIPS mode:
snmp-agent target-host trap address udp-domain { ip-address | ipv6 ipv6-address } [ udp-port
port-number ] [ vpn-instance vpn-instance-name ] params securityname security-string v3
[ authentication | privacy ]
undo snmp-agent target-host trap address udp-domain { ip-address | ipv6 ipv6-address } params
securityname security-string [ vpn-instance vpn-instance-name ]
Views
System view
Default command level
3: Manage level
Parameters
trap: Specifies a target host for receiving the traps sent by the device.
address: Specifies the IP address of the target host.
udp-domain: Specifies UDP as the transport protocol.
118