Video Screencast Help

command or script

Created: 25 Jun 2013 • Updated: 26 Jun 2013 | 12 comments
This issue has been solved. See solution.

Hi ALL,

We have manually offline around 200 clients in NBU using GUI.

Some of my junior employees have made some clients online and now it is vey tough for me to check which are offline clients and date.

 

Can anybody please provide me the command/script to check which clients are in offline state and the online date?

Please it is my humble reuqest.

 

Operating Systems:

Comments 12 CommentsJump to latest comment

Nicolai's picture
bpclient -All -L  |grep  -e "Client Name:" -e "Offline:"  |sed 'N;s/\n/ /;P;D;'

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Nicolai's picture

Did you try the command ?

Did it do what you expected ?

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Vickie's picture

Hi,

It's not possible to get the date from which the client was online, we just get to know wheather a client is online or offline.

Nicolai's picture

True +1

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

StefanosM's picture

check the modification time of the config file at ...\netbackup\db\clients\client_name\

if you have not do any other changes, you have a good change to get the time and date you want.

Arun K's picture

sudo ./bpclient -All -L  |grep  -e "Client Name:" -e "Offline:"  |sed 'N;s/\n/ /;P;D;'
Client Name: win23  Offline:    yes
Client Name: win24  Offline: No
Client Name: win25 Offline:       yes
Client Name: win26  Offline:       No

 

I want to have only online = yes. output in the result.A

 

nd want to know at what time these offline will be online.

Arun K's picture

I want output like below of each client which is being offline.

 

Client Name: win23  Offline:   Yes
Online at:  05/18/2013 04:57:44

Nagalla's picture

why dont you keep that result in notepad or excle and seperate it as per your requirement.. 

Nicolai gave you best command that compleates 90% of your work.

you just need to sort the things how you want.. 

and there is no way to find the dates about the client offline and online unless no once changed the client config after the ofline or online 

 

Vickie's picture
Hi,
 
You may try this command which will give you output like
 
Client Name: win23  Offline:   Yes
 
 ./bpclient -All -L  |grep  -e "Client Name:" -e "Offline:"  |sed 'N;s/\n/ /;P;D;' | grep -i yes
 
Note : As mentioned in earlier post "Its not possible to get the Date or time when the server was online or offline"
Marianne's picture

And you still deny that you have more than one user id?

https://www-secure.symantec.com/connect/forums/netbackup-100-client-offline

 

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

Twinkle Sapra's picture

Try this one

 for i in `sudo bpclient -All -L|grep -i "client name"|awk '{print $3}'`;do echo -e `echo $i;sudo bpclient -client $i -L|egrep -i "offline|online at"`|grep -i "yes";done

 

SOLUTION