VMware

getWWPN.pl

VERSION 1 Published

Created on: Sep 9, 2009 1:47 PM by lamw - Last Modified:  Sep 9, 2009 1:55 PM by lamw

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 

Attachments:
Average User Rating
(0 ratings)




Comments

There are no comments on this document

 

Incoming Links

Developer Social Media

Communities