NAME

IBM::StorageSystem::Export - Class for operations with a IBM StorageSystem logical export entity

VERSION

Version 0.01

SYNOPSIS

IBM::StorageSystem::Export - Class for operations with a IBM StorageSystem logical export entity

        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 a listing of all configured exports containing the export name, the export path,
	# the export protocol and the export status.

	printf( "%-20s%-40s%-10s%-10s\n", 'Name', 'Path', 'Protocol', 'Active' );

	foreach my $export ( $ibm->get_exports ) { 
		print '-'x100,"\n";
		printf( "%-20s%-40s%-10s%-10s\n", $export->name, $export->path, $export->protocol, $export->active )
	}

	# Prints something like:
	#
	#Name                Path                                    Protocol  Active    
	# ----------------------------------------------------------------------------------------------------
	# homes_root          /ibm/fs1/homes                          NFS       true      
	# ----------------------------------------------------------------------------------------------------
	# shares_root         /ibm/fs1/shares                         NFS       true      
	# ----------------------------------------------------------------------------------------------------
	# test                /ibm/fs1/test                           CIFS      true      
	# ----------------------------------------------------------------------------------------------------
	# ... etc.

METHODS

name

Returns the export name.

path

Returns the export path relative to the local file system.

protocol

Returns the export protocol (e.g. NFS, CIFS, etc.).

active

Returns the export status.

timestamp

Returns a timestamp of the last time at which the export status and detail was internally checked and verified.

options

Returns the export options - for a CIFS export this includes the export root ACL and ownership, for an NFS export this includes all NFS options.

AUTHOR

Luke Poskitt, <ltp at cpan.org>

BUGS

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

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2013 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.