The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Illumos::SMF - SMF control object

SYNOPSIS

 use Illumos::SMF;
 ...
 my $smf = Illumos::SMF->new(zonesupport => 1, debug => 0);
 ...

DESCRIPTION

object to manage SMF

ATTRIBUTES

zonesupport

if enabled, SMF can handle FMRI in zones

debug

print debug information to STDERR

METHODS

refreshFMRI

refreshs the instance

listFMRI

lists all child entities of a FMRI. lists instances only if 'instancesonly' is set.

fmriExists

checks if the FMRI exists

fmriState

returns the state of the FMRI

fmriOnline

checks if the FRMI is online

enable

enables the FMRI

disable

disables the FMRI

restart

restarts the FMRI

propertyExists

checks whether a property or property group exists or not

addFMRI

adds an FMRI to SFM

deleteFMRI

removes an FMRI from SMF

addInstance

adds an instance to an existing FMRI

getPropertyGroups

returns a list of property groups

propertyExists

returns whether a property exists or not

propertyGroupExists

returns whether a property group exists or not

addPropertyGroup

adds a property group to a FMRI

deletePropertyGroup

deletes a property group from a FMRI

setProperty

sets a property of a FMRI

setProperties

sets a set of properties of a property group of a FMRI

getProperties

gets the set of properties of a property group of a FMRI

setFMRIProperties

sets all properties of a FMRI

getFMRIProperties

gets all properties of a FMRI

COPYRIGHT

Copyright (c) 2015 by OETIKER+PARTNER AG. All rights reserved.

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

AUTHOR

Dominik Hassler <hadfl@cpan.org>, Tobias Oetiker <tobi@oetiker.ch>

HISTORY

2015-05-07 had Initial Version