cancel
Showing results for 
Search instead for 
Did you mean: 

List of all robot names

Sid1987
Level 6
Certified
Hi Team,

Could anyone tell me command to list all robots under a master server?
I use tpconfig-l but it doesn't show all robots which are shown in GUI under Media-->Robots

Thanks
Sid
1 ACCEPTED SOLUTION

Accepted Solutions

Mike_Gavrilov
Moderator
Moderator
Partner    VIP    Accredited Certified

You can run:

 

# vmglob -listall -b | grep ROBOT | awk '{print $2}' | sort  | uniq 
ROBOT0
ROBOT1
ROBOT2
ROBOT3
ROBOT4
ROBOT5

The main idea is to get all robots from vmglob command and leave only unique records

 

View solution in original post

2 REPLIES 2

Mike_Gavrilov
Moderator
Moderator
Partner    VIP    Accredited Certified

You can run:

 

# vmglob -listall -b | grep ROBOT | awk '{print $2}' | sort  | uniq 
ROBOT0
ROBOT1
ROBOT2
ROBOT3
ROBOT4
ROBOT5

The main idea is to get all robots from vmglob command and leave only unique records

 

Thanks Mike,

vmglob is what i needed. Here is a better code for getting robots or robot nos.

sudo /usr/openv/volmgr/bin/vmglob -listall -b | awk '$1=="robot" {print $2 | "sort -u"}'

sudo /usr/openv/volmgr/bin/vmglob -listall -b | awk '$1=="robot" {print substr($2,length($2),1)| "sort -u"}'