Forum Discussion

mhashemi's avatar
4 years ago

Trouble with Fortigate PropertySource script

I am trying to write a Groovy PropertySource script, which will SSH into Fortigate devices and return the list of available VDOMs. In Putty, I would run the command     config vdom -> Ent...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hm, so the issue is that, when executing these commands manually, the question mark itself prompts a response from the target device. I'm not familiar with the library used to perform the SSH session here, but the target device should receive the question mark and spit out the output the same. Do you need to get the output stream instead of the input stream?

        def rawOut = cmd.getInputStream().text
    

    Like i said, not familiar with that particular method of connecting via SSH. I use JSch or Expect.