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)
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.
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.
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).
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.
Imtiaz_Uddin_Mo
9 Posts
2065
1
Posted 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