10-05-2015 07:18 AM
Can you plese help me to give a good script for netbackup which can get the exclude list details of all client configured in the Master.
I have two platforms
1. Linux
2. Win 2012
3. Win 2008 R2
Netbackup versions are 7.6.1.1 , 7.6.0.2 , 6.6.0.4 and 7.0.1
Solved! Go to Solution.
10-07-2015 12:12 PM
here's a starting point
Linux: bpgetconfig -e /localfilename clientname | cat /localfilename
Windows: bpgetconfig -M clientname | grep Exclude
10-12-2015 02:59 AM
yes... file read failed means.. this specific client does not have the exclude_list file at all.
if you are looking for all unix client do the below one
put all list of unix clients in file /tmp/clientlist and then run below for loop
for i in `cat /tmp/clientlist`;do /usr/openv/netbackup/bin/admincmd/bpgetconfig -e /tmp/$i $i ; done
once this command is compleated you will have the files in /tmp with client name and with their exclude lists
like /tmp/client1, /tmp/client2 and so on...
10-07-2015 12:12 PM
here's a starting point
Linux: bpgetconfig -e /localfilename clientname | cat /localfilename
Windows: bpgetconfig -M clientname | grep Exclude
10-12-2015 02:28 AM
Hi Will,
The command did worked for windows. But Linux it is not working..
./bpgetconfig -e /usr/openv/netbackup/exclude_list clientname (name of the client i have given)
socket read failed
The client i seperately checkeed it is syncing well with master. verified under host properties.
why it is showing "file read failed" Is that i need to understand no file mentioned for this client (bwdbackup-nb)
bpgetconfig -e /usr/openv/netbackup/exclude_list bwdbackup-nb
file read failed
10-12-2015 02:59 AM
yes... file read failed means.. this specific client does not have the exclude_list file at all.
if you are looking for all unix client do the below one
put all list of unix clients in file /tmp/clientlist and then run below for loop
for i in `cat /tmp/clientlist`;do /usr/openv/netbackup/bin/admincmd/bpgetconfig -e /tmp/$i $i ; done
once this command is compleated you will have the files in /tmp with client name and with their exclude lists
like /tmp/client1, /tmp/client2 and so on...