Chapter 33 Command Examples

33.2.4show logging

"This command is not available in User mode.

Syntax:

show logging

This command displays the system logs. The following figure shows an example.

Figure 130 show logging Command Example

sysname#

show

logging

 

INFO

main: init completed

57

Thu

Jan

1

00:00:05 1970 PINI

58

Thu

Jan

1

00:00:02 1970 PP0c -WARN

SNMP TRAP 3: link up

59

Thu

Jan

1

00:00:05 1970 PINI -WARN

SNMP TRAP 0: cold start

60

Thu

Jan

1

00:00:05 1970 PINI -WARN

SNMP TRAP 3: link up

61

Thu

Jan

1

00:00:05 1970 PINI

INFO

main: init completed

62

Thu

Jan

1

00:00:10 1970

PP24

INFO

adjtime task pause 1 day

63

Thu

Jan

1

00:14:36 1970

PP0c -WARN

SNMP TRAP 2: link down

Clear Error Log

(y/n):

 

 

 

"If you clear a log (by entering y at the “Clear Error Log (y/n):” prompt), you cannot view it again.

33.2.5show interface

Syntax:

show interface [port-number]

This command displays statistics of a port. The following example shows that port 2 is up and the related information.

 

241

GS-3012/GS-3012F User’s Guide