How does a Huawei router save system logs?

Source: Internet
Author: User


Many netizens need to check the vro logs to learn about how Huawei routers save system logs. In this case, we need to set up a log server, for windows systems, you must already know how to set it. Today we will talk about Linux systems and how to configure the system log function. Www.2cto.com 1. in LINUX, run the command as root: # mkdir/var/log/Quidway # touch/var/log/Quidway/config # touch/var/log/Quidway/security 2. edit/etc/syslog as root. conf1, add the following selector/action pairs: # Quidway configuration messageslocal4.crit/var/log/Quidway/config # Quidway security messageslocal5.notice/var/log/Quidway/security
2. Note: www.2cto.com (1) the comment can only start with a single line and start with a character #. (2) The selection and action combination must be separated by a Tab character rather than a space. (3) no extra space is allowed after the file name; (4) When the log file config and security are created and/etc/syslog. after the conf file is modified, execute # ps-AE | grep syslogd # kill-HUP 147 to send syslogd an HUP signal so that syslogd can re-read its configuration file/etc/syslog. conf. 3. Set show loghost to view the log host on the vro; no loghost to cancel the log host; loghost-ip-address to set the log host; after the preceding settings, you can automatically save system logs for the vro.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.