I have several controllers and it would be nice if I could run the commands through my Compellent Enterprise Manager. I was unable to find anything in the documentation, is that possible or am I doing something wrong?
Did you eventually get an answer to this question or figure out the issue?
Am using Powershell with Compellent for the first time too and having the same problems with connection... might be worth mentioning am connecting as a "reporter" user.
It is not possible to run commands through the Enterprise Manager using PowerShell or the Storage Center Command Set. What specifically are you trying to do through Enterprise Manager?
Kathy, What kind of errors are you seeing when trying to log in using a "reporter" user?
I guess it's worth mentioning, I only have reporter rights, but I would have thought this would still allow me to run reports and the get-sc* commands.
Once you invoke the PowerShell command prompt, here is an example of a script that I use to connect to my array(s) and run whatever PowerShell SC commands:
$user = Read-Host -Prompt "Please enter username"
$pass = Read-Host -AsSecureString -Prompt "Please enter password"
Once that script completes, you will be connected to any/all of the arrays that you specify in the Get-Connection lines above (add as many as you need). Next, you will need to specify the connection that you want to run the command(s) against by invoking something like:
I just managed to find an article this morning online showing a script with the "-save" switch in it. Realised that I had to use the IP address of the controller also, not enterprise manager, and eventually got connected!!
Your script is perfect though and would have helped me heaps!
I am not sure though how the $X variable is of use?? Confused me a little.
BTW, if you are not already using the Storage Center Command Set 7.x, I highly recommend that you download it from the KC and start using it. It adds several new commands that I have found to be very useful.
In this line we’re using PowerShell’s automatic variable $host (which is actually an instance of the .NET Framework class System.Management.Automation.Host) and the ReadKey method. (Which is actually a method of the RawUI property, which is a property of the UI property, which is a property of $host. And the leg bone’s connected to the knee bone, the knee bone’s connected to the ankle bone, the ….) The ReadKey method enables us to get information about the key that has just been pressed. Of course, in this case the only information we care about is the fact that a key has been pressed. Therefore, we pass ReadKey two parameters:
NoEcho. This prevents any information from appearing on screen when the user presses a key. If you leave out this parameter the pressed key will be echoed back to the screen.
IncludeKeyDown. This tells the script to continue as soon as a key has been pressed; that means the script will continue even if the user presses and holds a key down. If you’d prefer to wait until the user has released the key, then use this parameter instead: IncludeKeyUp.
Kathy_H
11 Posts
2000
0
Posted April 5th, 2013 08:00
Did you eventually get an answer to this question or figure out the issue?
Am using Powershell with Compellent for the first time too and having the same problems with connection... might be worth mentioning am connecting as a "reporter" user.
Many Thanks.
Kathy