IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  OpenSSH return codes

    Posted Thu January 04, 2007 05:05 PM

    Hello~

    I am trying to code based on the return codes from openssh:sftp and am seeing what looks like unusual behavior. If sftp fails to put a message because of directory or file permissions, it writes the error to ‘error’, but sends back a successful return code (0) in ‘status’. Is this expected behavior? Also it seems like the ssh connection information (whether verbose or not) is always written to ‘error’ whether the connection is successful or not. I can work around this, but wanted to know if this is the same behavior others are seeing. thanks.

    -Pat


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 2.  RE: OpenSSH return codes

    Posted Thu July 10, 2008 06:40 PM

    Pat,

    I am running into the exact same problem. Have you found a solution? If you have I would be very apprciative to know how you did it.

    Roy


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 3.  RE: OpenSSH return codes

    Posted Tue July 15, 2008 04:08 PM

    No I was not able to resolve this and had to code around the reply received in ‘error’. Apparently, if the ssh connection is successful, a ‘0’ is returned regardless of whether or not the actual file transfer was successful.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: OpenSSH return codes

    Posted Tue July 13, 2010 06:10 PM

    Hi All,

    I have all the necessary OpenSSH set up and able to login to SFTP host without password from cmd line also. The question is what is the difference between pub.openssh:sftp and pub.openssh:ssh services in OpenSSH package.
    I set the following values to list the files in pub.openssh:sftp service as
    remotehost to- xxx.xxx.xxx
    remotecmd to - ls abc/ where abc is my remote directory on SFTP host
    it is listing all the files.

    How to retrieve only files that are matching a particular pattern:confused:. I tried with many options on pub.openssh:ssh service as well but to no avail. Please help me out if some body has worked or has any work around to implement this scenario.

    Regards,
    Datta


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 5.  RE: OpenSSH return codes

    Posted Wed July 14, 2010 03:54 PM

    Hi Experts,

    Please help me!! Its pretty urgent.

    Regards,
    Datta


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 6.  RE: OpenSSH return codes

    Posted Fri July 16, 2010 12:27 PM

    Hi Experts,

    Can anyone help me with this.

    Regards,
    Datta


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: OpenSSH return codes

    Posted Tue June 26, 2012 03:41 PM

    Hi Datta,

    I am having the same requirement. I would like to get the output as list type when I execute the ls command and after that I want to retrieve files which have a particular pattern.

    How can we achieve this. Please let me know.
    Many Thanks.


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: OpenSSH return codes

    Posted Tue June 26, 2012 09:10 PM

    Basically, you’ll need to filter the list yourself. Then retrieve each file that passes the filter.


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods