The following examples illustrate how to use the dump history utility to extract certain types of information:
The following command prints all parameters for the current host:
dump_hist
The following command prints all parameters of the application instance, db_manager, on a host entitled host1:
dump_hist -host host1 -p 3181 -inst db_manager
The following command disallows the conversion of time stamps to a local time string:
dump_hist -host host1 -p 3181 -inst db_manager -timestamp
Following is a sample line of output generated by this command:
smile|USRNoSession|22|10/16/CCYY|202153
This command redirects the output of dump_hist to a file called dump_hist.out. Each line of this file uses a pipe symbol to separate the values and displays the host name, parameter name, parameter value, date, and time.
dump_hist -format "%H|%P|%v|%m/%d/%y|%h%M%s" >dump_hist.out
This command prints history data from October 1, CCYY 8:00AM through October 1, 9:00AM of the same year.
dump_hist -s 10010800CCYY -e 10010900CCYY
Note
CCYY represent the century and year. When using this format option, enter the actual year.