Knife ssh --manual-list syntax


#1

hi. i can’t seem to get to a happy syntax place when trying to use
–manual-list with knife ssh. below, i’m trying to ssh to 3 nodes. what’s the
correct way to wield this?

$ knife ssh -x root ‘uptime’ --manual-list db01 db02 db03
WARNING: Failed to connect to uptime – SocketError: getaddrinfo: Name or service not known

$ knife ssh --manual-list db01 db02 db03 -x root 'uptime’
db01 bash: db02: command not found

thanks
kallen


#2

Add quotes around the server list

knife ssh -m “db01 db02 db03” -x root uptime
On Apr 9, 2013 6:24 AM, kallen@groknaut.net wrote:

hi. i can’t seem to get to a happy syntax place when trying to use
–manual-list with knife ssh. below, i’m trying to ssh to 3 nodes. what’s
the
correct way to wield this?

$ knife ssh -x root ‘uptime’ --manual-list db01 db02 db03
WARNING: Failed to connect to uptime – SocketError: getaddrinfo: Name or
service not known

$ knife ssh --manual-list db01 db02 db03 -x root 'uptime’
db01 bash: db02: command not found

thanks
kallen


#3

hmm. yep, that works. i could swear i once tried that and it threw an error. but i was
probably in a hurry or fat fingered something. thanks!

On Tue, 09 Apr 2013, Maxime Brugidou wrote:

Add quotes around the server list

knife ssh -m “db01 db02 db03” -x root uptime
On Apr 9, 2013 6:24 AM, kallen@groknaut.net wrote:

hi. i can’t seem to get to a happy syntax place when trying to use
–manual-list with knife ssh. below, i’m trying to ssh to 3 nodes. what’s
the
correct way to wield this?

$ knife ssh -x root ‘uptime’ --manual-list db01 db02 db03
WARNING: Failed to connect to uptime – SocketError: getaddrinfo: Name or
service not known

$ knife ssh --manual-list db01 db02 db03 -x root 'uptime’
db01 bash: db02: command not found

thanks
kallen