SDP::OESLinux - The Support Diagnostic Pattern perl library for Open Enterprise Server for Linux
use SDP::OESLinux;
Provides necessary functions specific to patterns requiring OES for Linux functionality.
Creates an array of hashes with NSS volumes and their attributes. Attributes are defined as the hash keys.
my $i; my @NSS_VOLUMES = SDP::OESLinux::getNssVolumes(); for $i (0 .. $#NSS_VOLUMES) { print("Volume: $NSS_VOLUMES[$i]{'name'}\n"); } $i = $#NSS_VOLUMES + 1; print("Volumes Found: $i\n");
None
An array of hashes.
None
name (The NSS volume name)
state (The current volume state, ususally ACTIVE)
attribute (If a volume attribute exists, the hash key is the attribute name with a value of 1; otherwise no key is defined.)
Returns true is Novell Cluster Services is active on the server, otherwise it returns false.
if ( SDP::OESLinux::ncsActive() ) { SDP::Core::updateStatus(STATUS_SUCCESS, "NCS is Active on the Server"); } else { SDP::Core::updateStatus(STATUS_WARNING, "NCS is NOT active on the Server"); }
None
0 = NCS Not Active
1 = NCS Active
None
Checks for DSfW capabilities from the LDAP root DSE server in novell-lum.txt file.
if ( SDP::OESLinux::dsfwCapable() ) { SDP::Core::updateStatus(STATUS_SUCCESS, "Server is DSfW Capable"); } else { SDP::Core::updateStatus(STATUS_WARNING, "Server is not DSfW Capable"); }
None
0 = No DSfW
1 = DSfW capable
None
Checks for DSfW capabilities from the LDAP root DSE server in novell-lum.txt file.
if ( SDP::OESLinux::shadowVolumes() ) { SDP::Core::updateStatus(STATUS_SUCCESS, "Server is DSfW Capable"); } else { SDP::Core::updateStatus(STATUS_WARNING, "Server is not DSfW Capable"); }
None
0 = No Dynamic Storeage Technology Shadow Volumes in use
1 = Shadow Volumes in use
None
Checks to see if iPrint has been configured in a clustered environment.
my $IPNCS = SDP::OESLinux::iPrintClustered(); if ( $IPNCS > 0 ) { SDP::Core::updateStatus(STATUS_SUCCESS, "iPrint is Clustered"); } elsif ( $IPNCS < 0 ) { SDP::Core::updateStatus(STATUS_ERROR, "ERROR: Invalid iPrint Cluster Configuration"); } else { SDP::Core::updateStatus(STATUS_WARNING, "iPrint is NOT Clustered"); }
None
-1 = Invalid cluster configuration
0 = iPrint is not clustered
1 = iPrint is clustered
None
Jason Record <jrecord@novell.com>
Copyright (C) 2009,2010-2013 Novell, Inc.
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; version 2 of the License.
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/>.