pw log
The pw log
commands allow you to list and control the data collected by monitors and the history of pw commands.
pw log
pw log list
The pw log list
command lists the system command history. The syntax for this command is as follows:
pw log list
pw log list sample output
!
pw log period
The pw log period
command enables you to choose the number of days that data collected by active monitors in your system is retained. The default is 90 days for baseline and rate data, and 3 days for stats data.
This command can be used to reduce disk usage if you are collecting data for a large number of interfaces and applications. It can also be used to increase the retention period for either data type.
Warning
Increasing the retention period for stats data can dramatically increase the size of the database and cause significant performance impact on user operations. Contact Customer Services if you are considering changing retention periods or if you want to find out the current settings.
The syntax for this command is as follows:
pw log period [rate|stats|baseline]
<time>
time is the number of days that data collected for the specified data type will be retained.
For example, if you wanted to retain baseline data for 120 days, you would run:
pw log period baseline 120
pw log period list
The pw log period list
command displays all the raw and rate data retention periods for all monitors. The syntax for this command is as follows:
pw log period list [-stats|-rate|-baseline] [<UniqueName>]
UniqueName is the name of a particular monitor.
This command can be used in the following ways:
- To view all data retention periods for all monitors, run the following command:
pw log period list
- To view the list of all raw data retention periods of all monitors, run the following command:
pw log period list -stats
- To view the list of all rate data retention periods of all monitors, run the following command:
pw log period list -rate
- To view the list of baseline data retention periods of all monitors, run the following command:
pw log period list -baseline
- To view the raw data retention period of a particular monitor, run the following command:
pw log period list -stats[
UniqueName
]
- To view the rate data retention period of a particular monitor, run the following command:
pw log period list -rate[
UniqueName
]
To list the baseline retention period of a particular monitor, run the following command:
pw log period list -baseline[
UniqueName
]
The following sample output shows a possible result of thepw log period list
command:
pw log period list sample output
Comments
Log in or register to comment.