You can create many of the pie, bar, and line charts available from the credential tab in the Charts & Graphs window using a command line interface, which can be faster than navigating through windows and menus. The command line interface also facilitates scripting. For example, you could create a cron job that generates charts at regular intervals and puts them in a specific directory.
To create charts from the command line, navigate to the scripts directory. There should be a script entitled createchart.sh and a sample properties file called cmdlinechart.cfg. If you are running on Windows, you will want to use createchart.bat instead of createchart.sh. The cmdlinechart.cfg file is a properties file that lets you specify information about what timeframe, credentials, and metric you would like to see in your chart. It includes comments explaining what each property does and has example values. The properties file lets you specify how to connect to Moab Workload Manager. You can use this script to connect to a Moab Workload Manager running either locally or remotely over SSH.
If running on a Unix based operating system you would run the following:
./createchart.sh cmdlinechart.cfg
If running Windows you would use:
createchart.bat cmdlinechart.cfg
If the scripts do not work, export MCM_HOME and use the following command to generate graphs and charts:
export MCM_HOME=/home/bob/mcm-7.0.0-5313
java -cp $MCM_HOME/mcm.jar com.moab.commandline.statistics.CreateChart cmdlinechart.cfg [-- password <PASSWORD>]
Command Line ReportsYou can also use the command line to create many of the phone bill style reports available from the Reports window. Similar to command line charts, there is a creatreport.sh script for Unix based operating systems and a createreport.bat script for Windows users. The cmdlinereport.cfg file is a sample properties file that contains parameters on how to connect to Moab Workload Manager.
To create reports on a Unix system:
./createreport.sh cmdlinereport.cfg
If running Windows you would run:
createreport.bat cmdlinereport.cfg
(Undefined variable: MyVariables.!CopyrightInfo!)