No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Device Management

CloudEngine 12800 and 12800E V200R005C10

This document describes the configurations of Device Management, including device status query, hardware management, Information Center Configuration, NTP, Synchronous Ethernet Configuration, Fault Management Configuration, Energy-Saving Management Configuration, Performance Management Configuration, Maintenance Assistant Configuration, and OPS Configuration.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Outputting Logs to the Log File

Example for Outputting Logs to the Log File

Networking Requirements

As shown in Figure 3-7, SwitchA connects to the FTP server through the network. There is a reachable route between SwitchA and the FTP server. The network administrator wants to use the FTP server to view logs generated by SwitchA and learn operations on SwitchA.

NOTE:
FTP is not a secure protocol. SFTP is recommended on networks that require high security.
Figure 3-7 Networking diagram for outputting logs to the log file

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable the information center.

  2. Configure a channel and a rule for outputting logs to a log file so that logs are saved in the log file.

  3. Configure SwitchA to transfer the log file to the FTP server so that the network administrator can use the FTP server to view logs generated by SwitchA.

Procedure

  1. Enable the information center.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] info-center enable
    [*SwitchA] commit
    

  2. Configure a channel and a rule for outputting logs to a log file.

    # Configure a channel for outputting logs to a log file. By default, channel 9 is used to send logs to a log file. If the default setting is used, skip this step.

    [~SwitchA] info-center logfile channel channel6
    [*SwitchA] commit
    

    # Configure a rule for outputting logs to a log file.

    [~SwitchA] info-center source default channel channel6 log level warning
    [*SwitchA] commit
    

  3. Configure SwitchA to transfer the log file to the FTP server.

    # Log in to the FTP server with user name user1 and password pwd123.

    <SwitchA> ftp 10.1.1.1
    Trying 10.1.1.1 ...    
    Press CTRL + K to abort 
    Connected to 10.1.1.1.   
    220 VRPV8 FTP service ready.
    User(10.1.1.1:(none)):user1 
    331 Password required for user1.   
    Enter password:                
    230 User logged in.      
    

    # Configure SwitchA to transfer the log file to the FTP server.

    [ftp] put flash:/logfile/log.log
    200 Port command okay.
    150 Opening ASCII mode data connection for /log.log.
    226 Transfer complete.
    \     100% [***********]
    FTP: 7521956 byte(s) send in 3.1784917300 second(s) 2311.409Kbyte(s)/sec.
    [ftp] quit

  4. Verify the configuration.

    # View information recorded by the channel.

    <SwitchA> display info-center
    Information Center:enabled
    Log host:
    Console:
            channel number : 0, channel name : console
    Monitor:
            channel number : 1, channel name : monitor
    SNMP Agent:
            channel number : 5, channel name : snmpagent
    Log buffer:
            enabled,max buffer size 10240, current buffer size 512,
    current messages 18, channel number : 4, channel name : logbuffer
    dropped messages 0, overwritten messages 0
    Trap buffer:
            enabled,max buffer size 1024, current buffer size 256,
    current messages 36, channel number:3, channel name:trapbuffer
    dropped messages 0, overwritten messages 0
    Logfile:
            channel number : 6, channel name : channel6, language : English
    Information timestamp setting:
            log - date, trap - date, debug - date millisecond
    

    # View the received log file on the FTP server. The configuration details are not mentioned here.

Configuration Files

  • Configuration file of SwitchA

    #
    sysname SwitchA
    #
    info-center source default channel 6 log level warning
    info-center logfile channel 6
    #
    return
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100074722

Views: 11328

Downloads: 10

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next