On Feb 1, 2008, at 7:17 AM, Nicolas Dorfsman wrote: > Hi, > > I wrote an hobbit script around lunmap/hbamap commands to monitor > SAN health. > I'd like to add detail on what is being hosted by those luns. > > With svm metastat -p is helpful. > > With zfs, zpool status output is awful for script. > > Is there somewhere an utility to show zpool informations in a > scriptable format ?
What exactly do you want to display? We have the '-H' option to 'zfs list' and 'zfs get' for parsing. Feel free to experiment with the code to make zpool otuput more scriptable: http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/ zpool/zpool_main.c eric _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss