NAME

SDP::OESLinux - The Support Diagnostic Pattern perl library for Open Enterprise Server for Linux


SYNOPSIS

use SDP::OESLinux;


DESCRIPTION

Provides necessary functions specific to patterns requiring OES for Linux functionality.


FUNCTIONS: Information Gathering


getNssVolumes

Description

Creates an array of hashes with NSS volumes and their attributes. Attributes are defined as the hash keys.

Usage
        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");
Input

None

Output

An array of hashes.

Requires

None

Hash Keys for Volumes

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.)


ncsActive

Description

Returns true is Novell Cluster Services is active on the server, otherwise it returns false.

Usage
        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");
        }
Input

None

Output

0 = NCS Not Active

1 = NCS Active

Requires

None


dsfwCapable

Description

Checks for DSfW capabilities from the LDAP root DSE server in novell-lum.txt file.

Usage
        if ( SDP::OESLinux::dsfwCapable() ) {
                SDP::Core::updateStatus(STATUS_SUCCESS, "Server is DSfW Capable");
        } else {
                SDP::Core::updateStatus(STATUS_WARNING, "Server is not DSfW Capable");
        }
Input

None

Output

0 = No DSfW

1 = DSfW capable

Requires

None


shadowVolumes

Description

Checks for DSfW capabilities from the LDAP root DSE server in novell-lum.txt file.

Usage
        if ( SDP::OESLinux::shadowVolumes() ) {
                SDP::Core::updateStatus(STATUS_SUCCESS, "Server is DSfW Capable");
        } else {
                SDP::Core::updateStatus(STATUS_WARNING, "Server is not DSfW Capable");
        }
Input

None

Output

0 = No Dynamic Storeage Technology Shadow Volumes in use

1 = Shadow Volumes in use

Requires

None


iPrintClustered

Description

Checks to see if iPrint has been configured in a clustered environment.

Usage
        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");
        }
Input

None

Output

-1 = Invalid cluster configuration

0 = iPrint is not clustered

1 = iPrint is clustered

Requires

None


CONTRIBUTORS

Jason Record <jrecord@novell.com>


COPYRIGHT

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/>.