I'm having problem with multiple sessions when opening some PowerCLI windows...
I open a session with "connect-viserver -server ....." and close with "disconnect-viserver" but the session remains at the vcenter.
We have the 4.1 vCenter version.
If someone is passing through the same problem, let's share!
Are you sure the session is disconnected ?
What is in
$defaultViServers
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Are you sure the session is disconnected ?
What is in
$defaultViServers
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thats weird...
[vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scrip
ts> $defaultviserversName Port User
---- ---- ----
bbavcdp1 443 nt\gastela
[vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scrip
ts> disconnect-viserver
Disconnect-VIServer : 4/27/2012 11:09:42 AM Disconnect-VIServer Power
CLI is currently not connected to a server. To create a new connection use Conn
ect-VIServer.
At line:1 char:19
+ disconnect-viserver <<<<
[vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scrip
ts> $defaultviservers
[vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scrip
ts>
when i run the disconnect command, it returns no conection...
How long ago was that session established ?
Do you see the same when you do
Connect-VIServer -Server bbavcdp1
$defaultVIServers
Disconnect-VIServer -Server bbavcdp1
$defaultVIServers
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Well, i've found the problem.
That was another people using the same user to access the vcenter.. :smileyplain: