PSTORAGE−EVENTLOG

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXIT STATUS
EXAMPLES
AUTHOR
SEE ALSO

NAME

pstorage-eventlog − tools for managing global event logs in a Pstorage cluster

SYNOPSIS

pstorage get−event [−diweDWMSa2] [−s SUBSYSTEM] [−L N]

pstorage put−event [−diweDWMSa2] [−s SUBSYSTEM] [−L N] MESSAGE

SUBSYSTEM := { journal | mds | cs | fuse | clnt | monitor | tools | test | admin }

DESCRIPTION

pstorage get−event retrieves cluster global event log messages.

pstorage put−event puts new event to the cluster global event log.

Event log is a global list of events tracked by the MDS component to ease management of cluster. All the important events like crashes of services, degrading of cluster health state, add/removal of MDS or CS etc.

OPTIONS

Options to specify (on put) or filter (on get) the severity level and subsystem of messages
−d, −−dbg

Put/get debug events.

−i, −−info

Put/get information events.

−w, −−warn

Put/get warning events.

−e, −−err

Put/get error events.

−s, −−sub=SUBSYSTEM

Specify the subsystem for putting/getting messages (journal, mds, cs, fuse, clnt, monitor, tools, test, admin).

Other filtering options on get
−L, −−tail
=N

Query the last N events.

−D, −−last−day

Get events for the last day.

−W, −−last−week

Get events for the last week.

−M, −−last−month

Get events for the last month.

Events output format modifiers
−S, −−server−time

Use the server time stamp for filtering events and displaying output.

−a, −−src−addr

Print the source IP address.

−2, −−both−time

Print both client and server time stamps.

EXIT STATUS

0

Success

Non−zero

Failure (syntax or usage error; configuration error; cluster failure; unexpected error).

EXAMPLES

Read all events in the log:

pstorage −c CLUSTER get−event

Print all warning and error events:

pstorage −c CLUSTER get−event −w −e

The administrator events are useful to mark moments in time when some important reconfiguration is planned, like installing software updates or performing hardware maintenance:

pstorage −c CLUSTER put−event −s admin "Maintenance started"

pstorage −c CLUSTER put−event −s admin "Maintenance finished"

AUTHOR

Copyright © 2011−2013, Parallels, Inc. All rights reserved.

SEE ALSO

pstorage(1), pstorage−overview(7)