Generating Custom Reports on a Linux Server

The Compaq Survey Utility output is stored in the survey-CCYY-MM-DD-HH-mm-ss.txt file (the double letters represent the date and time when the utility was run). This file is located in the /var/compaq/survey directory. Use any text editor to view or print the output file.

If the comparison options are used any change between data collections is marked with a '>' or '<' character and the naming of the resulting file follows the above convention.

By running the Survey Utility with different command line parameters, you can change the contents of the output file.

Command Line Options

Without any command line parameters the Compaq Survey Utility will create its output in the /var/compaq/survey/ directory and run with verbosity level of 3.

The optional command line parameters are listed in the following table:

-v [Level]

Verbosity of output where Level is an integer 1..5. Level 1 is the most filtered level, 5 is the most verbose. The default value is set to 3

-s mmhhddMMDD

 Schedule automatic execution. mmhhddMMDD mm=minute, hh=hour, dd=day, MM=month, DD=Day of Week. Use a single * for don't care fields and all fields must be two digits (02 instead of 2). See example below

NOTE: This command simply adds an entry to your crontab. For more Information on crontab type 'man crontab'.

-u

Unschedule of survey running. NOTE: This command will remove all entries in your crontab that refer to "/opt/compaq/survey/survey"

-c FILE1 [FILE2]

 Compare a file to the current output or if two files are specified compare the files without generating a new report

-t

 Output to the terminal.

NOTE: -t and -o cannot be used together

-o FILE

 Specify name of the output file. Default is formed using the current dateat: /var/compaq/survey/surveyCCYY-MM-DD-HH-mm-ss.txt (CC=Century,YY=Year, MM=Month, DD=Day, HH=Hour, mm=minute, ss=second.

-f

 If the output file, specified with the -o option, exists it will be overwritten.

NOTE: If no -o option is specified this option is ignored.

-w

 Starts the daemon that will enable viewing of survey output through the web

-? , -h

Display help

Examples:

survey

survey -s 1506**03

survey -v 5 -f -o survey.data

survey -c survey.data1 survey.data2

Information Retrieval

Through a variety of methods, the following data is gathered from the server.

Hardware Information:

Note: Items designated with an asterisk require the Compaq ROM driver to be

loaded.

Compaq Server Blade Enclosure Information

If your network supports racks and enclosures you may gain the following information.

If cpqhealth is loaded, the following information will be displayed after the system information section:

If cpqhealth is not loaded, the following information will be displayed after the system information section, immediately after the serial number:

Storage Information:

Software Information:

Compaq Survey Web Daemon

The Compaq Survey Utility allows the viewing of reports from a web browser .

Starting the Daemon

Before the browser can be used, the Survey web daemon must be started. This can be accomplished in one of two ways.

 1. Run survey with the -w option: /opt/compaq/survey/survey -w

 2. Run the Survey Web Daemon directly: /opt/compaq/survey/surveywebd

  Using the Web Interface

The survey reports are viewable from a web browser on http port 2301.

Example URL: http://127.0.0.1:2301/