cancel
Showing results for 
Search instead for 
Did you mean: 

bpclntcmd

HI ALL,

 

I have 3 NIC on my client.

one for prod ,one for backup and one for storage.

when I run ipconfig/all,i have below nic and ip

 

lon100      10.1.200.36

lon100-bck  10.1.200.37

lon100-stu       10.1.200.40

Now when I run bpclntcmd -pn from client,Which nic's IP will go to master server for query?

http://www.symantec.com/business/support/index?page=content&id=TECH50198

 

nbu 7.1

solaris


bpclntcmd -pn
When the -pn option is run on a NetBackup host, it initiates an inquiry to the NetBackup master server, and the master server returns information about the requesting client to the requesting host.  The information returned is, in effect, how the master server "identifies" the requesting host.  The client contacts the first server listed in its servers list, found in the bp.conf file on UNIX/Linux clients (the SERVER= lines) and in the Backup, Archive, and Restore GUI, under File - Specify NetBackup Machines and Policy Type on a Windows client.  

Bpclntcmd identifies the server replying to the request (the "expecting response from" line), and then it displays the information returned from that server.  The following is an example of the output of the bpclntcmd -pn command:

> bpclntcmd -pn
expecting response from server master_server_01
client_01.domain.com client_01 192.168.0.30 3815

In the above example:
 

- The master server is "master_server_01"
- The connection name (peername) is "client_01.domain.com"
- The configured client name is "client_01"
- The source IP from which the connection originated is 192.168.0.30
 - The source port used to connect is 3815.   

The master server resolved 192.168.0.30 to "client_01.domain.com".  The FQDN was not configured as a client in any policy, but the shortname "client_01" was present. 

If the output showed *NULL* for the configured client name (as shown below), the client is not configured in a policy and does not show up in the image database.

> bpclntcmd -pn
expecting response from server master_server_01
client_01.domain.com *NULL* 192.168.0.30 3815

Review the policy configuration on the master server, and see if the peername is listed correctly in a policy.  
1 Solution

Accepted Solutions
Accepted Solution!

NBU on master server contains

NBU on master server contains Client name in policy. The IP address that master and media server knows about will be used to connect to client.

Client will connect back on the interface/IP that is used for this hostname. 
In this case - it will probably round-robin.

If there is a database on the client which means that the client will initiate comms to the master server, the 'Configured Client Name' will be used as source. 
If this is the -bck name with 2 IP addresses, TCP/IP will choose any IP. This is outside of NBU control.

You may want to read up in Admin Guide II chapter 4 about this topic: 
Host name rules

 

View solution in original post

18 Replies

Usally it will take the NIC

Usally it will take the NIC where the default gaetway is configured.

But the qustion can't be answered fully without knowing the subnetmask and IP addresses of the master and client.

Nornally having to IP on the same subnet causes more problems than it solves - consider to disable one of them:

lon100-bck  10.1.200.37

lon100-stu       10.1.200.40

Here are some links about host routing, this will help you understand how traffice travels:

http://www.youtube.com/watch?v=pjX1msE1ccI

http://technet.microsoft.com/en-us/library/cc957855.aspx

so which out of these 3 ip

so which out of these 3 ip will be used ?

If you ping the client from

If you ping the client from the Master which IP responds?  It depends on how your environment is set up & we have no visibility into that.

 

 

Which hostname does the

Which hostname does the client think is the master server and what IP address does the client think that hostname is at? 

Hey, wait... I bet if you actually ran the command on your client you'd get the answer yourself a whole lot faster than hoping we'll be able to use our mind reading powers to guess what your configuration is!

(As always with your threads, I'd love to know if these servers actually exist in the real world or if you're just making up some scenario in the hopes of scoring points during an interview.)

NetBackup is like learning to

NetBackup is like learning to ride a bicycle.  One has to jump on and fall over flat a few times before obtaining the perfect balance.  laugh

Chris - like :)   NIKHIL - go

Chris - like :)

 

NIKHIL - go an run the command. 

C:\Program

C:\Program Files\VERITAS\NetBackup\bin>bpclntcmd -pn
expecting response from server master 1
win12 win12-bck  10.13.197.66 4881
 

 

 

Why this ip??? on client we have 2 ip
 
C:\Program Files\VERITAS\NetBackup\bin>ipconfig /all
 
Windows IP Configuration
 
   Host Name . . . . . . . . . . . . : win12
   Primary Dns Suffix  . . . . . . . : corp.org.com
   Node Type . . . . . . . . . . . . : Unknown
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   
 
Ethernet adapter Local Area Connection 7:win12-bck
 
   Connection-specific DNS Suffix  . : corp.org.com
   Description . . . . . . . . . . . : TEAM : Production Load Balancer Network
   Physical Address. . . . . . . . . :  
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 10.13.197.83
   Subnet Mask . . . . . . . . . . . : 255.255.255.192
   IP Address. . . . . . . . . . . . : 10.13.197.66
   Subnet Mask . . . . . . . . . . . : 255.255.255.192
   Default Gateway . . . . . . . . . : 10.13.197.65

