Luke Poskitt > IBM-StorageSystem-0.043 > IBM::StorageSystem::Task

Download:
IBM-StorageSystem-0.043.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source   Latest Release: IBM-StorageSystem-0.045

NAME ^

IBM::StorageSystem::Task - Class for operations with IBM StorageSystem tasks

VERSION ^

Version 0.01

SYNOPSIS ^

IBM::StorageSystem::Task - Class for operations with IBM StorageSystem tasks

        use IBM::StorageSystem;
        
        my $ibm = IBM::StorageSystem->new(      user            => 'admin',
                                        host            => 'my-v7000',
                                        key_path        => '/path/to/my/.ssh/private_key'
                                ) or die "Couldn't create object! $!\n";

        # Print the status of the SNAPSHOTS task
        my $snapshots = $ibm->task(SNAPSHOTS);
        print "Status: " . $snapshots->status . "\n";

        # Alternately
        print "Status: " . $ibm->task(SNAPSHOTS)->status . "\n";

        # Print the array status of all arrays in our system
        map { print "Array ", $_->mdisk_id, " status ", $_->status, "\n" } $ibm->get_arrays;

METHODS ^

name

Returns the task name.

description

Returns the task description.

status

Returns the task last run status.

last_run

Returns the time at which the task was last run.

runs_on

Returns the node on which the task runs.

type

Returns the task type, either CRON or GUI.

scheduled

Returns teh scheduled status of the task.

second

Returns the second at which the second at which the task is run - used in conjunction with the minute, hour, dayofmonth, dayofweek and month methods.

minute

Returns the minute at which the second at which the task is run - used in conjunction with the second, hour, dayofmonth, dayofweek and month methods.

hour

Returns the hour at which the second at which the task is run - used in conjunction with the second, minute, dayofmonth, dayofweek and month methods.

dayofmonth

Returns the day of the month at which the second at which the task is run - used in conjunction with the second, minute, hour, dayofweek and month methods.

dayofweek

Returns the day of the week at which the second at which the task is run - used in conjunction with the second, minute, hour, dayofmonth and month methods.

month

Returns the second at which the second at which the task is run - used in conjunction with the second, minute, hour, dayofmonth and dayofweek methods.

parameter

Returns and parameters for the task.

AUTHOR ^

Luke Poskitt, <ltp at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-ibm-v7000-task at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IBM-StorageSystem-Task. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc IBM::StorageSystem::Task

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

Copyright 2012 Luke Poskitt.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: