How "bpclntcmd -pn" is used to resolve multiple interfaces on Clients.
When the above command is run on a NetBackup client, the -pn option initiates an inquiry to NetBackup master server, and the server then returns information to the requesting client. First, "bpclntcmd" identifies the server to which it is making the request, then it displays the information that the server returns.
Unlike the other options for "bpclntcmd", the "-pn" option is logged in the bprd log on the master when "bprd" tries to resolve the IP to a hostname via NIS, DNS or the /etc/hosts file. This command can be very useful to troubleshoot multiple interfaces on a single client for bp.conf entries for backups. If this command is failing, check the bprd log on the master to see what IP address is being resolved.
/usr/openv/netbackup/logs/bprd log entry:
08:33:17.290  <2> logconnections: BPRD ACCEPT FROM <FROM IP.32895> TO <TO IP.13720>
08:33:17.292  <2> connected_peer: Connection from host <hostnamemaharaja.com>, <FROM IP>, on non-reserved port 32895
08:33:17.297  <2> process_request: no authentication required
08:33:17.297  <2> nb_is_valid_master_server: checking if <hostnamemaharaja.com> is a valid server
08:33:17.298  <2> nb_is_valid_master_server: *** host <hostnamemaharaja.com> is NOT a valid server
08:33:17.298  <2> nb_is_valid_master_server: h_name is <hostnamemaharaja.com
08:33:17.298  <2> nb_is_valid_master_server: ip address is <FROM IP> (0xa5268a9)
08:33:17.298  <2> db_valid_master_server: <hostnamemaharaja.com> is not a valid server
08:33:17.438  <2> process_request: command C_CLIENT_ID (45) received
08:33:17.438  <2> process_request: <hostnamemaharaja.com> is 4.5FP_6
08:33:17.438  <2> get_ccname: determine configured name for <hostnamemaharaja.com>
08:33:17.441  <2> getsockconnected: host=<hostnamerohini.com> service=bpdbm address=<TO IP> protocol=tcp non-reserved port=13721
08:33:17.442  <2> bind_on_port_addr: bound to port 40151
08:33:17.442  <2> logconnections: BPDBM CONNECT FROM <FROM IP>.40151 TO <TO IP.13721>
08:33:17.444  <2> check_authentication: no authentication required
08:33:19.042  <2> get_ccname: configured name is: <hostnamemaharaja.com>
expecting response from server <hostnamerohini.com>
<hostnamemaharaja.com> <hostnamemaharaja.com> <FromIP 32895>
expecting response from server rabbit.friendlyanimals.com
dove.friendlyanimals.com dove 126.96.36.199 57141
• expecting response from server rabbit.friendlyanimals.com is the master server entry from the server list on the client.
• dove.friendlyanimals.com is the connection name (peername) returned by the master server. The master server obtained this name through gethostbyaddress().
• dove is the client name configured in the NetBackup class client list.
• 188.8.131.52 is the IP address of the client connection at the master server.
• 57141 is the port number of the connection on the client.
Imported Document Id
This is machine translated content
Login to Subscribe
Please login to set up your subscription.
Didn't find the article you were looking for? Try these resources.