Operating System - OpenVMS
1753331 Members
5353 Online
108792 Solutions
New Discussion юеВ

Remote executes command through DECnet

 
SOLVED
Go to solution
Ronny_7
Regular Advisor

Remote executes command through DECnet

Hi,

Does anyone knows how to execute DCL commands on remote node and display the output on local node through DECnet or DECnet/OSI on OpenVMS system?

Thank you.

Regards,
Ronny
6 REPLIES 6
Karl Rohwedder
Honored Contributor
Solution

Re: Remote executes command through DECnet

You can just open a network channel to a remote node like opening a file, e.g.

OPEN/WRITE/READ REM$NET 'NODE''ACCOUNT'::"TASK=REMOTE"
$ IF $STATUS .NE. 1 THEN GOTO CONNECT_ERROR

On the remote side a DCL routine named REMOTE.COM jas to reside on the logindirectory of the called user or a DECnet object has to be declared.
$!
On the rmeote side, the REMOTE.COM just opens the channels SYS$NET, e.g.
$ OPEN/ERROR=NET_EXIT/WRITE/READ REMOTE SYS$NET ! open channel to caller
$ DEFINE SYS$OUTPUT REMOTE: ! direct output to caller
$ DEFINE SYS$ERROR REMOTE:

You can then exchange data with read/write.

Pls. look at the TELL utility on the V6
freeware (via VMS homepage). It is an example of exactly what you need.
Mike Naime
Honored Contributor

Re: Remote executes command through DECnet

That depends on what DCL commands that you want to do. If you have DECNET setup for all of your systems, it should be fairly simple to setup a command script that will go execute a command on all of the systems in your datacenter(s).

The TASK= requires that you have enabled the FAL$SERVER that uses SYS$NET to pass data from one system to another system.

If you are looking for somethign like a DIR, VMS already handles that as DIR Node::Device:[directory]filespec

What exactly are you trying to do?
VMS SAN mechanic
Ian Miller.
Honored Contributor

Re: Remote executes command through DECnet

depending on what you want to do SYSMAN may be suitable. It can execute commands on nodes outside the cluster. It is enabled by default for clustered nodes. For standalone nodes use @SYS$SYSTEM:STARTUP SMISERVER
____________________
Purely Personal Opinion
Ronny_7
Regular Advisor

Re: Remote executes command through DECnet

Thank you all for the reply.

My customer wishes to perform the daily admin tasks, e.g. dir, copy and create/dir,
without going through "set host".

I think some configuration needs to be done before the above can work but I am not sure what should be done.

Appreciate if some steps can be provided.

Thank you.

Regards,
Ronny
Martin P.J. Zinser
Honored Contributor

Re: Remote executes command through DECnet

Hello Ronny,

for dir et al. you can just use the full filename, e.g.

dir node"user password"::device:[dir]

will show the remote directory. Works with copy , type and friends too.

If you do setup DECnet proxies you do not even need to specify username and password.

Greetings, Martin
Ronny_7
Regular Advisor

Re: Remote executes command through DECnet

As per replies.