Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Powershell running multiple commands

$
0
0
I'm getting the same errors when trying to push a firmware upgrade to a bunch of HP iLo's. It always seems to be the second runcommand.

Exception calling "RunCommand" with "1" argument(s): "An established connection was aborted by the software in your host machine."
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\SSH-Sessions\SSH-Sessions.psm1:line:272 char:66
  • $CommandObject = $global:SshSessions.$Computer.RunCommand( <<<< $Command)

    New-sshsession -computername $Line.RIB_IP_Address -username $UserName -password $Password
    Invoke-SshCommand -InvokeOnAll -command 'cd /map1/firmware1'
    Invoke-SshCommand -InvokeOnAll -command 'load -source http://xxxx.yyy.zzzz/ilo/ilo3_170.bin'
    Remove-SshSession $Line.RIB_IP_Address
I'm spinning my wheels here, I've tried trimming down my command to bare bones and it still doesn't work, suggestions?

Viewing all articles
Browse latest Browse all 1729

Trending Articles