<?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: Redirecting SSH output in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543540#M49787</link>
    <description>Gerhard,&lt;BR /&gt;&lt;BR /&gt;Well, it must be (as you say) some environment difference.  I am getting the output to sys$output, but only if I redirect stderr on the Unix side.&lt;BR /&gt;&lt;BR /&gt;I am using VMS 7.3-2, TCPIP V5.4 - ECO 4.  I, too, am using public key without passphrase, but to Linux.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Tom</description>
    <pubDate>Fri, 27 May 2005 13:40:20 GMT</pubDate>
    <dc:creator>Tom Musson</dc:creator>
    <dc:date>2005-05-27T13:40:20Z</dc:date>
    <item>
      <title>Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543516#M49763</link>
      <description>Using SSH to execute single commands on a remote host (Solaris) with public keys using empty passphrases. The commands collects statistics back to the OpenVMS server, so the usage is "safe" but rexec service on the remote nodes may not be available.&lt;BR /&gt;&lt;BR /&gt;The SSH command exit status is not propagated to DCL. As a workaround, I tried to use redirect to get the messages to a file. Setting SYS$OUTPUT,SYS$ERROR does not give any output, the same for PIPE.&lt;BR /&gt;&lt;BR /&gt;The only workaround that I have found is to submit a batch job, wait for the completion and read the log file. &lt;BR /&gt;&lt;BR /&gt;Any better ways?&lt;BR /&gt;&lt;BR /&gt;(My impression is that MultiNet may work better, but that will be difficult to provide for our customers.)&lt;BR /&gt;&lt;BR /&gt;OpenVMS 7.3.2 with TCPIP ECO 4&lt;BR /&gt;&lt;BR /&gt;Gerhard</description>
      <pubDate>Thu, 12 May 2005 12:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543516#M49763</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-12T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543517#M49764</link>
      <description>Can't you just call the DCl routine with /OUTPUT?, e.g.&lt;BR /&gt;&lt;BR /&gt;$ type a.com&lt;BR /&gt;  $ rsh doe01p sh time&lt;BR /&gt;$ @a.com/out=a.log&lt;BR /&gt;$ type a.log&lt;BR /&gt; 13-MAY-2005 07:26:33&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Fri, 13 May 2005 00:26:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543517#M49764</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2005-05-13T00:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543518#M49765</link>
      <description>Thanks for the tip, but ssh does not work at all in direct command procedures.....&lt;BR /&gt;ssh does not use sys$output and in some way takes control of the terminal directly. I am looking for a way to take bak control of the terminal output.&lt;BR /&gt;&lt;BR /&gt;$ type t.com&lt;BR /&gt;$ ssh  go@10.1.2.57 "getStat"&lt;BR /&gt;$ @t&lt;BR /&gt;FATAL: ssh_io_register_fd: fd 3 already registered!&lt;BR /&gt;&lt;BR /&gt;%TCPIP-F-SSH_FATAL, non-specific fatal error condition&lt;BR /&gt;$ subm t&lt;BR /&gt;Job T (queue SYS$BATCH, entry 2760) started on SYS$BATCH&lt;BR /&gt;$ type sys$login:t.log&lt;BR /&gt;$ Set NoOn&lt;BR /&gt;$ VERIFY = F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))&lt;BR /&gt;&lt;BR /&gt;Usage: getStat [-n &lt;NODE number=""&gt;]&lt;BR /&gt;MsnExitStatus: 1 Usage: getStat [-n &lt;NODE number=""&gt;]&lt;BR /&gt;  GO           job terminated at 13-MAY-2005 07:58:48.11&lt;BR /&gt;&lt;BR /&gt;  Accounting information:&lt;BR /&gt;  Buffered I/O count:                618      Peak working set size:       7328&lt;BR /&gt;  Direct I/O count:                  315      Peak virtual size:         177920&lt;BR /&gt;  Page faults:                       824      Mounted volumes:                0&lt;BR /&gt;  Charged CPU time:        0 00:00:00.56      Elapsed time:       0 00:00:02.86&lt;BR /&gt;$&lt;BR /&gt;&lt;/NODE&gt;&lt;/NODE&gt;</description>
      <pubDate>Fri, 13 May 2005 02:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543518#M49765</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-13T02:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543519#M49766</link>
      <description>have a look in the release notes about batch mode</description>
      <pubDate>Fri, 13 May 2005 03:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543519#M49766</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-05-13T03:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543520#M49767</link>
      <description>SSH in batch mode seem to be fixed in ECO4. (There are two notes about it). The note about ssh not working in batch is however not removed. It seems like this note should have been removed.&lt;BR /&gt;&lt;BR /&gt;ECO 3 updates&lt;BR /&gt;-------------&lt;BR /&gt;ECO F 25-JUN-2004 Alpha, IA64&lt;BR /&gt;&lt;BR /&gt; Problem:&lt;BR /&gt;&lt;BR /&gt; Cannot run ssh2, scp2, or sftp2 clients in batch mode.&lt;BR /&gt; In some cases, running from within a command procedure did not&lt;BR /&gt; work either.&lt;BR /&gt;&lt;BR /&gt;13: Updates for SSH release notes&lt;BR /&gt; - ssh, sftp and scp do not work correctly in batch mode</description>
      <pubDate>Fri, 13 May 2005 03:44:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543520#M49767</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-13T03:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543521#M49768</link>
      <description>does batch mode make redefining sys$output work?</description>
      <pubDate>Fri, 13 May 2005 04:24:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543521#M49768</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-05-13T04:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543522#M49769</link>
      <description>Setting sys$output does not work in batch either&lt;BR /&gt;&lt;BR /&gt;You can redirect SSH warning messages, for instance the using flag "-v", but not the actual command output.&lt;BR /&gt;&lt;BR /&gt;/Gerhard</description>
      <pubDate>Fri, 13 May 2005 04:31:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543522#M49769</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-13T04:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543523#M49770</link>
      <description>Gerhard,&lt;BR /&gt;&lt;BR /&gt;it _COULD_ be a version thing, but we have been using rsh commands from procedures for some time, and I cannot remember any issues.&lt;BR /&gt;We started on VMS 7.2-1 / TCP 5.1, and currently have VMS 7.3-2 / TCP 5.4 ECO 2.&lt;BR /&gt;Atmittedly, NOT to Solaris, but to some other VMS boxes. &lt;BR /&gt;&lt;BR /&gt;The only strange thing in my view is your syntax:&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;$ ssh go@10.1.2.57 "getStat"&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;I do not recognise the "go@" part.&lt;BR /&gt;&lt;BR /&gt;That looks like a syntax specifying user "go" at node 10.1.2.57&lt;BR /&gt;If so, we use $ SSH /USER=go  ...&lt;BR /&gt;&lt;BR /&gt;-- oh. If "go" is lowercase on the remote machine (it IS *UX !! ), then on VMS it should be between quotes.&lt;BR /&gt;&lt;BR /&gt;Maybe THAT is your issue ?&lt;BR /&gt;&lt;BR /&gt;Success.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Fri, 13 May 2005 04:33:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543523#M49770</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-05-13T04:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543524#M49771</link>
      <description>&amp;gt;&amp;gt; I do not recognise the "go@" part.&lt;BR /&gt;&lt;BR /&gt;user@host is how you specify user at remote node normally in ssh. "ssh" accepts "-l" (as does OpenVMS RSH), but scp only accepts "@" syntax. &lt;BR /&gt;Thanks for the suggestion though, but "-l" and "@" syntax works the same.&lt;BR /&gt;&lt;BR /&gt;The problem is the bad port of ssh. There are a number of issues still. A few of them bothering me:&lt;BR /&gt; * ssh does not propagate error codes or use sys$output and sys$error&lt;BR /&gt; * scp only works for stm_lf and fixed512&lt;BR /&gt; * crash if more than one line in "IDENTIFICATION."&lt;BR /&gt; * scp -p crashes&lt;BR /&gt;&lt;BR /&gt;ReleaseNotes has more.&lt;BR /&gt;/Gerhard</description>
      <pubDate>Fri, 13 May 2005 04:43:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543524#M49771</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-13T04:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543525#M49772</link>
      <description>I don't understand that HP released such a monster.&lt;BR /&gt;&lt;BR /&gt;Btw : my ssh says "Copyright 1976". That old and stil so bad.&lt;BR /&gt;&lt;BR /&gt;I use task-to-task to do the job :&lt;BR /&gt;. with capture of output&lt;BR /&gt;. with option of doing multiple commands in 1 process (=1 command line)&lt;BR /&gt;. with status of each command given back to origin node&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Fri, 13 May 2005 05:05:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543525#M49772</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-05-13T05:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543526#M49773</link>
      <description>Jan, is that interactive or in batch as well?&lt;BR /&gt;Can you explain more in detail?&lt;BR /&gt;&lt;BR /&gt;Gerhard&lt;BR /&gt;&lt;BR /&gt;&lt;RANT&gt;&lt;BR /&gt;If it is OpenVMS, you expect it to work. The only problem is when something is not implemented but then it is documented. If I knew this from the beginning, I could have pushed other alternatives, but this too late know.&lt;BR /&gt;For ssh, HP took a bunch of non-VMS programmers without VMS knowledge to do the port. I do not believe OpenVMS programmers to release something like this.&lt;BR /&gt;&lt;/RANT&gt;</description>
      <pubDate>Fri, 13 May 2005 07:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543526#M49773</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-13T07:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543527#M49774</link>
      <description>I mixed up the responses when writing and wrote Jan instead of Wim. &lt;BR /&gt;Gerhard&lt;BR /&gt;</description>
      <pubDate>Fri, 13 May 2005 07:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543527#M49774</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-13T07:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543528#M49775</link>
      <description>G,&lt;BR /&gt;&lt;BR /&gt;This posted script is a very complex procedure with references to other stuff but you can read it to get the idea. The second script starts after a line of *.&lt;BR /&gt;&lt;BR /&gt;The usage is :&lt;BR /&gt;$remote_command "show time" SRV&lt;BR /&gt;(if you have the missing parts to define the nodes belonging to SRV)&lt;BR /&gt;or&lt;BR /&gt;$remote_command "show time" node::&lt;BR /&gt;(if you don't have it)&lt;BR /&gt;&lt;BR /&gt;But it isn't encrypted.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Fri, 13 May 2005 07:53:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543528#M49775</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-05-13T07:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543529#M49776</link>
      <description>Here is how the output looks like.&lt;BR /&gt;&lt;BR /&gt;WSYS01/MGRWVW&amp;gt;rcom "show time" srv&lt;BR /&gt;Will execute show time&lt;BR /&gt;&lt;BR /&gt;ABETV1 at 2005-05-13 14:57:48.25&lt;BR /&gt;  13-MAY-2005 14:57:49&lt;BR /&gt;&lt;BR /&gt;ABETV2 at 2005-05-13 14:57:49.30&lt;BR /&gt;  13-MAY-2005 14:57:50&lt;BR /&gt;&lt;BR /&gt;ALP10 at 2005-05-13 14:57:50.32&lt;BR /&gt;  13-MAY-2005 14:57:52&lt;BR /&gt;&lt;BR /&gt;ALP20 at 2005-05-13 14:57:52.62&lt;BR /&gt;  13-MAY-2005 14:57:53&lt;BR /&gt;&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;WPVMX2 at 2005-05-13 14:58:10.67&lt;BR /&gt;%RMS-E-ACC, ACP file access failed&lt;BR /&gt;*** Can not communicate with WPVMX2&lt;BR /&gt;&lt;BR /&gt;Execution statistics for show time&lt;BR /&gt;&lt;BR /&gt;Command successfully on 23 nodes&lt;BR /&gt;ABETV1,ABETV2,ALP10,ALP20,CSMM01,DVPM01,MXM01,SALPV1,SALPV2,SBAPV1,SBAPV2,&lt;BR /&gt;SDEPV1,SPVCS1,SPVCS2,SPVMX1,SPVMX2,SVBET1,SVBET2,SVCSM1,SVCSM2,SVMRX1,SVMRX2,&lt;BR /&gt;SY2KV3&lt;BR /&gt;&lt;BR /&gt;Node unreachable on 6 nodes&lt;BR /&gt;SARBV1,SBETV1,SBETV2,SIVM01,WPVMX1,WPVMX2&lt;BR /&gt;&lt;BR /&gt;LAT reachable, DECnet unreachable on 2 nodes&lt;BR /&gt;SBETV1,SBETV2</description>
      <pubDate>Fri, 13 May 2005 08:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543529#M49776</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-05-13T08:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543530#M49777</link>
      <description>for remote execution of commands on a VMS in a non-interactive fashion where DECnet is available then SYSMAN is the program to use.&lt;BR /&gt;&lt;BR /&gt;But the original question wants TCP/IP and encrypted.&lt;BR /&gt;&lt;BR /&gt;I agree with the comments on the ssh port. Keep complaining at hp and eventually they will assign some resource to do this properly (I hope).</description>
      <pubDate>Fri, 13 May 2005 09:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543530#M49777</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-05-13T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543531#M49778</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;Sysman is OK for simple things but :&lt;BR /&gt;1) doesn't have the users environment&lt;BR /&gt;2) can only execute 1 command per process (per do)&lt;BR /&gt;3) no return status&lt;BR /&gt;4) just noticed, runs with base prio 7, so may disrupt production&lt;BR /&gt;5) less node selection possibilities&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;</description>
      <pubDate>Fri, 13 May 2005 10:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543531#M49778</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-05-13T10:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543532#M49779</link>
      <description>Re Wim,&lt;BR /&gt;&lt;BR /&gt;I agree on 1-4, but #5?&lt;BR /&gt;&lt;BR /&gt;Define any relevant combination of nodes as a searchlist in SYSMAN$NODE_TABLE, and use that name in &lt;BR /&gt;SYSMAN&amp;gt; NODE=..&lt;BR /&gt;&lt;BR /&gt;or,&lt;BR /&gt; in SYSMAN.INI,&lt;BR /&gt;&lt;BR /&gt;or,&lt;BR /&gt;define SYSMANINI &lt;FILE&gt;, and define in that file.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE&gt;</description>
      <pubDate>Fri, 13 May 2005 13:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543532#M49779</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-05-13T13:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543533#M49780</link>
      <description>The setup is for accessing Solaris nodes, so OpenVMS native methods is not possible...&lt;BR /&gt;The issue is not to get an encrypted channel to the remote node, but avoid letting the password in the clear, that is done with rsh/rexec.&lt;BR /&gt;&lt;BR /&gt;I plan to use something like the command procedure below. The scripts in Solaris have been modified to write the exit status, and a reason. The exit status must be unique enough to not get false matches...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ type t2.com&lt;BR /&gt;$! Command procedure to execute ssh commands on remote node&lt;BR /&gt;$! The command on the remote node must write the exit status in the&lt;BR /&gt;$! output text (including reason) as the exit status is not propagated&lt;BR /&gt;$!&lt;BR /&gt;$ ws="WRITE SYS$OUTPUT"&lt;BR /&gt;$ cmd="getStat"&lt;BR /&gt;$ call test_ssh "go@10.1.2.57" "''cmd'"&lt;BR /&gt;$ write sys$output "''exit_status':''reason'"&lt;BR /&gt;$ exit&lt;BR /&gt;$&lt;BR /&gt;$test_ssh: subroutine&lt;BR /&gt;$ remnode="''p1'"&lt;BR /&gt;$ cmd="''p2'"&lt;BR /&gt;$!Use separate que to minimize the risk for deadlock&lt;BR /&gt;$ bqueue="''f$getsyi(""nodename"")'_bat"&lt;BR /&gt;$ key_string="ExitStatus:"&lt;BR /&gt;$get_files:&lt;BR /&gt;$ tmp=F$UNIQUE()&lt;BR /&gt;$ bfile="SYS$LOGIN:''tmp'.COM"&lt;BR /&gt;$ lfile="SYS$LOGIN:''tmp'.LOG"&lt;BR /&gt;$ IF f$search(bfile) .nes. "" .or. f$search(lfile) .nes. "" -&lt;BR /&gt; THEN GOTO get_files&lt;BR /&gt;$ open/WRITE f 'bfile'&lt;BR /&gt;$ write f "ssh ""''remnode'"" ""''cmd'"""&lt;BR /&gt;$ close f&lt;BR /&gt;$ SUBMIT/QUEUE='bqueue' 'bfile'&lt;BR /&gt;$ synchronise /entry='$entry'&lt;BR /&gt;$ open F 'lfile'&lt;BR /&gt;$ LOOP_CMD:&lt;BR /&gt;$ READ F str/END=end_loop_cmd_nomatch&lt;BR /&gt;$ IF f$length(str) .eq 0 THEN GOTO LOOP_CMD&lt;BR /&gt;$ IF f$locate (key_string,str) .eq. 0&lt;BR /&gt;$ THEN&lt;BR /&gt;$   tmp=f$extract(f$length(key_string)+1, f$length(str), str)&lt;BR /&gt;$   tmp=f$edit(tmp,"TRIM")&lt;BR /&gt;$   exit_status==f$element(0," ",tmp)&lt;BR /&gt;$   tmp2=f$extract(f$length(exit_status)+1, f$length(tmp), tmp)&lt;BR /&gt;$   reason==f$edit(tmp2,"TRIM")&lt;BR /&gt;$   GOTO end_loop_cmd&lt;BR /&gt;$ ENDIF&lt;BR /&gt;$ GOTO LOOP_CMD&lt;BR /&gt;$ end_loop_cmd_nomatch:&lt;BR /&gt;$ ws "Warning: did not find ''key_string' in ''cmd'"&lt;BR /&gt;$ exit_status==-1&lt;BR /&gt;$ reason=="No information"&lt;BR /&gt;$  end_loop_cmd:&lt;BR /&gt;$ CLOSE F&lt;BR /&gt;$ DELETEE 'bfile';0,'lfile';0&lt;BR /&gt;$ RETURN&lt;BR /&gt;</description>
      <pubDate>Mon, 16 May 2005 04:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543533#M49780</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-16T04:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543534#M49781</link>
      <description>Wim: Thanks for the script. Not exactly what I was looking for but sharing is always apreciated.&lt;BR /&gt;&lt;BR /&gt;I will not close this thread yet, I still believe there is possibility to take control of the output for ssh...</description>
      <pubDate>Mon, 16 May 2005 04:51:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543534#M49781</guid>
      <dc:creator>Gerhard Olsson</dc:creator>
      <dc:date>2005-05-16T04:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SSH output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543535#M49782</link>
      <description>Just a note for Jan,&lt;BR /&gt;&lt;BR /&gt;Node slection : in the script we use dspn. This tool allows you to assign a number of ketwords to each node. Then you can use boolean expressions using these keywords.&lt;BR /&gt;&lt;BR /&gt;E.g. (SRV .AND. DVP) .AND. .NOT. CSM&lt;BR /&gt;(all servers for devlopment not located in our CSM building).&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 17 May 2005 01:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-ssh-output/m-p/3543535#M49782</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-05-17T01:01:32Z</dc:date>
    </item>
  </channel>
</rss>

