xcatprobe_framework - xcat2/xcat-core GitHub Wiki
After installation, xCAT probe is going to work like below:
/opt/xcat/bin/xcatprobe
|
/probe/subcmds/xcatmn
| |/discover
| |/.....
|
/lib/perl/xx.pm
| |/xx.pm
| |/.....
|/c/xx.c
| |/xx.c
| |...
|/shell/xx.sh
| |/xx.sh
| |/....
|/....
In github, All code of xCAT probe are going to maintain like below:
<xCAT_home>/xCAT-probe/xcatprobe
|/subcmds/xcatmn
| |/discover
| |/.....
|lib/perl/xx.pm
| |/xx.pm
| |/....
|/c/xx.c
| |/xx.c
| |...
|/shell/xx.sh
| |/xx.sh
| |/....
|/....
-
xcatprobewill manage all checking tools uniformly, Loads and triggers checking tools by one way -
xcatprobewill reformat the output of checking tool to uniform style -
xcatprobewill connect some solution database, offers solution for failed checking point (a future feature)
The usage of xcatprobe like below:
Usage:
xcatprobe -h
xcatprobe -l
xcatprobe [-V] <subcommand> <attrbute_to_subcommand>
Options:
-h : get usage information of xcatprobe
-l : list all valid sub commands
-V : print verbose information of xcatprobe itself
- The first argument without starting by
-in command line will be treated as checking tool name - The arguments between
xcatprobeand checking tool are treated as arguments ofxcatprobeitself - The arguments behind checking tool are treated as arguments of checking tool
Checking tools can be developed by any language and any contributor. As long as these checking tools follow below rules, they can be loaded and triggered by xcatprobe.
-
The output of checking tool must follow below format:
[flag] : one line message- The valid flag are
ok,warning,failed,infoanddebug.
- The valid flag are
-
Checking tool must reserve and support one option (
-T) for working withxcatprobe.-
-T:xcatprobewill callchecktool -Tthen it tries to load this checking tool, the output ofchecktool -Twill result in whetherxcatprobeloads it or not. The output must follow[flag]:one line messageformat. The flag isok. The message will describe what the checking tool is used for, limitation and prerequisite and so on. These message will be display whenxcatporbe -lrun.
-