S.Chandra Sekhar
S.Chandra Sekhar

Reputation: 503

How to run a command or execute script in remote machine using puppet bolt?

I'm trying to execute a command in remote machine using puppet bolt but I'm getting below errors in powershell.

bolt command run "Get-Process" --nodes winrm://localhost --no-ssl 

Error :

Unknown argument '--nodes'

bolt command run 'uname -a' --targets 192.168.0.145

Error:

Failed on 192.168.0.140: Timeout after 10 seconds connecting to 192.168.0.140
Failed on 1 target: 192.168.0.140
Failed on 192.168.0.140: Timeout after 10 seconds connecting to 192.168.0.140
Failed on 1 target: 192.168.0.140

How to fix above issues

Upvotes: 1

Views: 629

Answers (1)

NewYearNewMe2020
NewYearNewMe2020

Reputation: 113

Appears the current version changed "--nodes" to "--targets"

Upvotes: 1

Related Questions