(All) Performs analysis against the local server only. It is
assumed that both the host SM and the
FastFabric are installed on the same
system.
The host SM analysis tool checks the following:
- Host SM software version
- Host SM configuration file (simple text compare
using
FF_DIFF_CMD)
- Host SM health (for example, is it running?)
Syntax
opahostsmanalysis [-b|-e] [-s] [-d dir]
Options
- --help
- Produces full help text.
- -b
- Baseline mode. Default is the compare/check mode.
- -e
- Evaluates health only. Default is the compare/check mode.
- -s
- Saves history of failures (errors/differences).
- -d
dir
- Top-level directory for saving baseline and history of failed
checks. Default =
/var/opt/opa/analysis
Example
opahostsmanalysis
Environment Variables
The following environment variables are also used by this command:
- FF_ANALYSIS_DIR
- Top-level directory for baselines and failed health checks.
- FF_CURTIME
- Timestamp to use on the directory created in
FF_DIFF_CMD.
- FF_DIFF_CMD
- Linux* command to use to compare baseline to 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 the
sm_query smShowStatus command.
- Baseline
- baseline/hostsm.smver
– Host SM version.
-
baseline/hostsm.smconfig – Copy of
opafm.config.
During a baseline run, the files are also created in
FF_ANALYSIS_DIR/latest.
- Full analysis
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.
- Host SM items checked
against the baseline
- SM configuration file.
- Version of the SM rpm installed on the system.
- Host SM items also checked
during healthcheck
- The SM is in the
running state.