Forum Discussion
- KrutonsModerator
Are you looking for something like the script check_coverage? This lists clients and the policies/backup selection that they are protected by.
- swaqarLevel 2
No the script check coverage. Just a simple NBU command to list all the clients and respective backup set. I used the following commands that did not help
-bppclients ( this did not give you everything even not all the hosts)
- X2Moderator
I haven't seen/heard about any simple command which does this. But you could cook up an easy enough script. Below is something to get you started (in BASH, as my servers are RHEL, syntax not verified):
get a list of clients
/usr/openv/netbackup/bin/admincmd/bpplclients -allunique -noheader | sort -k 3.1 | awk '{print $3,$1,$2}' > ${CLIENT_LIST}
use the list of clients and loop over each client to get the policy(ies) that protect them
for client in `cat ${CLIENT_LIST}` do echo "${CLIENT}" /usr/openv/netbackup/bin/admincmd/bppllist -byclient ${client} -U | grep "^Policy Name" | awk '{print $3}' done
Good luck!
- StoneRam-SimonLevel 6
This command will show you all the backups policies configured for all clients
bppllist -allpolicies -U
But if what you are looking for is all he backups that have been completed for each client..
bpimagelist is the command you need.
- StefanosMLevel 6
There are several commands to get client/file list.
The main problem with policies is that If you use filters, you can not get full client list. (VM, databases etc)I vote for bpimagelist
- NicolaiModerator
I am in favor of bpimagelist as well. But output needs formatting
Command will list all images (backups) made between the -d and -e and extract some information. See the the "How to interpret .." below.
bpimagelist [-d mm/dd/yyyy hh:mm:ss] [-e mm/dd/yyyy hh:mm:ss] | grep IMAGE | awk '{ print $2" "$7" "$11" "$19}'
Also see tech note "How to interpret the different fields in "bpimagelist -l" output?"
https://www.veritas.com/support/en_US/article.100017904
Related Content
- 6 months ago
- 10 months ago
- 9 months ago
- 5 months ago