Backup::Omni::Session::Monitor - Monitor a running session
use Backup::Omni::Session::Monitor; my $monitor = Backup::Omni::Session::Monitor->new( -session => '2013/01/25-40' ); while ($monitor->running) { $device = monitor->device; printf("saveset position: %s", $device->done); sleep(10); } printf("session done\n");
This module will monitor and return information from a running session. It runs the omnistat command with the appropiate options. If any errors are encounterd, an exception is thrown.
This method will initialze the object. It takes one parameter.
The session id to monitor.
This method returns true if the session is "running".
The method returns a Backup::Omni::Session::Monitor::Device object. If the session has finished "running" it will return undef. See Backup::Omni::Session::Result to see how to get the results. This object has the following methods:
The device this session is running on.
The host the session is running on.
The session started using the device.
The time the session finished using the device or a '-'.
The number of bytes read from the device.
The actual physical device that is being used.
The status of the device.
The method returns a Backup::Omni::Session::Monitor::Object object. If the session has finished "running" it will return undef. See Backup::Omni::Session::Result to see how to get the results. This object has the following methods:
The name of the session object.
The object type.
The original session id for this object.
The datetime the restore started.
The datetime the backup started.
The objects level.
The number of warnings for this object.
The number of errors for this object.
The processed size of this object.
The device this object is using.
The status of the object.
Backup::Omni::Base Backup::Omni::Class Backup::Omni::Utils Backup::Omni::Constants Backup::Omni::Exception Backup::Omni::Restore::Filesystem::Single Backup::Omni::Session::Filesystem Backup::Omni::Session::Messages Backup::Omni::Session::Results
Kevin L. Esteb, <kesteb@wsipc.org>
Copyright (C) 2013 by WSIPC
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Backup::Omni, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Backup::Omni
CPAN shell
perl -MCPAN -e shell install Backup::Omni
For more information on module installation, please visit the detailed CPAN module installation guide.