Remote Host Configuration
It is possible to get and set the configuration of a client or NetBackup server either locally or remotely via the command line. There are 4 possible commands to use. These commands enable any value which can be manually added or edited to the bp.conf on a UNIX host or the Windows registry on a Windows host to be modified.
The path to the NetBackup Window's registry hive is HKLM\Software\Veritas\Nebackup\CurrentVersion
There are 2 server side commands, to get or set the configuration of a host remotely, can also be used to get or set the configuration of the local NetBackup server.
# /usr/openv/netbackup/bin/admincmd/bpsetconfig
# /usr/openv/netbackup/bin/admincmd/bpgetconfig
To get or set the configuration of a client the following commands can be used
# /usr/openv/netbackup/bin/nbsetconfig
# /usr/openv/netbackup/bin/nbgetconfig
To get the configuration settings of a remote clients
# /usr/openv/netbackup/bin/admincmd/bpgetconfig -M <client_host_name>
TO get NetBackup version information and OS version information from a client
# /usr/openv/netbackup/bin/admincmd/bpgetconfig -A -g <client_host_name> -L
The following command will list the values which have changed from the default values on the client
# /usr/openv/netbackup/bin/admincmd/bpgetconfig -M <client_hostn_name> -d
The -x option will only list the values explicitly configured on the host
# /usr/openv/netbackup/bin/admincmd/bpgetconfig -M <client_hostn_name> -x
There are several options to configure values remotely on the client. The configuration can be pull from the client and saved to a file which is amended and then pushed back to the client
# /usr/openv/netbackup/bin/admincmd/bpgetconfig -M <client_host_name> > /tmp/config.file
amendments made to /tmp/config.file
# /usr/openv/netbackup/bin/admincmd/bpsetconfig -h <client_host_name> /tmp/config.file
To change a single value on the remote host, the value can be piped into bpsetconfig
# echo VERBOSE = 5 | bpsetconfig -h <client_host_name>
It is also possible to change the configuration on a host interactively
# /usr/openv/netbackup/bin/admincmd/bpsetconfig -h <client_hostn_name>
bpsetconfig> VERBOSE = 5
bpsetconfig> CLIENT_READ_TIMEOUT = 900
bpsetconfig> CTRL ^D
In the above example, a bpsetconfig prompt is presented into which the settings to be changed are typed. After each configuration option is typed in the user needs to press enter to continue on the next line. Once all the options have been entered pressing control D ends the prompt
One difference between managing the configuration of of UNIX and Windows hosts remotely is how exclude lists are handled. On a Windows host the exclude list values are part of the configuration which can be managed by bpsetconfig however on a UNIX host the values must be managed separately and put in place via bpsetconfig.
# /usr/openv/netbackup/bin/admincmd/bpgetconfig -e /tmp/exclude.list <client_host_name>
modify the exclude list contained in the /tmp/exclude.list file then push it back to the client
# /usr/openv/netbckup/bin/admincmd/bpsetconfig -e /tmp/exclude.list -h <client_host_name>