HAPRUNE(8)HAPRUNE(8)NAMEhaprune - Host Agent data-pruning command
SYNOPSIShaprune-y years [ -w weeks ] [ -d days ] [ -h hours ] [ -s server
] [ -c client ] [ -t type ] [ -L | -l log file ] [ -v ]
haprune-w weeks [ -y years ] [ -d days ] [ -h hours ] [ -s server
] [ -c client ] [ -t type ] [ -L | -l log file ] [ -v ]
haprune-d days [ -y years ] [ -w weeks ] [ -h hours ] [ -s server
] [ -c client ] [ -t type ] [ -L | -l log file ] [ -v ]
haprune-h hours [ -y years ] [ -w weeks ] [ -d days ] [ -s server
] [ -c client ] [ -t type ] [ -L | -l log file ] [ -v ]
DESCRIPTION
The haprune command deletes Host-Agent's resource created on or before
a given point in time. The haprune command compares the age, in
seconds, of each element in a given set of resources to the age
specified by the user and deletes elements with age equal to or greater
than the given number.
The minimum age, for pruning purposes, is specified in years, weeks,
days and hours using command line options [-ywdh]. The total age, years
+ weeks + days + hours, is then converted to seconds and compared to
the timestamp attribute associated with each resource. The pruning
process can be restricted to certain type of resources, submitted by
certain clients, using the -t and -c options.
OPTIONS-s server
Host name for Host Agent server.
-t type
Prune only the given type of resource. More than one -t can be
specified in the same command.
-v Run in verbose mode.
-c client
Prune only resources associated with the given client. More
than one -c can be specified in the same command.
-y years
Specifies the years part of the minimum resource age.
-w weeks
Specifies the weeks part of the minimum resource age.
-d days
Specifies the days part of the minimum resource age.
-h hours
Specifies the hours part of the minimum resource age.
-L Tells haprune that any logging information should be written to
the default application logfile - this file is named haprune.log
, and will be located in the applogs subdirectory of your
NetWorker installation directory. Only one of -L or -l may be
specified - not both. If neither -L or -l is specified in the
arguments to haprune then any logging information will be
printed on stdout and stderr.
-l log file
Allows you to specify the name of the file that haprune will
write its log to. Only one of -L or -l may be specified - not
both. If neither -L or -l is specified in the arguments to
haprune then any logging information will be printed on stdout
and stderr.
EXAMPLES
Delete resources age ten days or older submitted by all clients
to Host Agent server on jupiter :
haprune-s jupiter -d 10
Delete resources, age 2 years and 5 days or older, submitted by client
trout.emc.com to Host Agent server on jupiter :
haprune-s jupiter -c trout.emc.com -y 2 -d 2
Delete resources, age 5 hours or older, of type system information
submitted by client trout.emc.com to Host Agent server on jupiter :
haprune-s jupiter -c trout.emc.com -t 'system information' -h 5
Delete resources, age 5 hours or older, of types OS type and IP address
submitted by clients trout.emc.com and rx7 to Host Agent server on
jupiter :
haprune-s jupiter -c trout.emc.com -c rx7 -a 'IP address' -a 'OS type' -h 5
Delete all resources submitted by all clients to Host Agent server on
jupiter :
haprune-s jupiter -h 0
SEE ALSOhascsi(8)hafs(8)hasys(8)hadump(8)NetWorker 7.3.2 Aug 23, 06 HAPRUNE(8)