The alarm snmp target-host command enables the Router to send alarms to an NMS host.
The undo alarm snmp target-host command disables the Router from sending alarms to an NMS host.
By default, the Router is enabled to send alarms to an NMS host.
Usage Scenario
To enable the router to send alarms to an NMS host, run the alarm snmp target-host command. After the alarm snmp target-host command is used, the system sends alarms to the NMS host named host-name. If you do not need to view alarms, run the undo alarm snmp target-host command to disable the system from sending alarms to the NMS host named host-name.
Prerequisites
NMS hosts have been configured. You can run the display snmp-agent target-host command to query the existing NMS hosts for alarm configuration using the host name.
Configuration Impact
After the undo alarm snmp target-host command is run, alarms generated on the Router cannot be sent to the relevant NMS host.
Precautions
Running the undo alarm snmp target-host command will disable the NMS host from being notified of a fault immediately. Therefore, exercise caution when running this command. If the undo alarm snmp target-host command is run temporarily, for example, in Router maintenance, run the alarm snmp target-host command immediately when the undo alarm snmp target-host command is not required.
<HUAWEI> system-view [~HUAWEI] snmp-agent target-host host-name target_host_1 inform address udp-domain 192.168.3.1 params securityname a123 v3 [*HUAWEI] alarm [*HUAWEI-alarm] undo alarm snmp target-host target_host_1
<HUAWEI> system-view [~HUAWEI] snmp-agent target-host host-name target_host_1 inform address udp-domain 192.168.3.1 params securityname a123 v3 [*HUAWEI] alarm [*HUAWEI-alarm] alarm snmp target-host target_host_1