• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 476
  • Last Modified:

Vmware Power CLI 4.1 Questions

I use vCenter 4.1 to mange a mix of ESX & ESXi 4.1 servers. I'm trying to get more familiar with Powercli and have the following questions.

1) I have but the 32 & 64 bit powercli installed on my vCenter server is there is there any functional difference between the two

2) Can I use PowerCLI t connect to my vCenter server to monitor and manage all of the ESX , ESXi and VM's ? Or do I need to directly connect to each server?

3) In PowerCLI, how can I search for a CMDLET but it's funcation like " process, state etc without knowing the exact name of the CMDLET?
0
compdigit44
Asked:
compdigit44
  • 2
  • 2
  • 2
1 Solution
 
Luciano PatrãoICT Senior Infraestructure  Engineer  Commented:
Hi

1) Can be some differences. Please read:

http://www.gregorystrike.com/2011/01/27/how-to-tell-if-powershell-is-32-bit-or-64-bit/
You can create a profile(profile.ps1) for 32-bit and 64-bit

2) You can connect to vCenter or host. It depends on the information that you want to list. Some information are only vCenter.

3)  Check here:

http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/index.html

Hope this can help

Jail
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
1. very little difference between the two.

2.Yes, you can connect to vCenter, and peform all tasks.

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

http://powergui.org/index.jspa

and

VMware Community Pack

http://www.virtu-al.net/featured-scripts/vmware-powerpack/

0
 
compdigit44Author Commented:
Thanks. I don't want to use any GUI's I want to force myself to learn the PowerShell command-line

In Linux I can us the 'apropos' command to look for a command based on the action I want to do. Does powershell have a similar feature.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
Luciano PatrãoICT Senior Infraestructure  Engineer  Commented:
Hi

Yes but first you need to learn witch Cmdlet do what. And for this, the best way if to check many scripts or GUI's that have lots of commands.

But if you want to list all the Cmdlet, just type Get-Command and will list all the Cmdlet   from the Powershell.

Jail
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If you do want a script, LucD (1 of *the* premier PowerCLI gurus; literally co-wrote the book on PowerCLI :) ) provides scripts in the following link:

http://communities.vmware.com/thread/271097?tstart=780
0
 
compdigit44Author Commented:
I took me a couple of minutes to see how PowerGUL but after installing it I see what you are talking about thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now