metatool-toolsmenu is an ASCII (text editable) file containing entries with variable numbers of fields. Each line in the file represents a single entry. Each line consists of fields separated by delimiter characters (`:' `|' `+' `^') and terminated with a newline.
The initial character of an entry indicates the delimeter that will be used for the remainder of the entry. There can be only one delimiter per entry.
Blank lines are allowed. Comments start with "#" and continue through the end of the line.
Entries in the metatool-toolsmenu file are of the form:
:<type>:<field>:...
where type indicates the entry type and format for the rest of the entry and field... indicates the data fields for the entry.
Currently, as of release 4.1, DiskSuite Tool recognizes only one entry type, `0'. This type specifies an entry consisting of two data fields:
:0:<name>:<commandline>:
where name indicates the string to be displayed in the Tools pulldown menu and commandline indicates the command line to be passed to system() when the menu item is selected. `:' is a field delimiter and can be one of: `+', `|', `:', or `^'.
metatool supports a small set of substitution variables that can be used in the command lines added to the registry in the form:
:0:File Manager...:/opt/SUNWadm/2.2/bin/stomgr -F -m $setname:
This example shows an entry for Disk Manager. You would see the string "Disk Manager" on the Tools pulldown menu. Choosing this selection would run the command /opt/SUNWadm/2.2/bin/stomgr -D.
:0:Disk Manager...:/opt/SUNWadm/2.2/bin/stomgr -D:
This example shows a sample registry file for metatool.
# Sample Registry for metatool
:0:File Manager...:/opt/SUNWadm/2.2/bin/stomgr -F -display $hostname:0.0: :0:Disk Manager...:/opt/SUNWadm/2.2/bin/stomgr -D -m $setname $selection:
Solstice DiskSuite User's Guide, Solstice DiskSuite Reference