< Home

Configuring the Switch to Periodically Report Logs and Alarms to an NMS

Prerequisites

There are reachable routes between a switch and the NMS.

Context

To implement intelligent video O&M, the switch establishes a NETCONF connection with the NMS and periodically reports collected information to the NMS. Therefore, you must configure the switch by enabling the NETCONF function and configuring the IPv4 addresses and port numbers used for communication with the NMS.

Procedure

  • Report logs and alarms to the NMS through Syslog.

    1. Configure the switch to use SNMP for communication with the NMS. For the detailed configuration procedure, see SNMP Configuration in the S2720, S5700, and S6700 V200R019C10 Configuration Guide - Network Management and Monitoring.
    2. Configure the Syslog protocol to ensure that the switch sends logs and alarms to the NMS.
      1. Run the system-view command to enter the system view.
      2. Run the info-center enable command to enable the information center.
      3. Run the info-center loghost source interface-type interface-number command to configure the source interface from which the switch sends logs to the NMS.
      4. Run the info-center loghost ip-address command to configure the IP address of the NMS for receiving logs.

  • Report logs and alarms to the NMS through Telemetry.

    1. Run the system-view command to enter the system view.
    2. Run the netconf command to enable the NETCONF function and enter the NETCONF view.
    3. Run the source ip ip-address [ port port-number ] command to configure the source IPv4 address and port number for the switch to interconnect with the NMS.
    4. Run the smi-server command to create and enter SMI view.
    5. Run the server ip-address ip-address [ port port-number ] command to configure the IPv4 address and port number of the NMS to interconnect with the switch.
    6. (Optional) Run the keepalive { interval interval | retry-interval retry-interval | retry-number retry-number } * command to configure connection parameters between the switch and NMS.

      By default, the switch and NMS send heartbeat packets to each other at an interval of 5 minutes, the switch reconnects to the NMS at an interval of 5 minutes, and the maximum number of reconnection attempts is 0.

    7. (Optional) Run the max-packet-size size command to set the maximum size of packets sent by the switch to report KPI information to the NMS.

      By default, the maximum size of packets sent by the switch to report KPI information to the NMS is 5 KB.

    8. Run the collect-item syslog { aaa | acl | basetrap | defd | dhcp | dot1x | entitytrap | ifnet | ifpdt | l2ifppi | l3adp | lbdt | mcast | mpls | mstp | nac | poe | portal | sea | sece | shell | srm | web } enable command to configure the switch to report logs and alarms to the NMS.

      By default, the switch is disabled from reporting logs and alarms to the NMS.

      When the dhcp parameter is specified to enable the switch is enabled to report DHCP logs to the NMS, run the dhcp snooping packet-flow log enable command to enable the switch to record logs when DHCP packets are exchanged.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >