<?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: PLINK on OpenVMS in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793504#M41600</link>
    <description>If you want to use Python, in the standard Python for VMS, you have paramiko, &lt;BR /&gt;&lt;BR /&gt;Paramiko is a module that implements the SSH2 protocol for secure (encrypted and authenticated) connections to remote machines &lt;BR /&gt;&lt;BR /&gt;see&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;and&lt;BR /&gt;&lt;A href="http://www.lag.net/paramiko/" target="_blank"&gt;http://www.lag.net/paramiko/&lt;/A&gt;</description>
    <pubDate>Wed, 01 Jun 2011 08:44:11 GMT</pubDate>
    <dc:creator>labadie_1</dc:creator>
    <dc:date>2011-06-01T08:44:11Z</dc:date>
    <item>
      <title>PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793492#M41588</link>
      <description>I have the following setup of servers: several Itaniums with OpenVMS 8.3-1H1 with no connection between them, so no possibility of using SYSMAN. &lt;BR /&gt;This can't be modified as it is a requirement from customer to have the servers separated.&lt;BR /&gt;I can only ssh (no telnet) to each server.&lt;BR /&gt;&lt;BR /&gt;I am using PLINK as a replacement for SYSMAN but I have the following annoyances:&lt;BR /&gt; -I cannot use input file with commands (-m). The error is always &lt;BR /&gt;%DCL-W-IVKEYW, unrecognized keyword - check validity and spelling&lt;BR /&gt; \TIME&lt;BR /&gt;SHO\&lt;BR /&gt;IF I add a "$" is the same error:&lt;BR /&gt;&lt;BR /&gt;%DCL-W-IVVERB, unrecognized command verb - check validity and spelling&lt;BR /&gt; \$\&lt;BR /&gt;&lt;BR /&gt;The only way I can run commands is as an argument to the plink command, between double quotes. &lt;BR /&gt;Example:&lt;BR /&gt;C:\Putty&amp;gt;plink -l myuser -pw mypass server "show time" &lt;BR /&gt; -If I need to use doublequotes inside doublequotes it's more complicated as I have to escape them:&lt;BR /&gt;C:\Putty&amp;gt;plink -l myuser -pw mypass server "write sys$output f$getsyi("""boottime""")"&lt;BR /&gt;&lt;BR /&gt; -If I want to run multiple commands, it can be very long piped commands&lt;BR /&gt;&lt;BR /&gt;Anyone is using PLINK with VMS and found a solution for these issues?&lt;BR /&gt;Or any other software able to run multiple commands from windows to VMS server via SSH?&lt;BR /&gt;&lt;BR /&gt;The purpose is just automation of some administrative tasks, from basic commands to more complex (installation of patches, for example).</description>
      <pubDate>Mon, 30 May 2011 14:40:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793492#M41588</guid>
      <dc:creator>cdan</dc:creator>
      <dc:date>2011-05-30T14:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793493#M41589</link>
      <description>&lt;!--!*#--&gt;I know nothing, but ...&lt;BR /&gt;&lt;BR /&gt;Why not use a plain-old interactive SSH&lt;BR /&gt;session?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; -I cannot use input file with commands (-m).&lt;BR /&gt;&lt;BR /&gt;With my weak psychic powers, I can't see&lt;BR /&gt;what's in your file.  Plink apparently has a&lt;BR /&gt;"-v" ("show verbose messages") option, which&lt;BR /&gt;might offer some clues about what the program&lt;BR /&gt;is doing.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; -If I need to use doublequotes inside&lt;BR /&gt;&amp;gt; doublequotes it's more complicated [...]&lt;BR /&gt;&lt;BR /&gt;As I recall, _you_'re the one who dragged the&lt;BR /&gt;Windows shell into this task.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The purpose is just automation of some&lt;BR /&gt;&amp;gt; administrative tasks, from basic commands&lt;BR /&gt;&amp;gt; to more complex (installation of patches,&lt;BR /&gt;&amp;gt; for example).&lt;BR /&gt;&lt;BR /&gt;That description is a bit too vague to reveal&lt;BR /&gt;why Plink instead of SSH.  A DCL procedure on &lt;BR /&gt;the remote VMS system might be easier to&lt;BR /&gt;manage than a DCL procedure on the local&lt;BR /&gt;Windows system.&lt;BR /&gt;&lt;BR /&gt;I don't run it (or much else) on Windows, but&lt;BR /&gt;you might find Kermit scripting useful in a&lt;BR /&gt;case like this.</description>
      <pubDate>Mon, 30 May 2011 17:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793493#M41589</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-05-30T17:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793494#M41590</link>
      <description>I know nothing either, but openVMS Management Station (&lt;A href="http://h71000.www7.hp.com/openvms/products/argus/index.html)" target="_blank"&gt;http://h71000.www7.hp.com/openvms/products/argus/index.html)&lt;/A&gt; is supposed to be good for something.  Is it this?&lt;BR /&gt;</description>
      <pubDate>Mon, 30 May 2011 19:45:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793494#M41590</guid>
      <dc:creator>RBrown_1</dc:creator>
      <dc:date>2011-05-30T19:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793495#M41591</link>
      <description>Steven, thank you for your answer.&lt;BR /&gt;Here are the details you asked:&lt;BR /&gt;&amp;gt; Why not use a plain-old interactive SSH&lt;BR /&gt;session?&lt;BR /&gt; Because I'd like to avoid connecting many times and doing the same think all over again. I also looked into the possibility to automate the SSH login without password using public hostkey, but unfortunately this is not acceptable by my client's security. &lt;BR /&gt;Sometimes I need to generate the output from all servers in one file then import data in excel (for example CSV formatted data like free space on disks, output from monitoring of CPU and other capacity planning data).  &lt;BR /&gt;&lt;BR /&gt;&amp;gt;A DCL procedure on&lt;BR /&gt;the remote VMS system might be easier to&lt;BR /&gt;manage than a DCL procedure on the local&lt;BR /&gt;Windows system.&lt;BR /&gt;&lt;BR /&gt;You're right and that's how I do most of the repeating stuff, like capacity reports.   &lt;BR /&gt;The -m option will be useful for various commands which I might need one day or another. It's easier to modify one file on windows than copy the same file on x servers. And anyway, it's strange that -m option is working on a linux box (I tried it), but not on VMS. Right now I am more interested about the theoretical possibility of using the -m and not about some specific script. &lt;BR /&gt; &lt;BR /&gt;With -v, the output is not much more helpful.&lt;BR /&gt;Example with file commands.txt containing:&lt;BR /&gt;show time&lt;BR /&gt;show system/noprocess&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Looking up host "10.10.10.2"&lt;BR /&gt;Connecting to 10.10.10.2 port 22&lt;BR /&gt;Server version: SSH-2.0-3.2.0 SSH Secure Shell OpenVMS V5.6 VMS_sftp_version 2&lt;BR /&gt;We claim version: SSH-2.0-PuTTY_Release_0.60&lt;BR /&gt;Using SSH protocol version 2&lt;BR /&gt;Using Diffie-Hellman with standard group "group1"&lt;BR /&gt;Doing Diffie-Hellman key exchange with hash SHA-1&lt;BR /&gt;Host key fingerprint is:&lt;BR /&gt;ssh-dss 2048 d0:ed:5b:8b:35:f2:6c:5e:df:4b:08:29:31:48:bd:34&lt;BR /&gt;Initialised AES-256 CBC client-&amp;gt;server encryption&lt;BR /&gt;Initialised HMAC-SHA1 client-&amp;gt;server MAC algorithm&lt;BR /&gt;Initialised AES-256 CBC server-&amp;gt;client encryption&lt;BR /&gt;Initialised HMAC-SHA1 server-&amp;gt;client MAC algorithm&lt;BR /&gt;Using username "system".&lt;BR /&gt;Sent password&lt;BR /&gt;Access granted&lt;BR /&gt;Opened channel for session&lt;BR /&gt;Started a shell/command&lt;BR /&gt;&lt;BR /&gt;%DCL-W-IVKEYW, unrecognized keyword - check validity and spelling&lt;BR /&gt; \TIME&lt;BR /&gt;Server sent command exit status 0&lt;BR /&gt;Disconnected: All channels closed&lt;BR /&gt;&lt;BR /&gt;As far as I experimented, the spaces and the CR/LF from the commands.txt are not parsed correctly.&lt;BR /&gt;&lt;BR /&gt;Another example: a file containing only the following line, will have the expected output:&lt;BR /&gt;mc authorize show system&lt;BR /&gt;But if the file contains following 2 rows:&lt;BR /&gt;mc authorize show system&lt;BR /&gt;tcpip show services&lt;BR /&gt;&lt;BR /&gt;This will fail with the error:&lt;BR /&gt;Started a shell/command&lt;BR /&gt;&lt;BR /&gt;%CLI-W-IVQUAL, unrecognized qualifier - check validity, spelling, and placement&lt;BR /&gt; \BR&lt;BR /&gt;Server sent command exit status 0&lt;BR /&gt;&lt;BR /&gt;About Kermit I don't know, I will have to search.</description>
      <pubDate>Mon, 30 May 2011 21:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793495#M41591</guid>
      <dc:creator>cdan</dc:creator>
      <dc:date>2011-05-30T21:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793496#M41592</link>
      <description>RBrown, thank you, I downloaded the Alpha version and I will test it.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 May 2011 21:43:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793496#M41592</guid>
      <dc:creator>cdan</dc:creator>
      <dc:date>2011-05-30T21:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793497#M41593</link>
      <description>I'm not familiar with "plink", but the issue you describe sounds like your command string is being unquoted somewhere along the path, possibly multiple times. Similar things happen with plain old RSH commands.&lt;BR /&gt;&lt;BR /&gt;You may be able to simplify things by writing a DCL jacket around "plink" which can build the appropriately quoted string to pass to plink. It could also hide the username, password and node list. Something like:&lt;BR /&gt;&lt;BR /&gt;$ MYPLINK YOUR COMMAND HERE&lt;BR /&gt;&lt;BR /&gt;Within the constraints of the DCL 8 parameter limit (16 on V8.4), you might not need to put quotes around the whole command. Concatenate the parameters delimited with spaces, then walk along the resulting string doubling up double quotes as needed, then quote the whole string and feed it to plink.&lt;BR /&gt;&lt;BR /&gt;Note there may be a 256 character limit to the whole command string, as there is with RSH (it's actually something weird like 253). If your very long piped commands are longer than the limit, you may have to generate a temporary command procedure, ship it across to the other node and have it executed.</description>
      <pubDate>Tue, 31 May 2011 01:08:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793497#M41593</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2011-05-31T01:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793498#M41594</link>
      <description>You said you have "several Itaniums with OpenVMS 8.3-1H1 with no connection between them, so no possibility of using SYSMAN."&lt;BR /&gt;&lt;BR /&gt;Does this mean that these servers have no network connectivity between them at all, i.e. you can't use FTP or any other TCP/IP service between servers?&lt;BR /&gt;&lt;BR /&gt;If they *do* have TCP/IP connectivity between them you should be able to configure DECnet-Plus on each server, which will allow DECnet applications (such as SYSMAN) to be sued.  They will use TCP port 399.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jeremy Begg</description>
      <pubDate>Tue, 31 May 2011 02:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793498#M41594</guid>
      <dc:creator>Jeremy Begg</dc:creator>
      <dc:date>2011-05-31T02:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793499#M41595</link>
      <description>@Jeremy &lt;BR /&gt; No TCPIP, no Decnet, no eth frames, nada.&lt;BR /&gt; Don't ask me to argue with the architect, already did that with no result. &lt;BR /&gt;&lt;BR /&gt;BTW, for those unfamiliar with PLINK, it is part of the Putty open source project. &lt;BR /&gt;&lt;A href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank"&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 May 2011 06:39:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793499#M41595</guid>
      <dc:creator>cdan</dc:creator>
      <dc:date>2011-05-31T06:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793500#M41596</link>
      <description>@John  I'm not sure what you mean by "writing a DCL jacket around "plink" ".&lt;BR /&gt;I'm, already using a CMD script SYSM.BAT around PLINK to cycle through all servers from file servers.txt&lt;BR /&gt;Content of SYSM.BAT:&lt;BR /&gt;FOR /F "eol=!" %%i in (servers.txt) do plink %%i -ssh -2 -t -l myuser -pw mypass %1&lt;BR /&gt;&lt;BR /&gt;Usage of SYSM.BAT:&lt;BR /&gt;C:\Putty\SYSM "show time" &lt;BR /&gt;&lt;BR /&gt;I'm not good enough in CMD to make this script automatically escape every double-quote.</description>
      <pubDate>Tue, 31 May 2011 08:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793500#M41596</guid>
      <dc:creator>cdan</dc:creator>
      <dc:date>2011-05-31T08:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793501#M41597</link>
      <description>Well the problem of quoting and CMD handling of quotes aside (I don't want get into ) ...&lt;BR /&gt;&lt;BR /&gt;The main problem seems to be the way the VMS SSH side sees the records coming from an "-m" file: all lines there seem to come to VMS as one single record:&lt;BR /&gt;see this test (TCPIP 5.4 in my case, Linux client):&lt;BR /&gt;tmp.txt:&lt;BR /&gt;@[.com]test par1&lt;BR /&gt;show time&lt;BR /&gt;&lt;BR /&gt;(test.com is a DCL command file showing the parameters)&lt;BR /&gt;&lt;BR /&gt;plink  -ssh -2 -l huber -m tmp.cmd mynode&lt;BR /&gt;&lt;BR /&gt;result:&lt;BR /&gt; 13:45:38.00: $ show symbol p1&lt;BR /&gt;  P1 = "PAR1.SHOW"&lt;BR /&gt; 13:45:38.00: $ show symbol p2&lt;BR /&gt;  P2 = "TIME."&lt;BR /&gt; 13:45:38.00: $ show symbol p3&lt;BR /&gt;  P3 = ""&lt;BR /&gt;&lt;BR /&gt;(The dots display the linefeeds)&lt;BR /&gt;&lt;BR /&gt;I have tried to explicitely insert &lt;CR&gt; characters at the end of lines without a change in behaviour.&lt;BR /&gt;&lt;BR /&gt;So this seems to be a problem with the VMS side, Linux to Linux doesn't have the problem.&lt;BR /&gt;&lt;BR /&gt;So with a support contract You should report to HP.&lt;/CR&gt;</description>
      <pubDate>Tue, 31 May 2011 10:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793501#M41597</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2011-05-31T10:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793502#M41598</link>
      <description>Have you looked at using something like Expect over SSH? You could script the client end in something like Perl/Python: it would spare you the vagaries of the DOS command line shell, at least.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 May 2011 12:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793502#M41598</guid>
      <dc:creator>Richard Brodie_1</dc:creator>
      <dc:date>2011-05-31T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793503#M41599</link>
      <description>@Richard Thanks for the idea, I already used Cygwin for automating some ILO commands through ssh using expect, because our servers don't support HP's tool for scripting. I might use it again instead plink.&lt;BR /&gt;I would even use FreeAXP as a management console if it was less CPU hungry! &lt;BR /&gt;&lt;BR /&gt;@Joseph I don't think HP cares about some awkward customer who wants to use an unsupported open source 3rd party weird tool as "plink". Besides, within tcpip$ssh_rcmd.com, which is called by plink, it is specified:&lt;BR /&gt;$ ! Neither HP nor any of its subsidiaries shall be liable for technical&lt;BR /&gt;$ ! or editorial errors or omissions contained herein.&lt;BR /&gt;plink is creating a network (N) process, with no terminal device.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 May 2011 14:33:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793503#M41599</guid>
      <dc:creator>cdan</dc:creator>
      <dc:date>2011-05-31T14:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: PLINK on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793504#M41600</link>
      <description>If you want to use Python, in the standard Python for VMS, you have paramiko, &lt;BR /&gt;&lt;BR /&gt;Paramiko is a module that implements the SSH2 protocol for secure (encrypted and authenticated) connections to remote machines &lt;BR /&gt;&lt;BR /&gt;see&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;and&lt;BR /&gt;&lt;A href="http://www.lag.net/paramiko/" target="_blank"&gt;http://www.lag.net/paramiko/&lt;/A&gt;</description>
      <pubDate>Wed, 01 Jun 2011 08:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/plink-on-openvms/m-p/4793504#M41600</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2011-06-01T08:44:11Z</dc:date>
    </item>
  </channel>
</rss>

