Wednesday, September 05, 2007

Script to List Installed Perl Modules


On the CPAN site, there’s a script that lists what modules are installed in your perl path:
http://www.cpan.org/misc/cpan-faq.html#How_installed_modules

Here’s the script... (Of course, you’ll have to modify /usr/local/bin/perl to whatever the path for your perl deployment is in)

#!/usr/local/bin/perl

use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
      print "$module -- $version\n";
}

Tuesday, August 21, 2007

Misc. SAN / FC Commands


Just a collection of commands I use in Solaris 10 to admin our SAN connections and disks:

fcinfo - display information about HBA and fibre channel targets conntected to the HBAs

bash-3.00# fcinfo hba-port
HBA Port WWN: 210000e08b89107e
OS Device Name: /dev/cfg/c0
Manufacturer: QLogic Corp.
Model: QLE2460
Firmware Version: 4.0.23
FCode/BIOS Version: QLE2460 Host Adapter Driver(SPARC): 1.11 10/03/05
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 200000e08b89107e