06-25-2013 05:23 AM
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.
Solved! Go to Solution.
06-26-2013 06:55 AM
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
06-25-2013 07:34 AM
06-25-2013 07:48 AM
What all it will show nicolai?
06-25-2013 08:17 AM
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.
06-25-2013 08:19 AM
Did you try the command ?
Did it do what you expected ?
06-25-2013 08:21 AM
True +1
06-25-2013 09:16 AM
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.
06-25-2013 01:08 PM
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.
06-25-2013 01:44 PM
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
06-25-2013 10:37 PM
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
06-26-2013 03:46 AM
./bpclient -All -L |grep -e "Client Name:" -e "Offline:" |sed 'N;s/\n/ /;P;D;' | grep -i yes
06-26-2013 05:10 AM
And you still deny that you have more than one user id?
https://www-secure.symantec.com/connect/forums/netbackup-100-client-offline
06-26-2013 06:55 AM
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