Score:0

While using SSHPASS for remote command execution, the passed parameters in the command are not accepted by the remote computer and returns blank line

pt flag

While using SSHPASS for remote command execution, the passed parameters in the command are not accepted by the remote computer and return a blank line upon execution of the command. I am using arguments to pass values to Brocade Switch, which returns nothing.

sshpass -p $passwd ssh -o "StrictHostKeyChecking no" $username@$switch1 "alicreate '$hostali','$wwn'"

this doesn't return any value since it is creating them, but when I search for what I had created, I couldn't locate it with the $hostali value or $wwn value

At the same time, this command is returning the output:

sshpass -p $passwd ssh -o "StrictHostKeyChecking no" $username@$switch1 "nodefind  "$wwn1" |grep -i PortSymb"
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.