NAME

IBM::StorageSystem::Replication - Class for operations with IBM StorageSystem asynchronous replications

VERSION

Version 0.01

SYNOPSIS

IBM::StorageSystem::Replication - Class for operations with IBM StorageSystem asynchronous replications

        use IBM::StorageSystem;
        use Date::Calc qw(date_to_Time Today_and_Now);

        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";

	# Generate an alert for any replication errors in the last six hours

	foreach my $task ( $ibm->get_replications ) {

		if ( $repl->status eq 'ERROR' and ( Date_to_Time( Today_and_Now ) 
			- ( Date_to_Time( split /-| |\./, $repl->time ) ) ) > 21_600 ) {
			alert( "Replication failure for filesystem " . $repl->filesystem . 
				" - log ID: " . $repl->log_id . )
		}

	}
	

METHODS

filesystem

The name of the filesystem on which the replication is configured.

log_id

Returns the event log entry identifer for the replication task.

status

Returns the replication task completion status.

description

Returns a description of the replication task outcome.

time

Returns the completion time of the replication task in the format 'YYYY-MM-DD HH:MM:SS';

AUTHOR

Luke Poskitt, <ltp at cpan.org>

BUGS

Please report any bugs or feature requests to bug-ibm-v7000-replication at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IBM-StorageSystem-Replication. 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::Replication

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.