hscan - Scan clusters via RAPI and save node/instance data
hscan is a tool for scanning clusters via RAPI and saving their data in the input format used by hbal(1) and hspace(1). It will also show a one-line score for each cluster scanned or, if desired, the cluster state as show by the -p option to the other tools.
For each cluster, one file named cluster**.data** will be generated holding the node and instance data. This file can then be used in hbal(1) or hspace(1) via the -t option. In case the cluster name contains slashes (as it can happen when the cluster is a fully-specified URL), these will be replaced with underscores.
The one-line output for each cluster will show the following:
In case of errors while collecting data, all fields after the name of the cluster are replaced with the error display.
Note: this output format is not yet final so it should not be used for scripting yet.
The options that can be passed to the program are as follows:
The exist status of the command will be zero, unless for some reason loading the input data failed fatally (e.g. wrong node or instance data).
The program does not check its input data for consistency, and aborts with cryptic errors messages in this case.
$ hscan cluster1
Name Nodes Inst BNode BInst t_mem f_mem t_disk f_disk Score
cluster1 2 2 0 0 1008 652 255 253 0.24404762
$ ls -l cluster1.data
-rw-r--r-- 1 root root 364 2009-03-23 07:26 cluster1.data