VMware Cloud Community
GaneshNetworks
Jump to solution

Wanna list WWPN numbers of all ESX 3.5 in a single click

In my VMware environment, i am managing around 250+ ESX 3.5 servers. Now i am into the documentation work of all ESX servers. I want to list out WWPN numbers of all 250+ ESX servers with its corresponding hostname.

It would be most appreciated, if anyone make my job easy ( Expecting in a single click ).

Thanks,

GaneshNetworks

~GaneshNetworks™~ If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

Hi Ganesh,

I know you're new to scripting, but I think the document that I linked to provides pretty good details on what is needed to use the script and the requirements, it does not make sense for me to repeat what's already there.

1. You can run it on vCenter Server if you like, the requirement is that you have the vCLI installed. You definitely can not run it from the ESX host directly. The recommended approach is to install the vCLl (comes in both Windows & Linux) on another management system that can communicate to your vCenter Server network.

2. This is the list of hosts that is attached to your vCenter Server, you should use the display name that is used when connecting your ESX or ESXi host to vCenter and generally that should be FQDN

3. RCLI no longer exists, that was the old name for the VI 3.5 days. As of vSphere, the newly dubbed name is vCLI. The vCLI uses the vSphere SDK for Perl which is the vSphere SDK bindings for Perl. The vCLI is really just a small set of Perl scripts that emulate the well known esxcfg-* commands found in the classic ESX Service Console, these were mainly created to remotely manage ESXi hosts but can be used to manage/configure ESX as well. These were dubbed vCLI scripts or utilities.

Hopefully this answers your questions and I really recommend you take a look at the example in the document on how to execute this.

For more information about vCLI and vSphere SDK for Perl, take a look at these articles on my blog:

http://www.virtuallyghetto.com/p/vmware-vcli-rcli.html

http://www.virtuallyghetto.com/p/vmware-vsphere-sdk-for-perl-vi-perl.html

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
6 Replies
lamw
Community Manager
Community Manager
Jump to solution

Not in a single click, but you can easily query for the WWPN using this script -

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
GaneshNetworks
Jump to solution

This script will give only the WWPNs of the current host, where i run this script. But my requirement is, want to get WWPNs of ALL servers configured in my VC.

Is it possible? If yes, Please i wanna brief explanation. (With example output, if you can. Because am newbie for this stuff).

Thanks,

GaneshNetworks

~GaneshNetworks™~ If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

The script does exactly what you've requested, you should carefully read through the script document which includes an example.

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

GaneshNetworks
Jump to solution

I have all requirement things such as ESX servers, VC server and vSphere SDK for perl / Remote CLI.

Could you please clear my following doubts:

1. From where to run the script, either VC server or ESX server?

2. Which "hosts" file do i need to add all virtual machine name, either in VC server' or anyone of the ESX server?

3. Are the "Remote CLI" and "vSphere SDk for perl" same?

I am very new to this scripting stuffs. So please give more information on this.

Thanks,

Ganesh

~GaneshNetworks™~ If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
0 Kudos
GaneshNetworks
Jump to solution

I have all requirement things such as ESX servers, VC server and vSphere SDK for perl / Remote CLI.

Could you please clear my following doubts:

1. From where to run the script, either VC server or ESX server?

2. Which "hosts" file do i need to add all virtual machine name, either in VC server' or anyone of the ESX server?

3. Are the "Remote CLI" and "vSphere SDk for perl" same?

I am very new to this scripting stuffs. So please give more information on this.

Thanks,

Ganesh

~GaneshNetworks™~ If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

Hi Ganesh,

I know you're new to scripting, but I think the document that I linked to provides pretty good details on what is needed to use the script and the requirements, it does not make sense for me to repeat what's already there.

1. You can run it on vCenter Server if you like, the requirement is that you have the vCLI installed. You definitely can not run it from the ESX host directly. The recommended approach is to install the vCLl (comes in both Windows & Linux) on another management system that can communicate to your vCenter Server network.

2. This is the list of hosts that is attached to your vCenter Server, you should use the display name that is used when connecting your ESX or ESXi host to vCenter and generally that should be FQDN

3. RCLI no longer exists, that was the old name for the VI 3.5 days. As of vSphere, the newly dubbed name is vCLI. The vCLI uses the vSphere SDK for Perl which is the vSphere SDK bindings for Perl. The vCLI is really just a small set of Perl scripts that emulate the well known esxcfg-* commands found in the classic ESX Service Console, these were mainly created to remotely manage ESXi hosts but can be used to manage/configure ESX as well. These were dubbed vCLI scripts or utilities.

Hopefully this answers your questions and I really recommend you take a look at the example in the document on how to execute this.

For more information about vCLI and vSphere SDK for Perl, take a look at these articles on my blog:

http://www.virtuallyghetto.com/p/vmware-vcli-rcli.html

http://www.virtuallyghetto.com/p/vmware-vsphere-sdk-for-perl-vi-perl.html

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos