This post is more than 5 years old
9 Posts
0
5545
January 15th, 2013 05:00
VMAX thin pool info
Hello,
I have a list of 1000 TDEVs and they belong to different thin pools. Is there a cli command I can run to get the pool information for those TDEVs ? (Apart from using symdev show for each TDEV)
Thanks in advance !
Taz~
0 events found
No Events found!


Imtiaz_Uddin_Mo
9 Posts
1
January 18th, 2013 23:00
Thanks everyone for your valuable comments.
I finally found the way to get the pool information sorted out with this command (Run all at once in CLI)
symdev -sid XXX show 1FBD | findstr "Pool" >> C:\Taz\pool.txt
symdev -sid XXX show 2C35 | findstr "Pool" >> C:\Taz\pool.txt
symdev -sid XXX show 1FBE | findstr "Pool" >> C:\Taz\pool.txt
symdev -sid XXX show 2298 | findstr "Pool" >> C:\Taz\pool.txt
symdev -sid XXX show 2345 | findstr "Pool" >> C:\Taz\pool.txt
-
-
-
-
-
OUTPUT:
Bound Thin Pool Name : COD_Rem_PROD
Bound Thin Pool Name : COD_Rem_PROD
Bound Thin Pool Name : COD_Rem_PROD
Bound Thin Pool Name : COD_Rem_PROD
Bound Thin Pool Name : COD_Rem_PROD
-
-
-
-
As I had the "TextPad" editor, I just used the Configure > Block select mode menu option and selected all the Thin Pool name column and filtered out using Microsoft Excel. It worked like a charm. Took 10 mins in total.
Thanks
Taz
Zikas
278 Posts
0
January 15th, 2013 06:00
Hi,
execute the command:
symcfg -sid <> list -tdev -bound -GB
dynamox
9 Legend
•
20.4K Posts
0
January 15th, 2013 06:00
list pools and grep out your devices ?
Zikas
278 Posts
0
January 15th, 2013 07:00
Also
symcfg -sid <> list -tdev -GB -detail
Zikas
278 Posts
2
January 15th, 2013 22:00
Good morning Mohammed,
i am more Windows guy and using the Microsoft products to simplify my life in the degree that i can.
So using the command "symcfg -sid <> list -tdev -bound -GB" why don't you export the output in a txt file and then convert this txt file to an excel file.
Through the excel file you can do whatever you want. Put filters, sort them with the order you want e.t.c. so you will have every time an xls file updated and ready to use it.
Cheers
John
Imtiaz_Uddin_Mo
9 Posts
0
January 15th, 2013 22:00
Thanks Jon.
That was my first option in the list but I was thinking if we have anything better than excel.
Anywayz, thanks everyone for your responses.
Imtiaz_Uddin_Mo
9 Posts
0
January 15th, 2013 22:00
Thanks Peri.
Let me redefine my query again.
I have a list of 1000 TDEVs which belong to "different" thin pools. If we do a
"symcfg -sid <> list -tdev -bound -GB" we are getting the list of devices which are bound to that pool. But my query says 1000 TDEVs belonging to different pools.
Is there a way we can pass the list of TDEVs belonging to the pool and AWK (grep) only those TDEVs. (could be 400 in that list out of those 1000).
Thanks again!
Taz~
Archuperi721
110 Posts
0
January 15th, 2013 22:00
symdev -sid xxxx list -tdev -v | findstr "Pool"”
Regards,
Periyakaruppan N (Peri),
Imtiaz_Uddin_Mo
9 Posts
0
January 15th, 2013 22:00
@dynamox - grepping those 1000 TDEVs ?
@Zikas - The output is listing all the TDEVs bound,, but how do we grep to those device list I have.
Additionaly am using symcli for windows.
dynamox
9 Legend
•
20.4K Posts
0
January 16th, 2013 03:00
excel can get very cumbersome, you can install grep and awk for windows and enjoy very powerful tools. It would take a few seconds to grep 1000 devices from a list of all devices.
umichklewis
3 Apprentice
•
1.2K Posts
0
January 16th, 2013 09:00
dynamox is spot on - your best bet is to take a few minutes and look into grep and awk. awk is probably handiest for doing something "actionable" with your results. Say, if you want to add up all the TDEVs in a pool, you could use awk, print the particular column, then sum up the value (and even convert GiB to TiB, for example). Otherwise, if you just want to list certain pools/hosts/TDEVs, grep is your friend.
And best of all, you can do this from Windows without too much trouble. If you have PowerShell, you can use Split in a fashion similiar to awk. Or, you download UNIXutils from sourceforge and get Windows binaries precompiled (gawk, grep, etc.).
pacmansan
16 Posts
0
January 29th, 2013 09:00
Use SMC.
Dead easy.
Praveen_ME
4 Posts
0
April 22nd, 2015 12:00
you can put all your devices in a text file and run a for loop like below (if you have unix symcli server)
for i in `cat `
do
symdev -sid xxxx show $i | egrep "Bound Thin Pool"
done