<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scripting via SSH in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387414#M16400</link>
    <description>&amp;gt; D-Link offers various DFL-class boxes. And they vary. Which D-Link DFL is involved here? &lt;BR /&gt;&lt;BR /&gt;DFL-1600&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Brute-force alternative: cURL?&lt;BR /&gt;&lt;BR /&gt;cURL to DFL' web management interface? It's the way I'm trying to bypass as it looks too complicated (java-script reverse engineering) and potentially unstable due to firmware updates.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The ssh manual points to the potential need for:&lt;BR /&gt;&amp;gt;  SSH -o "batchmode yes"&lt;BR /&gt;&lt;BR /&gt;yes, I tried it. It works correctly from the DCL command file but executes exactly one command in one connection. I need to issue bunch of commands in one connection, otherwise DFL rollback the change[s].&lt;BR /&gt;&lt;BR /&gt;&amp;gt; There are also open source versions of OpenSSH around that could be used for reference or for an alternative implementation.&lt;BR /&gt;&amp;gt; And if the OpenVMS box doesn't work sufficiently here for your needs, consider an alternate host operating system &lt;BR /&gt;&lt;BR /&gt;  Yes, I consider these ways as a last chance. I'm still trying to keep things tight as far as possible.</description>
    <pubDate>Fri, 27 Mar 2009 12:59:00 GMT</pubDate>
    <dc:creator>Valentin Likoum</dc:creator>
    <dc:date>2009-03-27T12:59:00Z</dc:date>
    <item>
      <title>Scripting via SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387410#M16396</link>
      <description>Hello,&lt;BR /&gt;We'd like to manage our network gear (D-link' DFL) from the VMS host. The only acceptable way we see is the interactive SSH session (issue a bunch of commands and analyze the results). But how can it be accoplished from the VMS? Plain SSH command (HP TCPIP 5.4) takes only one command to run, so unusefull. C-Kermit would be the ideal candidate for the job, but it doesn't support SSH in VMS version. What else? &lt;BR /&gt;"-S" switch of the SSH command looks promising but the documentation is too brief about it. &lt;BR /&gt;"Does not request a session channel. This type of session does not disconnect automatically.". But how can it be used?</description>
      <pubDate>Wed, 25 Mar 2009 07:40:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387410#M16396</guid>
      <dc:creator>Valentin Likoum</dc:creator>
      <dc:date>2009-03-25T07:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting via SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387411#M16397</link>
      <description>Sorry, I re-read my own question and found it not clear enough. We'd like to manage the device automatically from the script, not manually of cause. So the task is: &lt;BR /&gt; - make an SSH-connection to the device&lt;BR /&gt; - issue a bunch of commands in the same connection&lt;BR /&gt; - get the results</description>
      <pubDate>Thu, 26 Mar 2009 10:44:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387411#M16397</guid>
      <dc:creator>Valentin Likoum</dc:creator>
      <dc:date>2009-03-26T10:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting via SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387412#M16398</link>
      <description>D-Link offers various DFL-class boxes.  And they vary.  Which D-Link DFL is involved here?  &lt;BR /&gt;&lt;BR /&gt;Brute-force alternative: cURL?&lt;BR /&gt;&lt;BR /&gt;The ssh manual points to the potential need for:&lt;BR /&gt;&lt;BR /&gt;$ SSH -o "batchmode yes"&lt;BR /&gt;&lt;BR /&gt;There are also open source versions of OpenSSH around that could be used for reference or for an alternative implementation.&lt;BR /&gt;&lt;BR /&gt;And if you have an HP support contract, consider using it.&lt;BR /&gt;&lt;BR /&gt;And if the OpenVMS box doesn't work sufficiently here for your needs, consider an alternate host operating system and box to serve as the network administration and management gateway.   The minicom bits on an embedded box might be interesting and useful here and as a console server.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2009 12:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387412#M16398</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-03-26T12:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting via SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387413#M16399</link>
      <description>This can be easily scripted using paramiko Python module, a small example accessing a linux box from a VMS one:&lt;BR /&gt;&lt;BR /&gt;import paramiko&lt;BR /&gt;ssh = paramiko.SSHClient()&lt;BR /&gt;ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())&lt;BR /&gt;ssh.connect('rhost', username='usr', password='pwd')&lt;BR /&gt;stdin, stdout, stderr = ssh.exec_command("uptime")&lt;BR /&gt;print stdout.readlines()&lt;BR /&gt;ssh.close()&lt;BR /&gt;&lt;BR /&gt;give&lt;BR /&gt;[' 17:23:24 up 32 min,  1 user,  load average: 0.14, 0.33, 0.35\n']&lt;BR /&gt;&lt;BR /&gt;You can find more examples on&lt;BR /&gt;&lt;A href="http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/" target="_blank"&gt;http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jean-Francois&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2009 15:28:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387413#M16399</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2009-03-26T15:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting via SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387414#M16400</link>
      <description>&amp;gt; D-Link offers various DFL-class boxes. And they vary. Which D-Link DFL is involved here? &lt;BR /&gt;&lt;BR /&gt;DFL-1600&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Brute-force alternative: cURL?&lt;BR /&gt;&lt;BR /&gt;cURL to DFL' web management interface? It's the way I'm trying to bypass as it looks too complicated (java-script reverse engineering) and potentially unstable due to firmware updates.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The ssh manual points to the potential need for:&lt;BR /&gt;&amp;gt;  SSH -o "batchmode yes"&lt;BR /&gt;&lt;BR /&gt;yes, I tried it. It works correctly from the DCL command file but executes exactly one command in one connection. I need to issue bunch of commands in one connection, otherwise DFL rollback the change[s].&lt;BR /&gt;&lt;BR /&gt;&amp;gt; There are also open source versions of OpenSSH around that could be used for reference or for an alternative implementation.&lt;BR /&gt;&amp;gt; And if the OpenVMS box doesn't work sufficiently here for your needs, consider an alternate host operating system &lt;BR /&gt;&lt;BR /&gt;  Yes, I consider these ways as a last chance. I'm still trying to keep things tight as far as possible.</description>
      <pubDate>Fri, 27 Mar 2009 12:59:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387414#M16400</guid>
      <dc:creator>Valentin Likoum</dc:creator>
      <dc:date>2009-03-27T12:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting via SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387415#M16401</link>
      <description>&amp;gt; This can be easily scripted using paramiko Python module&lt;BR /&gt;&lt;BR /&gt;Jean-FranÃ§ois, thank you for reminder. I thought about Perl Net:SSH2 module (unfotunately it requires libssh2 library which should be found or ported myself) but definitly forgot about Python. It's worth a try. Does it require some other external libraries?</description>
      <pubDate>Fri, 27 Mar 2009 13:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387415#M16401</guid>
      <dc:creator>Valentin Likoum</dc:creator>
      <dc:date>2009-03-27T13:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting via SSH</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387416#M16402</link>
      <description>Valentin,&lt;BR /&gt;&lt;BR /&gt;Installation of Python required 2 LD images.&lt;BR /&gt;Installation documentation:&lt;BR /&gt;&lt;A href="http://www.vmspython.org/DownloadAndInstallationPython" target="_blank"&gt;http://www.vmspython.org/DownloadAndInstallationPython&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Jean-Francois</description>
      <pubDate>Fri, 27 Mar 2009 19:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scripting-via-ssh/m-p/4387416#M16402</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2009-03-27T19:02:07Z</dc:date>
    </item>
  </channel>
</rss>

