[OpenAFS] Modifying the output of vos commands to include server UUIDs
Steve Simmons
scs@umich.edu
Wed, 14 Apr 2010 10:51:47 -0400
On Apr 13, 2010, at 5:28 PM, Jeffrey Altman wrote:
>>=20
>> I'm a long-time fan of having a switch that causes tools to dump =
their data in an easy-to-machine-parse format. That isn't always doable, =
but when it is, it's a big win.
>=20
> As Andrew pointed out in another reply in this thread, the -format
> switch is support to provide that but it fails to provide a consistent
> (value - data) pair per line.
Exactly my point. We currently snarf off all that data nightly via =
script that parses the output from vos e -format. It works but was a =
pain.
Note, tho, that some data doesn't adapt well to single-line output. For =
example,=20
...
root.cell
RWrite: 536870915 ROnly: 536870916
number of sites -> 4
server bethlehem.your-file-system.com partition /vicepa RW Site
server bethlehem.your-file-system.com partition /vicepa RO Site
server faultline.your-file-system.com partition /vicepa RO Site
server cpe-24-193-47-88.nyc.res.rr.com partition /vicepa RO Site
RWrite: 536870915 ROnly: 536870916
number of sites -> 4
server bethlehem.your-file-system.com partition /vicepa RW Site
server bethlehem.your-file-system.com partition /vicepa RO Site
server faultline.your-file-system.com partition /vicepa RO Site
server cpe-24-193-47-88.nyc.res.rr.com partition /vicepa RO Site
...
just doesn't map well to single-line. We currently deal with this by =
creating four records, each will all the data from the rest of the =
output and the specifics of the four entries above.
Steve