Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

SSH Session from Powercli

$
0
0

Hi,

 

I manage to connect the esxi 4.1 hosts over ssh using powercli by following the instruction mentioned in the link:

 

http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library#General_Information

 

It is working perfectly but the for certain commands where $ is involved it is not working. Command is as shown below:

 

Invoke-SSHCommand -InvokeOnAll -Command 'esxcfg-vswitch -l | grep vSwitch | awk '{print $1,$2}'''

 

Anyone has any idea to follow any specific format for such commands.


Viewing all articles
Browse latest Browse all 193198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>