Name that DDL!

W

Walton Hoops

Hi all,

I'm working on writing a Ruby script to SSH into one of our VMware Servers
and do a little command line work for me. The challenge is that some of the
output is in some kind of data definition language I don't recognize.

A page with example output:
http://www.vi-toolkit.com/wiki/index.php/Vmsvc/get.filelayout

Anyone recognize it off the top of their heads? If it all comes down to
it I can parse out the information I need the hard way, but I'm hoping that
I can find a library to do the painful stuff for me.

Thanks in advance!
 
M

Marnen Laibow-Koser

Walton said:
Hi all,

I'm working on writing a Ruby script to SSH into one of our VMware
Servers
and do a little command line work for me. The challenge is that some of
the
output is in some kind of data definition language I don't recognize.

A page with example output:
http://www.vi-toolkit.com/wiki/index.php/Vmsvc/get.filelayout

Anyone recognize it off the top of their heads? If it all comes down to
it I can parse out the information I need the hard way, but I'm hoping
that
I can find a library to do the painful stuff for me.

Thanks in advance!

This has nothing to do with Ruby, and might be better asked on a VMWare
support forum. The output almost looks like JSON with types...

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
(e-mail address removed)
 
W

Walton Hoops

Otherwise (if you don't find a library that already recognizes your output)
a grammar written with Treetop (http://github.com/nathansobo/treetop) could
be the simplest way...

Bernard

Ohhh! Thank you! That looks like it will make writing a parser _much_
easier. I had thought
about trying to do this with Bison/Flex, but I really didn't want to
write this in C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,188
Messages
2,571,002
Members
47,595
Latest member
DustinGrub

Latest Threads

Top