getWWPN.pl

Version 1

    Script to extract WWPN from you vmhba's provided a list of ESX(i) hosts. This script could be re-written to query from a specific ESX(i) host but currently requires host to be connected and managed by vCenter. Useful script if you need to re-zone existing or new hosts

     

    Requirements:

    ESX(i) 3.5 or 4.0

    vCenter 2.5 or 4.0

    vSphere SDK for Perl or vMA 4.0

     

    Sample Execution:

     

    Input file which contains the list of ESX(i) hosts that is currently being managed by vCenter

    [vi-admin@scofield ~]$ cat hosts
    helga.primp-industries.com
    bertha.primp-industries.com
    
    

     

    Execute script against your vCenter that is managing the list of ESX(i) hosts

    [vi-admin@scofield ~]$ ./getWWPN.pl --server refelex.primp-industries.com --username primp --list hosts
    Enter password:
    
    helga.primp-industries.com-vmhba1    10:00:00:00:c9:79:c9:84
    helga.primp-industries.com-vmhba2    10:00:00:00:c9:79:c9:85
    bertha.primp-industries.com-vmhba1    10:00:00:00:c9:7d:74:e8
    bertha.primp-industries.com-vmhba2    10:00:00:00:c9:7d:74:e9