Legato NetWorker Commands Index:
ansrdascdcode
cdi_block_limits
cdi_bsf
cdi_bsr
cdi_eod
cdi_filemark
cdi_fsf
cdi_fsr
cdi_get_config
cdi_get_status
cdi_inq
cdi_load_unload
cdi_locate
cdi_offline
cdi_rewind
cdi_set_compression
cdi_space
cdi_ta
cdi_tapesize
cdi_tur
changers
dasadmin
ddmgr
EMASS_silo
erase
generate_test_tape
hadump
hafs
hagentd
hagetconf
haprune
hascsi
hasubmit
hasys
hpflip
IBM_silo
ielem
inquire
jbconfig
jbexercise
jbverify
ldunld
lgtolic
lgtolmd
libcdi
libscsi
libsji
libstlemass
libstlibm
libstlstk
lrescan
lreset
lus_add_fp_devs
lusbinfo
lusdebug
mini_el
mm_data
mminfo
mmlocate
mmpool
mmrecov
msense
mt
ndmpjbconf
networker
nsr (1)
nsr (5)
nsr_archive_request
nsr_client
nsr_crash
nsr_data
nsr_device
nsr_directive
nsr_getdate
nsr_group
nsr_ize
nsr_jukebox
nsr_label
nsr_layout
nsr_license
nsr_migration
nsr_notification
nsr_policy
nsr_pool
nsr_regexp
nsr_resource
nsr_schedule
nsr_service
nsr_shutdown
nsr_stage
nsr_storage_node
nsr_support
nsr_usergroup
nsradmin
nsralist
nsrarchive
nsrcap
nsrcat
nsrck
nsrclone
nsrcnct
nsrd
nsrexec
nsrexecd
nsrhsmck
nsrhsmclear
nsrhsmd
nsrhsmls
nsrhsmnfs
nsrhsmrc
nsrhsmrecall
nsrib
nsriba
nsrim
nsrindexasm
nsrindexd
nsrinfo
nsrjb
nsrlic
nsrls
nsrmig
nsrmm
nsrmmd
nsrmmdbasm
nsrmmdbd
nsrmon
nsrndmp_clone
nsrndmp_recover
nsrndmp_save
nsrpmig
nsrports
nsrretrieve
nsrssc
nsrstage
nsrtrap
nsrwatch
nwadmin
nwarchive
nwbackup
nwrecover
nwretrieve
pathownerignore
pmode
preclntsave
pstclntsave
read_a_block
recover
relem
resource
save
savefs
savegrp
savepnpc
scanner
sjiielm
sjiinq
sjimm
sjirdp
sjirdtag
sjirelem
sjirjc
sjisn
sn
ssi
stk_eject
STK_silo
stli
sym2xdm
tapeexercise
tur
uasm
writebuf
* - Windows Only
* mt
* nsrlpr
* nsrperf
haprune
haprune - Host Agent data-pruning commandSYNOPSIS
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)
ADVERTISEMENT
Legato NetWorker 7.xMan(1) output converted with man2html, sed, awk