Friday, 20 April 2012

Verify NBU Name Resolution - Using "bpclntcmd"

“bpclntcmd” is a useful utility that can be run from any host. It will help determine if name resolution is working properly from NetBackup’s perspective. Test bpclntcmd between hosts where problems exist. This is often between the Client and Media Server.

Windows command location: %install_path%\VERITAS\NetBackup\bin\
UNIX command location: /usr/openv/netbackup/bin

Switches and variations:
bpclntcmd -pn
bpclntcmd -self
bpclntcmd -hn <hostname_of_master server, media server, or client>
bpclntcmd -ip <ip_of_master server, media server, or client>

The goal of these commands is to make sure the hostname is seen the same way after each command with no errors. Below is an explanation of what each switch does:

-pn - The client process on the host connects to the Master Server and asks the question "Who am I?". The second line of the output is the result. This is how the client process on the host is being seen by the Master Server.

-self - Checks how the local host can be resolved. Ideally, there should be only 1 unique hostname and 1 unique IP address.

-hn - Checks the given hostname and returns an IP.

-ip - Checks the given IP and returns a hostname.

If there is any inconsistency or errors in the results of these commands, it may be necessary to add a local host entry in the operating system (etc hosts file) for the host to ensure proper name resolution.