Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

How to convert client hostname in to ipaddress in the activity monitor netbackup7.5

Created: 11 Dec 2012 • Updated: 14 Jan 2013 | 11 comments
This issue has been solved. See solution.

Hi All,

   I am using Veritas netbackup7.5,

 In activity monitor it shows the client hostname , i need ipadress of the client .

what i need to do.

or 

/usr/openv/netbackup/bin/admincmd/ ./bpdbjobs -report

if excute this cmd in linux server it shows the hostname only 

suggest which abbrevation to get in cmd prompt also..

thanks advance...

Discussion Filed Under:

Comments 11 CommentsJump to latest comment

Marianne's picture

If you have configured NBU using hostnames (e.g. Client name in Policies), this is what you will see.

There is no way to convert hostname to IP address in activity monitor (unless you change policies).

If you decide to change Client names to IP addresses in policies, it will affect restores. NBU will see IP address as new Client name.

PS - I have never seen such a request (close to 14 years of supporting many customers). We always discourage customers from using IP addresses instead of hostnames. What is the reason for this request?

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

SOLUTION
manura's picture

Thanks for your suggestion.

Report format is design like that..

we want enter the ipaddress along with the hostname of the client which should take backup daily.

RamNagalla's picture

hi,

I am not sure why you want to view the IP address...its not a good practic to use IP address..

host name is for human undestading and IP address is for machien understanding... , if you go and configure the IP address it may lead to more human errors..

but still you can do that..

just enter the IP address of the server that you wish to backup in policy selection, and when you trigger the backup it will show you the iP address inactivity moniter.

even bpdbjobs -report will show the IP address..

but i recommend to use the Host name only, and when you require to know the IP address , just use the nslookup or /etc/hots file to resolve the IP address

hope this helps.

manura's picture
if i excutethis cmd
 
/usr/openv/netbackup/bin/admincmd/ ./bpdbjobs -report
output:-
 
JobID           Type State Status             Policy Schedule       Client Dest  
 
i need client ipaddress also ..
 
can any one suggest.
RamNagalla's picture

Simply you can not ... as long as you use the Host name in the backup policy.

1)you need to chage the host name to IP address in backup policy( never recommended)

or

2) use script to convet the host name in bpdbjobs -report output to IP address...

can possilbe with scripts..

Marianne's picture

NetBackup does NOT store IP addresses as previously explained.
You will have to find a way to populate this field yourself.
Maybe clever lookup table in a spreadsheet?

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

RamNagalla's picture

hi,

 >use this if you have the DNS in your envirornment for name resolution 

cat /script1   

/usr/openv/netbackup/bin/admincmd/bpdbjobs -report | awk '{print$2}' | awk '!seen[$0]++' > /tmp/client_list
 
for i in `cat /tmp/client_list` ; do nslookup $i >> /tmp/ip_info;done
 
 
use below one if you dont have DNS and using /etc/hosts file for name resolution 
cat /script2  
/usr/openv/netbackup/bin/admincmd/bpdbjobs -report | awk '{print$2}' | awk '!seen[$0]++' > /tmp/client_list
for i in `cat /tmp/client_list` ; do grep $i /etc/hosts >> /tmp/ip_info;done
 
 
hope this helps.
 
 
------------
dont forget to Thumbs up or mark as solution if any post helps you.
Andy Welburn's picture

Altho' not checked the logic/syntax of the commands per se, irrespective of the naming service being used, how about incorporating 'bpclntcmd -hn' to get the IP that NB is working with?

One would hope that that command would work! wink

Yogesh9881's picture

Dear Manura,

I agreed that due to your report format you want IP address. but try to understand product behaviour / design.

So, instead for doing complex thigs i will recommend you to help your management to understand about NBU & remove IP from report.

Thnakx & Regd's

Yogesh

If this post has helped you, please vote or mark as solution.

Before break-up, make sure you have a good backup.....  ;-)

RamNagalla's picture

Thanks Andy for that, i just missed that... 

Manura,

below will work irrespective of DNS or hosts file.. 

/usr/openv/netbackup/bin/admincmd/bpdbjobs -report | awk '{print$2}' | awk '!seen[$0]++' > /tmp/client_list
 
for i in `cat /tmp/client_list` ; do /usr/openv/netbackup/bin/bpclntcmd -hn  $i >> /tmp/ip_info;done
 
------------
dont forget to Thumbs up or mark as solution if any post helps you.