Start a Conversation

Unsolved

This post is more than 5 years old

I

2176

May 20th, 2013 13:00

Solutions Enabler find unused VMAX device

Trying to write some verification scripts, and in my effort to streamline the process... anybody know if there is a single command to list the tdev's that are not part of a storage group, not reserved, unbound and not on a port?   From symdev I can get everything except if it's part of a storage group, which requires me to run a symaccess command.  Right now I'm thinking something like this:

symdev -sid list -tdev -noport -unbound -noreserved

Take said output iterate below over candidate drives until I have all that I need

symaccess -sid -type storage list -dev

Anyone know of a more efficient way of doing it?  I was hoping for some way in symdev list to find it without having to do a verbose output of everything or having to iterate commands.

3 Apprentice

 • 

465 Posts

May 20th, 2013 16:00

I don't think you can do everything in one command as you need symaccess to get the SG info.

There is an example of how to do this with iterative commands here:

https://community.emc.com/docs/DOC-23891

However it is not the most efficient way as you need to run so many CLI commands.

You may be better off with your SYMDEV output and the output of "SYMACCESS -SID XX LIST -TYPE STORAGE -DEVS 0:FFFF | GREP \-" to get a list of symdevs not in an SG.

From there, use a script to find symdevs that are contained in both files.

4 Operator

 • 

2.1K Posts

May 20th, 2013 19:00

Hi InsaneGeek

Jasonc has provided a very good example to combine the symcli output using script. I created a simple batch CMD (for windows) for displaying you query. Hopefully it can help.

for /f "tokens=1-4" %%i in ('symdev list -tdev -noport -unbound -noreserved -sid xxx' ) do symaccess -sid xxx list -type storage devs %%i:%%i

-Fenglin

No Events found!

Top