HP StorageWorks Storage Mirroring for Linux User's Guide (T2558-96317, June 2009)

15 - 21
Running DTStat from the command prompt
From a command prompt, use the DTStat command from the location where Storage Mirroring is
installed.
Command DTSTAT
Description Starts the DTStats statistics logging utility from a command prompt
Syntax
DTSTAT [-p][-i <interval>][-t <filename>] [-f <filename>]
[-s <
filename>] [-st <filename>][-IP <address>]
[-START <
mm/dd/yyyy hh:mm>][-STOP <mm/dd/yyyy hh:mm>]
[-SERVER <ip_address> <port_number>]
Options -p—Do not print the output to the screen
-i interval—Refresh from shared memory every interval seconds
-t filename—Save the data from memory to the specified binary file
filename
-f filename—Reads from a previously saved binary file, filename, that was
generated using the -t option instead of reading from memory
-s filename—Saves only the connection data from the data in memory to an
ASCII, comma-delimited file, filename
-st filename—Saves only the target data from the data in memory to an
ASCII, comma-delimited file, filename
-f filename1 -s filename2—Saves only the connection data from a
previously saved binary file, filename1, to an ASCII, comma-delimited file,
filename2
-f filename1 -st filename2—Saves only the target data from a previously
saved binary file, filename1, to an ASCII, comma-delimited file, filename2
-IP address—Filters out the specified address in the IP address field and
prints only those entries. Specify more than one IP address by separating
them by a comma.
-START mm/dd/yyyy hh:mm—Filters out any data prior to the specified
date and time
-STOP mm/dd/yyyy hh:mm—Filters out any data after the specified date
and time
-SERVER ip_address port_number—Connects DTStat to the specified IP
address using the specified port number instead of to the local machine
Examples
DTStat -i 300
DTStat -p -i 300 -t AlphaStats.sts
DTStat -f AlphaStats.sts -s AlphaStats.csv -start
02/02/2007 09:25
DTStat -server 206.31.4.51 1106
Notes
This command is not case-sensitive.
If no options are specified, DTStat will print the output to the screen at an
interval of every one second.
If the statistics are not changing, DTStat will discontinue writing until
statistics begin updating again.