The syntax is described in the table below:

Table B-34 show logging Command Syntax Description

Syntax

Description

 

show logging without the end argument displays the entire active log-file.

end

Displays approximately the last 10 entries in the system log and then continues to display log entries

 

as they occur.

Command Modes: User-execute and privileged-execute modes.

Privilege Level: General read-only user.

Usage Guidelines: You may want to set the number of lines displayed per screen using the terminal length command. You can also use the more command on ts_log instead of the show logging command.

The show logging end command is the equivalent of using the UNIX tail -f command. The CLI continues to display log entries as they occur until you enter <Ctrl>-c. No other CLI commands may be entered until <Ctrl>-c is used to stop the log display.

It is recommended you set the terminal page length to 0 when using the end argument. Otherwise, you will have to keep pressing the <space> bar to continue each time the maximum display length is reached. Once you set the page length, do not change the terminal window size. Changing window size restores the terminal length to that of the window and restarts paging.

Examples:

HP-IB# show logging end

Jan 3 11:09:58 igr-cc ib_sm.x[597]: [INFO]: Successfully add pgid fe800000000000000005ad0000001199 to mgid ff18a01b00000000000005ad00000002

Jan 3 17:02:56 igr-cc port_mgr.x[535]: [INFO]: port down - port=16/7, type=ib4xFX

Jan 3 17:02:58 igr-cc port_mgr.x[535]: [INFO]: port up - port=16/7, type=ib4xFX

Jan 3 18:21:46 igr-cc port_mgr.x[535]: [INFO]: port down - port=16/2, type=ib4xFX

Jan 3 18:21:48 igr-cc port_mgr.x[535]: [INFO]: port up - port=16/2, type=ib4xFX

Jan 3 19:35:55 igr-cc chassis_mgr.x[523]: [CONF]: [super]: config snmp trap-receiver 10.10.253.47

Jan 3 19:35:55 igr-cc chassis_mgr.x[523]: [CONF]: [super]: config snmp trap-receiver 10.10.253.47 version v2c

Jan 3 19:35:55 igr-cc chassis_mgr.x[523]: [CONF]: [super]: config snmp trap-receiver 10.10.253.47 community public

Jan 3 19:35:55 igr-cc chassis_mgr.x[523]: [CONF]: [super]: config snmp trap-receiver 10.10.253.47 community public

Defaults: This command has no defaults.

Related Commands: “copy” (page 193)

“telnet” (page 210)

“terminal time-out” (page 211) “show config” (page 139) “logging” (page 205)

show ntp

Synopsis: The show ntp command displays the current system date and time, as well as the Network Time Protocol (NTP) servers used to set the system clock.

Syntax: show ntp

Command Modes: User-execute and privileged-execute modes.

Privilege Level: General read-only user.

Usage Guidelines: Use the clock command to set the time and date. Use the ntp configuration command to set the NTP servers that are to maintain the system clock.

Examples:

HP-IB> show ntp

===============================================================

NTP Information

===============================================================

Date : 04/16/03

Time : 16:02:43

170 Switch Command Line Interface

Page 170
Image 170
HP UX 11i v2 Networking Software manual Show ntp, Table B-34 show logging Command Syntax Description, Syntax show ntp, End