Forum Discussion

zoan_nbu's avatar
zoan_nbu
Level 4
12 years ago
Solved

ping and bptestbpcd

Hi ALL Folks,

 

I hope u all doing good.

 

I have 200 clients in my data center.I have an outage in my data center.

 

I need to ping abd bptestbpcd those 200 client so that I can initiate the backup after the successful run of the command.

 

Can Any body please provide me the script  in ehich I can put those 200 client and run that script that will show me the output of ping and bptestbpcd in a single go.

Thanks in Advance

 

 

NBU: 7.1.0.2

OS:LINUX

  • apologize , missing space after echo. i just tested it..

    use the below lines it should work now.. 

     

    for i in `cat /tmp/client_list` ;do echo -------------$i------------ >> /tmp/ping_result; /bin/ping  -c 4 $i >>/tmp/ping_result ;done

     

     

    for i in `cat /tmp/client_list` ;do echo -------------$i------------ >> /tmp/bptestbpcd_result; sudo/usr/openv/netbackup/bin/admincmd/bptestbpcd -client $i >>/tmp/bptestbpcd_result ;done

19 Replies