Get the App
SLTechnology News&Howtos  ›  Network Security  › 

H3C configure log host

Shulou Source: shulou.com Published: 2022-06-01 05:30:47 10月04日 Update

Huasan network equipment information level has a total of 8 levels, from high to bottom are emergencies/alerts/critical/errors/warnings/notifications/infomational/debugging.

Information level numerical description of emergencies0 system unavailable information

Information that alerts1 needs to respond immediately critical2 serious information errors3 error message warnings4 warning message notifications5 appears normally but important information infomational6 needs to record notification information debugging7 debugging process produces information

Here I will only sort out a few configuration commands that must or are often used to configure log hosts on the switch.

Info-center enable

Info-center source default channel loghost debug state off log state off trap state off

Info-center source default channel loghost log level informational state on / / send log logs at or above information level

The above two commands can configure the specified log module and send the specified log level. The above example is all modules (default).

Info-center timestamp loghost no-year-date / / the log format does not display the year

This command selects the format of the log timestamp.

Info-center loghost host-ipv4-address port port-number facility local7

This command sets the address and port of the log server, and the facility command sets the device information for log classification on the log server.

Tags: Information log command configuration level server format module device service host important superior example address numerical value time port system network Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Docker Huawei MariaDB MySQL