How to view log history on S series switches

3

For S series switches (except the S1700), you can only view the latest cached logs and traps in the buffer. If you want to view earlier messages, run the display logfile file-name command to check log files stored in the logfile or syslogfile folder on the storage card.

Other related questions:
How to view logs and alarms on S series switches
For S series switches (except the S1700), logs are stored first in the log buffer. When the number of logs reaches the threshold, they will be stored in the syslogfile or logfile folder of the storage card on the device. To view log files and the log buffer, run the following commands: - To view log files in the logfile folder, run the following commands in the user view: cd logfile//Access the root directory of the logfile folder dir//Display all files in the root directory Directory of flash:/logfile/ Idx Attr Size(Byte) Date Time FileName 0 -rw- 516,885 Feb 14 2009 02:13:14 2009-02-14.02-13-00.dblg.zip 1 -rw- 479,440 Jan 17 2009 04:10:43 2009-01-17.04-10-30.dblg.zip 2 -rw- 484,459 Jan 25 2009 19:35:59 2009-01-25.19-35-45.dblg.zip 3 -rw- 160,660 Mar 17 2009 14:27:58 2009-03-17.12-27-52.dblg.zip - To check the detailed logs in the log files, run the display logfile logfile/xxxx command, in which xxxx indicates the log file name. - To view logs in the log buffer, run the display logbuffer command. - To view logs in the trap buffer, run the display trapbuffer command. - To view the uncleared alarms after the device starts, run the display alarm active command. - To view historical alarms recorded after the device starts, run the display alarm history command. - To view alarms related to device hardware management, run the display alarm urgent [ slot slot-id | time interval ] command. This command applies only to S series fixed switches. For the meaning of logs, you can log in to Huawei Enterprise Product & Service Support , download the appropriate Log Reference and Alarms Handling documents, and find the meaning for specific logs.

How to change the password to a history password on a CE series switch
By default, the security policy function is enabled for local accounts on CE series switches to ensure security. The new password cannot be the same as any of the last 10 history passwords.

If the password complexity check function is configured, the new password cannot be the same as any of the last 10 history passwords.

To use a history password, run the following commands:
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] undo local-user policy security-enhance //Disable the security policy function for local accounts.  
[*HUAWEI-aaa] undo local-user policy password complexity-enhance //If the password complexity check function has been enabled, disable it.                                           
[*HUAWEI-aaa] commit

How to use logs to view operation records on S series switches
To record operation commands in logs on S series switches (except the S1700), run the following command: info-center source SHELL channel logbuffer log level debugging state on You can then run the display logbuffer command to view the commands executed after you log in to the device.

Check the PoE status on an S series switch
Command for displaying PoE status of S series switches:

<HUAWEI> display poe information
PSE Information of slot 0:
    User Set Max Power(mW)     : 739200     //Set the maximum output power. Use the maximum power by default.
    POE Power Supply(mW)       : 369600     //PoE power supply, which is determined by the PoE power supply configured on the device.
    Available Total Power(mW)  : 369600     //Total available power.
    Total Power Consumption(mW): 0          //Total output power.     
    Power Peak Value(mW)       : 0          //Peak output power.  
    Power-Management Mode      : auto
    Power High Inrush          : disable

<HUAWEI> display poe power interface gigabitethernet 0/0/3
Port PD power(mW)           : 3710          //Output power of the interface.                                           
Port PD class               : 2             //Classes of PDs. The system classifies PDs based on their maximum power.                                           
Port PD reference power(mW) : 7000          //Reference power of the PD.                                   
Port user set max power(mW) : 15400         //Set the maximum output power of the port.                                    
Port PD peak power(mW)      : 3816          //Peak power of the PDs connected to the port.                                          
Port PD average power(mW)   : 3487          //Average power of the PDs connected to the port.    



If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top