EMC::WideSky::symmaskdb - Interface to Symmetrix device masking database
use EMC::WideSky::symmaskdb; $db=new EMC::WideSky::symmaskdb(); $db->parse_symmaskdb(); for $dev (sort keys %{$db}) { print "$dev:"; for $fa (keys %{$db->{$dev}}) { for $host (keys %{$db->{$dev}->{$fa}}) { for $hba (keys %{$db->{$dev}->{$fa}->{$host}}) { print " $fa/$host/$hba"; } } } print "\n"; }
This module, based on XML::Parser and WideSky Solution Enabler, will give you interface to the Symmetrix device masking database. It show relationship between directors and port on Symmetrix box and adapters on target hosts. It has been developed and tested under AIX 4.3.3 and 5.2, WideSky Solution Enabler 5.1.1.
Symmetrix box :-) VCM database enabled on port WideSky Solutions Enabler (with Device masking option licensed via symlmf) XML::Parser >=2.31
Make sure, that you have /opt/emc/WideSky/V*/bin in $PATH.
The installation works as usual:
perl Makefile.PL make make test make install
To initialize symmaskdb object: $db=new EMC::WideSky::symmaskdb(); To populate symmaskdb object: $db->parse_symmaskdb(%options); where valid options are: fa => 'regexp' ... regexp for restriction relevant Symmetrix ports host => 'regexp' ... regexp for restriction relevant target hosts by hostname hba => 'regexp' ... regexp for restriction relevant HBAs by hbaname wwn => 'regexp' ... regexp for restriction relevant HBAs by WWN
Copyright (c) 2003 Lukas Fiker. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
For any issues, problems, or suggestions for further improvements, please do not hesitate to contact me.
Lukas Fiker lfiker(at)email.cz
To install EMC::WideSky::symmaskdb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EMC::WideSky::symmaskdb
CPAN shell
perl -MCPAN -e shell install EMC::WideSky::symmaskdb
For more information on module installation, please visit the detailed CPAN module installation guide.