
Solaris::Disk::SVM::Graph - Graph your Solaris Volume Manager configurations

my $graph = Solaris::Disk::SVM::Graph->new(
sourcedir => 'path/to/dir', # path to SVM config files,
# see Solaris::Disk::SVM for details
fontname => 'fontname',
fontsize => 'fontsize',
);
$graph->output(); # output the whole SVM config to svm.png
# output whole configuration
$graph->output(
output => '/path/to/image.svg',
# format deduced from file name, if format
# is not present
format => 'png', # or anything accepted by GraphViz,
# extension will be appended to output filename
);
# output one device
$graph->output( objects => 'd10' ); # d10 object with sub-devices to d10.png
# output many devices on same graph
$graph->output( objects => [ 'd10', 'd11' ] );
# output one device specifying output file name & format
$graph->output(
objects => 'd10'
output => '/path/to/image.svg',
format => 'png',
);

The new method loads the SVM configuration using Solaris::Disk::SVM.
The new method accepts the following named parameters:
See Solaris::Disk::SVM. The source directory when using a predumped disk configuration to graph.
Font name to use.
Font size to use.
The output method accepts the following named parameters:
name of the file to output. This filename may have a significant extension to GraphViz (see below)
Default: svm.png
File format of the graphic, as accepted by GraphViz. This adds an extension to the output file name.
Default: png
If specified, only graph the specified SVM objects.
Objects may be a scalar (containing the name), or a reference to an array, containing the objects names.
Default: graph all objects.
Graph orientation. See rankdir in GraphViz
0 => horizontal juxtaposition of verticaly oriented graphs.
1 => vertical juxtaposition of horizontaly oriented graphs.
Page width, in inches (the default unit of graphviz).
Page height, in inches (the default unit of graphviz).
Returns the module version

Jérôme Fenal <jfenal@free.fr>

Head to http://jfenal.free.fr/Solaris/ to see some sample graphics.

This is version 0.03 of the Solaris::Disk::SVM::Graph script.

Copyright (C) 2004, 2005 Jérôme Fenal. All Rights Reserved
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

is used to retrieve information about the SVM configuration.
is used to get raw disk partitions.
is used to get current mounted devices.
metastat(1M), metatool(1M), etc.