NetWorker command:      haprune

NAME

       haprune - Host Agent data-pruning command


SYNOPSIS

       haprune -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.

              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.legato.com to Host Agent server on jupiter :

                            haprune -s jupiter -c trout.legato.com -y 2 -d 2

       Delete resources, age 5 hours or older, of type system information
       submitted by client trout.legato.com to Host Agent server on jupiter :

                            haprune -s jupiter -c trout.legato.com -t 'system information' -h 5

       Delete resources, age 5 hours or older, of types OS type and IP address
       submitted by clients trout.legato.com and rx7 to Host Agent server on
       jupiter :

                            haprune -s jupiter -c trout.legato.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 ALSO

       hascsi(1) hafs(1) hasys(1) hadump(1)