06-07-2016 04:32 AM
06-07-2016 04:55 AM
You can run bppllist to file and then check the file for NDMP policies. You can also run bpimagelist -pt NDMP and check the resulting output for the policy name.
06-07-2016 05:35 AM
Hi Riaan,
Thanks for the suggestion. But how does running BPPLLIST and BPIMAGELIST help us determining whether Local, 3-way or Remote-NDMP is in place (the type of NetBackup for NDMP configuration) ?
With Storage Unit name in the output you mean ?
06-07-2016 06:02 AM
Hi,
Sorry i misunderstood your requirement. You'll have to use bpplllist output and look at the residence, then check if the residence is a regular or NDMP type storage unit using bpstulist.
06-08-2016 07:42 AM
So, there is no single command that could help us achieve this objective and get us straight to the point ?
06-08-2016 08:57 PM
Nope, ndmp local or remote is just a description of how your configuration is setup in terms of storage unit i.e filer has its own or filer sends to media server.
06-09-2016 08:33 AM
With a reasonable amount of shell scripting knowledge and a solid understanding of the various bp*list output formats you can get just about anything by piping a few commands together.
1. You have to know ahead of time whether a particular storage unit was set up for 3-way or local NDMP. With good naming conventions this should be apparent (is it the filer itself or is it a media server).
2. Then you can use this to print a list of NDMP policies and which storage unit it's configured for.
bppllist -allpolicies -l | awk '{if($1=="CLASS"){P=$2}if($1=="INFO"){PT=$2}if($1~/RES/ && PT==19 && $2!="*NULL*"){print P,$2}}'
Output 1 - I know these are local NDMP because the filer in the policy name matches the filer in the storage unit
NDMP-pn002-PR-wednesday hcart3-ndmp-pn002 NDMP-pn002-PR-tuesday hcart3-ndmp-pn002
Output 2 - I know these are 3 way because the storage unit is an SLP that's using all media servers in a pool
NP-NDMP_3 NP_allmedia NP-NDMP_4 NP_allmedia NP-NDMP_5 NP_allmedia
This is the Unix philosophy:
06-12-2016 01:05 AM
Hi,
you can try command tpautoconf -veriy <netapp node name>
with this command it will not directly tells you which way your ndmp backup are configured but it will give you hint that what are the ways your netapp node supports.
#tpautoconf -verify netappnode-3a
Connecting to host "netappnode-3a" as user "root"...
Waiting for connect notification message...
Opening session--attempting with NDMP protocol version 4...
Opening session--successful with NDMP protocol version 4
host supports TEXT authentication
host supports MD5 authentication
Getting MD5 challenge from host...
Logging in using MD5 method...
Host info is:
host name "netappnode-3a"
os type "NetApp"
os version "NetApp Release 8.3.1P1"
host id ""
Login was successful
Host supports LOCAL backup/restore
Host supports 3-way backup/restore