07-30-2017 12:49 PM
Solved! Go to Solution.
07-30-2017 01:40 PM - edited 07-30-2017 01:41 PM
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
07-30-2017 01:40 PM - edited 07-30-2017 01:41 PM
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
07-30-2017 09:24 PM
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"}'