Did you bind the different IP

Did you bind the different IP addresses to hostnames in Client's hosts file?

What does 'bpclntcmd -self' show?

What is the purpose of having multiple IP addresses on the same subnet?

different IP addresses to

different IP addresses to hostnames in Client's hosts file? yes.

multiple IP addresses on the same subnet? for os team.

 

this is my query.

 

I have 3 NIC on my client.

one for prod ,one for backup and one for storage.

when I run ipconfig/all,i have below nic and ip

 

lon100      10.1.200.36

lon100-bck  10.1.200.37

lon100-stu       10.1.200.40

Now when I run bpclntcmd -pn from client,Which nic's IP will go to master server for query?

 

 

 

If you answer my questions, I

If you answer my questions, I will be able to answer yours.

Again: 

Did you bind the different IP addresses to hostnames in Client's hosts file?
(This is how OS and TCP/IP knows which IP address to use for lon100-bck hostname)

What does 'bpclntcmd -self' show?
This will tell us what is NBU 'configured hostname'.

What is the purpose of having multiple IP addresses on the same subnet?
(Basics of TCP/IP....)

Did you bind the different IP

Did you bind the different IP addresses to hostnames in Client's hosts file?
(This is how OS and TCP/IP knows which IP address to use for lon100-bck hostname)

yes.

What does 'bpclntcmd -self' show?
This will tell us what is NBU 'configured hostname'.

C:\Program Files\VERITAS\NetBackup\bin>bpclntcmd -self
gethostname() returned: win12.corp.org.com
host win12.corp.org.com.au: win12-bck.corp.org.com.com.au at
 10.13.197.66 (0x42c50d0a)
host win12.corp.org.com: win12-bck.corp.org.com.com.au at
 10.13.197.83 (0x53c50d0a)
aliases:

 

What is the purpose of having multiple IP addresses on the same subnet?
(Basics of TCP/IP....

OS team has did this.NIC TEAMING is not enabled.host configure with two NIC card without teaming.. It is a requirement.

I'm starting to wonder what

I'm starting to wonder what made you start this discussion in the first place.

Can I guess? 
Backups are failing, right? Probably intermittently?

Seems each IP address is NOT bound to different hostname in Client's hosts file.
We see 2 IP addresses for the same hostname:

win12-bck.corp.org.com.com.au at  10.13.197.66

win12-bck.corp.org.com.com.au at  10.13.197.83 

Which IP address does master and media server know about? 

Problem with 2 IP addresses for the same hostname is that TCP/IP does not know which IP/NIC should be used for comms when hostname win12-bck.... is used and will probably round-robin, causing intermittent failures.

Your OS/networking team should understand this.

thanks Marianne.   My initial

thanks Marianne.

 

My initial query was what ip client will use.i mean which ip.If i have prod ip and backup ip.then?

Accepted Solution!

NBU on master server contains

NBU on master server contains Client name in policy. The IP address that master and media server knows about will be used to connect to client.

Client will connect back on the interface/IP that is used for this hostname. 
In this case - it will probably round-robin.

If there is a database on the client which means that the client will initiate comms to the master server, the 'Configured Client Name' will be used as source. 
If this is the -bck name with 2 IP addresses, TCP/IP will choose any IP. This is outside of NBU control.

You may want to read up in Admin Guide II chapter 4 about this topic: 
Host name rules

 

View solution in original post

Seems a good time to use

Seems a good time to use preferred network perhaps ??

http://www.symantec.com/docs/HOWTO60779

Hello, in general, if your

Hello,

in general, if your client has 2 ip address ( Prod and Admin for example) i think, generally admin ip must be used. It permit to avoid overload you prod interface ( if you have a web server, database or others).

Regarding your first ticket and like say all people bellow, hostname must be unique and the same on all hosts ( client and server). Using DNS made it easy.

So If your client has the following configuration :

lon100      10.1.200.36

lon100-bck  10.1.200.37

lon100-stu       10.1.200.40

 

On client you have to set a route to use the good interface :

route add -p 10.1.200.37  mask 255.255.255.255 IF X

your backup serveur must answer with his name :

ping ion100-bck ( if not correct your local host file in c:\windows\system32\drivers\etc\hosts

=> 10.1.200.37

 

Your Master server

ping ion100-bck => 10.1.200.37.

If not correct your host file

 

The following actions can help you to solve resolution problem :

bpclntcmd -clear_host_cache => clear the cache of Netbackup

Restart Netbackup services ? ;)

 

 

 

 

 

 

 

 

 

 

 

 

 

thanks Marianne:   If there

thanks Marianne:

 

If there is a database on the client which means that the client will initiate comms to the master server, the 'Configured Client Name' will be used as source. 

 

Configured Client Name' :ON master server??

No. Configured Client name is

No.

Configured Client name is CLIENT_NAME entry in bp.conf on Unix/Linux servers and clients and Client_Name entry in the registry on Windows servers and clients (can also be seen in Host Properties of each client and server).