截屏视频帮助

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

创建时间: 11 12 月 2012 • Updated: 14 1 月 2013 | 11 条评论
此问题已解决。 请查看解决方案。

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...

讨论 归类至以下社区:

评论 条评论跳转至最新评论

Marianne 的图片

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

解决方案
manura 的图片

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 的图片

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 的图片
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 的图片

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 的图片

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 的图片

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 的图片

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 的图片

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 的图片

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.