IBM Carrier Grade X3650 T User Manual page 58

Hide thumbs Also See for Carrier Grade X3650 T:
Table of Contents

Advertisement

int syscon_log_query_destroy(syscon_log_query_t *query);
int syscon_log_query_match(const syscon_log_query_t *query,
const struct syscon_log_entry *entry, const void *buf,
int *match);
SysCon-only API calls:
int syscon_message(int dev_type, int type, char *dev, char *mntpnt, char
*mesg);
int sellog(int dev_type, char dev[], int event_type, int sev);
int snmplog(int sev, char *mesg);
int tamlog(int sev);
int syscon_mount(char *dev, char *mntpnt);
int call_script(char *script);
int godown(int reboot);
int stop_godown();
int syscon_mount(char *dev, char *mntpnt);
int call_script(char *script);
SysCon command line utilities and usage:
syscon_scan – Utility that returns all the USB syscon devices (FAT serial, Product ID, and GUID in first
field and SCSI device ID in second field).
Sample output:
0x17e9242f0000000124623971725000000000000 /dev/sdb
0x41eee7440509C30831003922 /dev/sdc
syscon_getdev – Utility that, given the mount point of a SysCon device/key, returns the device-type,
physical address (USB bus, level, port), status, and mount point.
Usage: syscon_getdev syscon-mount-point
Sample output:
type=device bus=2 lev=1 port=0 status=unknown mnt=/etc/sysconfig/syscon
syscon_log_read – Utility that allows any user to view entries in the SysCon event log
(/var/log/syscon). An optional query string can be added to the end of the command to select certain
types of events. The -o option can be used to specify a output options. The direction that the log is read
can be controlled by the -f (forward) or -b (backward) options where -f forces the output to start on the
oldest entry. The -b option reads the newest entries first. The -1 option can be used to return – only - the
first matched entry.
Usage: syscon_log_read [bfq1] -o <output format> -s <separator> [query string]
-b
Read from the end of the log to the beginning (default)
-f
Read from the beginning of log to the end (end being the most recent).
-1
Display only the first matching event
-q
50
IBM® Carrier Grade Server X3650 T
Revision 3.0

Advertisement

Table of Contents
loading

Table of Contents