Name that DDL!

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!

Walton H. wrote:

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:
Vmsvc/get.filelayout - VI-Toolkit

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
[email protected]

Otherwise (if you don’t find a library that already recognizes your
output)
a grammar written with Treetop (GitHub - nathansobo/treetop: A Ruby-based parsing DSL based on parsing expression grammars.)
could
be the simplest way…

Bernard

On 2/3/2010 2:56 PM, LAMBEAU Bernard wrote:

Otherwise (if you don’t find a library that already recognizes your output)
a grammar written with Treetop (GitHub - nathansobo/treetop: A Ruby-based parsing DSL based on parsing expression grammars.) 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.

LAMBEAU Bernard wrote:

Otherwise (if you don’t find a library that already recognizes your
output)
a grammar written with Treetop (GitHub - nathansobo/treetop: A Ruby-based parsing DSL based on parsing expression grammars.)
could
be the simplest way…

Hey, great idea! Treetop is lovely and very simple to use.

Bernard

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]