IBM® Carrier Grade Server X3650 T
Revision 3.0
51
Quiet (log entry is not returned). Returns zero if an entry is found and non-zero if no
entries are found.
-o
<format>
Display log output in user specified format using:
recid
- Record ID (1-N)
event_type - Event Type (devadd,devmnt,devchg,devunmnt,
devfail,devrm
dev_type - Device Type (device or key)
severity
- Severity ()
time
- Time (1-N in seconds)
date
- Regular Year-Month-Day and Time (ISO format)
dev
- Device (/dev/sdb1,/dev/sdc1,..)
mntpnt - Mount Point (/etc/sysconfig/syscon,
/etc/sysconfig/syscon2,..)
uid
- User ID
gid
- Group ID
pid
- Process ID
pgrp
- Process Group ID
nodeid
- Machine Node ID
mesg
- Message section of the Log entry
Format string fields must be comma separated. The fields will be displayed in the order specified.
The -s option can be used to select the display separator. The default separator is a space.
Example:
syscon_log_read -o recid,event_type,dev_type,date "date > 2004-11-03T10:25"
[query string]
The query string allows a user to filter the log file for only certain events. The full query language
is defined in
syscon_query
(1) man page. Three examples are provided below:
The following query string will limit the displayed entries to only key insertions:
syscon_log_read "event_type = devadd && dev_type = key"
The following query string will limit the displayed entries to events with record IDs between 5 and
10:
syscon_log_read "recid > 4 && recid <= 10"
The following query string will show all events that contain the string "changed" in the message
portion of the event entry:
syscon_log_read "data contains changed"
-s
space,comma,semicolon
This option allows you to force a special separator. The default is to separate fields with a
space character, but a "," or ";" may also be specified with this option.
Example:
syscon_log_read -f -o recid,event_type,dev_type,severity,pid,date
"dev_type = device && date > 2005-03-10T09:45"
7 devchg device INFO 7683 2005-03-10T09:56
8 devunmnt device ALERT 7683 2005-03-10T09:57
9 devmnt device INFO 7683 2005-03-10T09:57
syscon_log_write – Utility (for super-user only) that generates syscon
device events such as device add, remove, mount, umount. Usage:
Usage: syscon_log_write [armufdp] –p mntpnt –d dev message
-a Send a SysCon device add event.
-r Send a SysCon device remove event.
-m Send a SysCon device mount event.
Содержание Carrier Grade X3650 T
Страница 1: ...IBM Carrier Grade Server X3650 T SysCon User s Guide Order Number D23731 003 Revision 3 0 March 2006...
Страница 8: ...IBM Carrier Grade Server X3650 T Revision 3 0 viii This page intentionally left blank...
Страница 12: ...IBM Carrier Grade Server X3650 T Revision 3 0 4...
Страница 15: ...IBM Carrier Grade Server X3650 T Revision 3 0 7...
Страница 17: ...IBM Carrier Grade Server X3650 T Revision 3 0 9...
Страница 25: ...IBM Carrier Grade Server X3650 T Revision 3 0 17...
Страница 43: ...IBM Carrier Grade Server X3650 T Revision 3 0 35...