Name
opahostsmanalysis — Performs analysis against the local server only.
Syntax
opahostsmanalysis [-b|-e] [-s] [-d dir]
Description
opahostsmanalysis assumes that both the host Subnet Manager (SM) and the FastFabric are installed on the same system.
Options
--helpProduces full help text.
-bSpecifies the baseline mode. Default is the compare/check mode.
-eEvaluates health only. Default is the compare/check mode.
-sSaves history of failures (errors/differences).
-ddirSpecifies the top-level directory for saving baseline and history of failed checks. Default is
/var/usr/lib/opa/analysis.
Example
opahostsmanalysis
Environment Variables
The following environment variables are also used by this command:
FF_ANALYSIS_DIRTop-level directory for baselines and failed health checks.
FF_CURTIMETimestamp to use on the directory created in
FF_DIFF_CMD.FF_DIFF_CMDLinux command to use to compare baseline to the latest snapshot.
Details
All files generated by opahostsmanalysis start with hostsm in the file name.
The opahostsmanalysis tool generates files such as the following within FF_ANALYSIS_DIR. The actual file names reflect the individual chassis commands that have been configured using the FF_CHASSIS_HEALTH and FF_CHASSIS_CMDS parameters:
Health Check
latest/hostsm.smstatus– Output of thesm_query smShowStatuscommand.
Baseline
baseline/hostsm.smver– Host SM version.baseline/hostsm.smconfig– Copy ofopafm.xml.
During a baseline run, the files are also created in FF_ANALYSIS_DIR/latest.
Full Analysis
latest/hostsm.smstatus– Output of thesm_query smShowStatuscommand.latest/hostsm.smver– Host SM version.latest/hostsm.smver.diff–diffof the baseline and latest host SM version.latest/hostsm.smconfig– Copy ofopafm.xml.latest/hostsm.smconfig.diff–diffof the baseline and the latestopafm.xml.
The .diff files are only created if differences are detected.
If the -s option is used and failures are detected, files related to the checks that failed are also copied to a time-stamped directory name under FF_ANALYSIS_DIR.