beautypg.com

Examples – HP StorageWorks Scalable File Share User Manual

Page 322

background image

CLI commands

A–28

now

Optional. When this argument is used, events are displayed as they occur.

Examples

The following example displays all system event logs:

sfs> show log

The following example displays the 24 most recent events that were generated by the

lustre

facility:

sfs> show log recent facility=lustre

The following example displays all events containing the text

ntpd

with a severity of

info

:

sfs> show log severity=info && data contains "ntpd"

The following example displays all events that occurred in the last 20 minutes. Note that there must be space

before the double quotes surrounding the argument:

sfs> show log age< "20m"

For more information on using the

show log

command, see Section 4.6.1.

Attribute

Operators

Valid Values

facility

=, !=

kern

daemon

cron

auth

server

storage

local4

lustre

severity

=, !=, <, <=, >, >=

debug

info

notice

warn

err

crit

emerg

time

=, !=, <, <=, >, >=

Specified in

time_t

format,

based on seconds since the

standard epoch of 1/1/1970.

age

=, !=, <, <=, >, >=

Examples:

"10m"

"5h"

"

2d"

Note that you must use a space

before the double quotes

surrounding the argument.

server

=

Example:

south1

data

=, !=, contains

Example: "

ost9

"

Note that you must use a space

before the double quotes

surrounding the argument.