Highlighted
2 Iron

scripting with SYMCLI

Jump to solution

I'm new to EMC and Solutions Enabler but love the command line capabilities. For my HDS storage I have a lot of custom reporting in place and want to continue this with the EMC storage. We have a couple of VMAX arrays now and I have SE installed on a linux host.

When I run a command like the following...

symcfg list -pool -thin

I get a lot of useful information but trying to figure out how to parse the output is challenging. I'd like to start with just grabbing basic pool information. But I'd like to write my script and parser so that it works no matter what the thin pools may be named. There appear to be no fixed labels or identifiers on the lines with the thin pools other than the pool names and since we created those I know if I just look for that naming format it wil only work in my shop.

Are there and command line switches to tell the SYMCLI tools to produce alternate output formats more suitable for programatic parsing? Output with a field delimiter would be nice.

How do automation/scripting folks on this list handle this? Scripting jobs to take specific actions is very easy but scripting jobs to collect information using "list" and "show" commands and then take action based on the output seems unnecessarily difficult.

Thanks!

Vic Engle

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
7 Thorium

Re: scripting with SYMCLI

Jump to solution

-output xml_element

View solution in original post

0 Kudos
4 Replies
Highlighted
7 Thorium

Re: scripting with SYMCLI

Jump to solution

-output xml_element

View solution in original post

0 Kudos
Highlighted
7 Thorium

Re: scripting with SYMCLI

Jump to solution
Highlighted
3 Argentum

Re: scripting with SYMCLI

Jump to solution

Vic,

I have a blog post with some examples of parsing SYMCLI's XML with Python here -- http://blog.scummins.com/?p=68

Does that help?

Thanks,

- Sean

Sent from my iPhone

Highlighted
2 Iron

Re: scripting with SYMCLI

Jump to solution

Amazingly helpful answers! I'm an old perl programmer and have done some work in python and love it. Just need to make myself stop going back to perl out of pressure to get something done quickly. Thanks!!

0 Kudos