-A Output the combination of -i, -S, -c and -u. It should be used with -g and -l flags.
-f log_file
Specifies a log file fullpath name to analyze.
Must be xCAT consolidated log got from Qlogic HSM or ESM.
-s start_time
Specifies the start time for analysis, where the start_time
variable has the format ddmmyyhh:mm:ss (day, month, year,
hour, minute, and second), 00:00:00 is valid.
-e end_time
Specifies the end time for analysis, where the end_time
variable has the format ddmmyyhh:mm:ss (day, month, year,
hour, minute, and second), 00:00:00 is valid.
-l link_file
Specifies a link file fullpath name, which concatenates all
'/var/opt/iba/analysis/baseline/fabric*links' files from all fabric management servers.
-g guid_file
Specifies a guid file fullpath name, which has a list of
GUIDs as obtained from the "getGuids" script.
-E Annotate with node ERRLOG_ON and ERRLOG_OFF information. This
can help determine if a disappearance was caused by a node
disappearing. It is for AIX nodes only and should be used with -x or -n flag.
-S Sort the log entries by subnet manager only.
-i Sort the log entries by IB node only.
-c Sort the log entries by chassis only.
-u Sort the log entries by FRU only.
-n node_list
Specifies a comma-separated list of node host names, IP addresses to look up in log entries.
-h Display usage information.
In xCAT cluster with IB QLogic switches, the switch logs and subnet
manager (ESM/HSM) logs will use the syslog protocol for log redirection;
they are redirected to the xCAT Management Node. The xCAT Management Node syslogd recognizes the facility (local6) and priority (NOTICE and above) and put the log
entries into a file/FIFO that is being monitored by AIXSyslogSensor on
AIX system or ErrorLogSensor on Linux system. The condition-response
setup on xCAT Management Node local will move the log entries to file
/var/log/xcat/errorlog/[xCAT Management Node]. So there are a lot of
entries in this log file and it is difficult for the administrator to look through.
annotatelog is a sample script to parse the QLogic log entries in file
/var/log/xcat/errorlog/[xCAT Management Node] on xCAT Management Server
by subnet manager, IB node, chassis, FRU(Field-Replaceable Unit) or a
particular node. This script is supported by both AIX and Linux Management
Node. From xCAT's point of view, the log to analyze must be xCAT
consolidated log, which means this log file must come from xCAT
syslog/errorlog monitoring mechanism, such as /var/log/xcat/errorlog/[xCAT
Management Node] file. Since the log format is various, xCAT do not
support other log files.
This script provides several flags to specify the category critera,
they are -S, -i, -c, -u, -n and -A.
If -S flag is set, the output will be sorted by Subnet Manager, since
the SM may have multi-port, so the output is classified by
<subnet_manager_name: port number>, please see the details in the
example below:
############################################
Logs by Subnet Manager
############################################
----------------------------------------------
Report by subnet manager: 'c890f12ec07:port 2'
----------------------------------------------
May 5 09:06:33 c890f12ec07 local6:notice c890f12ec07 iview_sm[5445]: