
Database configuration script (DBCONFIG)
This script provides some database configuration capabilities. The user can modif y data retention times,
purge data based on an array or on a particular date, or modify the log level stored in the database.
DBCONFIG usage
Following is the general format of the comma nd to invoke the script:
dbconfig [-auth <user:passwd>] [-ms <URL>] [-L] [-d<char>] [-hr] [-?]
purge | -list | -loglvl <severity> [-days <days>] [-dkc <serial number>]
[-et <mm.dd.yyyy hh:mm:ss>]
Required arguments: ( one of the following is required):
–purge
Purges data from the management station.
–loglvl
Sets the level of log messages to store. It is followed by a number between 1 and 10.
–list
Retrieves a list of current database settings.
Optional arguments:
–days
If used with -purge, indicates the day previous to the current day at which to begin purging
data. Cannot be used with -loglvl or -list.
–dkc
Theserialnumberofthearrayforwhichdataistobepurged. Mustnotbeusedwith-loglvl
or -list.
–et
Thetimeanddateofthelaststoreddatacollection.Cannotbeusedwith-loglvl or -list.
–ms
The URL of the management station.
–auth The usern
ame and password.
–pf Can be used in place of –auth.
NOTE:
The passw
ord file must be created using the encrypt command only.
–d
The delimiter for delimited display.
–L
Shows column headers with the delimiter.
–hr Displays
human-readable output.
–?
Prints the usa ge statement.
DBCONFI
G sample output
The following are output data samples for the CLUI shell script described in the previous section:
dbconfig -list –hr
Current Log Level: 5
dbconfig -list -L
Log Level
5
dbconfig –list
5
HP StorageWorks Performance Advisor XP Software command-line user interface user guide
61
Komentarze do niniejszej Instrukcji