Obtain the output with robotframework of SSH session

Hi Carlos,

Sorry I made a mistake (That’s what I get for replying to posts at 1am :laughing: )

You need return_rc=True not return_stderr=True

Here’s an example:

*** Test Cases ***
Carlos Pitero 1
  Open Connection   ${IP}
  Login   ${User}   ${Password}
  ${output}   ${rc}=  Execute Command   ifconfig  return_rc=True
  Log   ${rc}
  IF    ${rc} == 0
    Log  command has been executed with success
  ELSE
    Log  command failed with error level ${rc}
  END
  Log   ${output}
  Close Connection

Dave.