On Aug 15, 2012, at 5:05 AM, Johnny Billquist wrote:
On 2012-08-15 10:57, Sampsa Laine wrote:
Yes, I was aware of the batch submission, but wanted to do it the "ssh way" for a particular reason..
Ok. Note, however, that the solution you came up with now is not really generally usable in DECnet, but is rather VMS-specific. But on the other hand, more or less any solution will be rather specific...
The details are, but the general mechanism is common. See the Session Control layer specification. Basically, server application addresses come in two forms (three, maybe, but the third doesn't really make sense) -- a name, or a number. For example, FAL is number 17.
That part is standardized, and the object numbers are registered (though no names are). What isn't standard is how those session control requests are mapped to operating system objects or actions.
For example, in RSTS (DECnet/E), incoming connections can go to already running programs that have registered the object name and/or number. If there isn't one, the request is looked up in a database set by NCP which defines the mapping from name or number to a program. Unlike VMS, there is no default rule that a name maps to that same string as an executable file. But what Sampsa did could be done to a RSTS node so long as there is a session control database entry that maps that task name to the script file as the thing to execute.
paul
TELL.COM seems simpler :)
Sampsa
On 15 Aug 2012, at 15:01, Steve Davidson wrote:
Sampsa,
For VMS specific you can us SYSMAN. It does NOT require a cluster. It
does require that you specify the username and password of the remote
however.
$ MCR SYSMAN
SYSMAN> set environment/node=<nodename>/user=<username>
Remote Password: <remote accounts password>
SYSMAN> do @foo.com
SYSMAN>
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE
[mailto:owner-hecnet at Update.UU.SE] On Behalf Of Sampsa Laine
Sent: Wednesday, August 15, 2012 05:20
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] 'rexec' or 'ssh <command>' over DECNET
Well, the logs are transferred over DECNET to the main host
that runs SSH (the others are too slow to run SSH).
But they are generated by a DCL script on the node from which
they are extracted (basically, DCL scripts are run on KUHAVX
and LABVAX which copy the exported logs to SOLAR5).
So I execute the log generation process (which tells KUHAVX +
LABVAX to export their logs to SOLAR5) and then fetch them
from SOLAR5.
Sampsa
On 15 Aug 2012, at 12:15, Johnny Billquist wrote:
On 2012-08-15 11:09, Sampsa Laine wrote:
I am aware of this - I am using this to pull some logs
from a couple of boxes to another, all VMS.
Eh... Are the logs not accessible over DECnet? Seems like
you might be going over the river to get the water...?
Johnny
Sampsa
On 15 Aug 2012, at 12:05, Johnny Billquist wrote:
On 2012-08-15 10:57, Sampsa Laine wrote:
Yes, I was aware of the batch submission, but wanted to
do it the "ssh way" for a particular reason..
Ok. Note, however, that the solution you came up with now
is not really generally usable in DECnet, but is rather
VMS-specific. But on the other hand, more or less any
solution will be rather specific...
Not sure that a batch submission is that much different
from your network connection though. Neither is really
similar to an ssh session, unless I'm missing something.
Johnny
Sampsa
On 15 Aug 2012, at 11:55, Johnny Billquist wrote:
On 2012-08-15 08:36, Sampsa Laine wrote:
Guys,
I remember there's a clean / elegant way of telling
another node to run a DCL script for me, but have totally
forgotten how to do it.
Basically, I have three nodes, A, B and C.
I've set up proxies for user FOO across all of them.
Now I want node A (as user FOO) to be able to tell
node B and C to run a script on them, as user FOO.
How do I do this?
I notice that you figured out one way, which is to use
network communication to a named task.
Another is to submit a batch job on another node. A
third is (I seem to remember) the ability to just request a
program to be run on a remote node, but that might some RSX
specific thing. I can check in manuals if you want to know
more, as my memory is fuzzy on the specifics.
Johnny
Sampsa,
For VMS specific you can us SYSMAN. It does NOT require a cluster. It
does require that you specify the username and password of the remote
however.
$ MCR SYSMAN
SYSMAN> set environment/node=<nodename>/user=<username>
Remote Password: <remote accounts password>
SYSMAN> do @foo.com
SYSMAN>
-Steve
-----Original Message-----
From: owner-hecnet at Update.UU.SE
[mailto:owner-hecnet at Update.UU.SE] On Behalf Of Sampsa Laine
Sent: Wednesday, August 15, 2012 05:20
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] 'rexec' or 'ssh <command>' over DECNET
Well, the logs are transferred over DECNET to the main host
that runs SSH (the others are too slow to run SSH).
But they are generated by a DCL script on the node from which
they are extracted (basically, DCL scripts are run on KUHAVX
and LABVAX which copy the exported logs to SOLAR5).
So I execute the log generation process (which tells KUHAVX +
LABVAX to export their logs to SOLAR5) and then fetch them
from SOLAR5.
Sampsa
On 15 Aug 2012, at 12:15, Johnny Billquist wrote:
On 2012-08-15 11:09, Sampsa Laine wrote:
I am aware of this - I am using this to pull some logs
from a couple of boxes to another, all VMS.
Eh... Are the logs not accessible over DECnet? Seems like
you might be going over the river to get the water...?
Johnny
Sampsa
On 15 Aug 2012, at 12:05, Johnny Billquist wrote:
On 2012-08-15 10:57, Sampsa Laine wrote:
Yes, I was aware of the batch submission, but wanted to
do it the "ssh way" for a particular reason..
Ok. Note, however, that the solution you came up with now
is not really generally usable in DECnet, but is rather
VMS-specific. But on the other hand, more or less any
solution will be rather specific...
Not sure that a batch submission is that much different
from your network connection though. Neither is really
similar to an ssh session, unless I'm missing something.
Johnny
Sampsa
On 15 Aug 2012, at 11:55, Johnny Billquist wrote:
On 2012-08-15 08:36, Sampsa Laine wrote:
Guys,
I remember there's a clean / elegant way of telling
another node to run a DCL script for me, but have totally
forgotten how to do it.
Basically, I have three nodes, A, B and C.
I've set up proxies for user FOO across all of them.
Now I want node A (as user FOO) to be able to tell
node B and C to run a script on them, as user FOO.
How do I do this?
I notice that you figured out one way, which is to use
network communication to a named task.
Another is to submit a batch job on another node. A
third is (I seem to remember) the ability to just request a
program to be run on a remote node, but that might some RSX
specific thing. I can check in manuals if you want to know
more, as my memory is fuzzy on the specifics.
Johnny
Well, the logs are transferred over DECNET to the main host that runs SSH (the others are too slow to run SSH).
But they are generated by a DCL script on the node from which they are extracted (basically, DCL scripts are run on KUHAVX and LABVAX which copy the exported logs to SOLAR5).
So I execute the log generation process (which tells KUHAVX + LABVAX to export their logs to SOLAR5) and then fetch them from SOLAR5.
Sampsa
On 15 Aug 2012, at 12:15, Johnny Billquist wrote:
On 2012-08-15 11:09, Sampsa Laine wrote:
I am aware of this - I am using this to pull some logs from a couple of boxes to another, all VMS.
Eh... Are the logs not accessible over DECnet? Seems like you might be going over the river to get the water...?
Johnny
Sampsa
On 15 Aug 2012, at 12:05, Johnny Billquist wrote:
On 2012-08-15 10:57, Sampsa Laine wrote:
Yes, I was aware of the batch submission, but wanted to do it the "ssh way" for a particular reason..
Ok. Note, however, that the solution you came up with now is not really generally usable in DECnet, but is rather VMS-specific. But on the other hand, more or less any solution will be rather specific...
Not sure that a batch submission is that much different from your network connection though. Neither is really similar to an ssh session, unless I'm missing something.
Johnny
Sampsa
On 15 Aug 2012, at 11:55, Johnny Billquist wrote:
On 2012-08-15 08:36, Sampsa Laine wrote:
Guys,
I remember there's a clean / elegant way of telling another node to run a DCL script for me, but have totally forgotten how to do it.
Basically, I have three nodes, A, B and C.
I've set up proxies for user FOO across all of them.
Now I want node A (as user FOO) to be able to tell node B and C to run a script on them, as user FOO.
How do I do this?
I notice that you figured out one way, which is to use network communication to a named task.
Another is to submit a batch job on another node. A third is (I seem to remember) the ability to just request a program to be run on a remote node, but that might some RSX specific thing. I can check in manuals if you want to know more, as my memory is fuzzy on the specifics.
Johnny
On 2012-08-15 11:09, Sampsa Laine wrote:
I am aware of this - I am using this to pull some logs from a couple of boxes to another, all VMS.
Eh... Are the logs not accessible over DECnet? Seems like you might be going over the river to get the water...?
Johnny
Sampsa
On 15 Aug 2012, at 12:05, Johnny Billquist wrote:
On 2012-08-15 10:57, Sampsa Laine wrote:
Yes, I was aware of the batch submission, but wanted to do it the "ssh way" for a particular reason..
Ok. Note, however, that the solution you came up with now is not really generally usable in DECnet, but is rather VMS-specific. But on the other hand, more or less any solution will be rather specific...
Not sure that a batch submission is that much different from your network connection though. Neither is really similar to an ssh session, unless I'm missing something.
Johnny
Sampsa
On 15 Aug 2012, at 11:55, Johnny Billquist wrote:
On 2012-08-15 08:36, Sampsa Laine wrote:
Guys,
I remember there's a clean / elegant way of telling another node to run a DCL script for me, but have totally forgotten how to do it.
Basically, I have three nodes, A, B and C.
I've set up proxies for user FOO across all of them.
Now I want node A (as user FOO) to be able to tell node B and C to run a script on them, as user FOO.
How do I do this?
I notice that you figured out one way, which is to use network communication to a named task.
Another is to submit a batch job on another node. A third is (I seem to remember) the ability to just request a program to be run on a remote node, but that might some RSX specific thing. I can check in manuals if you want to know more, as my memory is fuzzy on the specifics.
Johnny
On 15 Aug 2012, at 12:05, Johnny Billquist wrote:
Not sure that a batch submission is that much different from your network connection though. Neither is really similar to an ssh session, unless I'm missing something.
Long story short, the log pulling is initiated from a Unix box over SSH to a VMS box, which asks the nodes to export the logs and then copy them over.
Once this is complete, the Unix box SCPs the exported logs over.
This way I am sure the log export has finished before initiating the SCP.
Sampsa
I am aware of this - I am using this to pull some logs from a couple of boxes to another, all VMS.
Sampsa
On 15 Aug 2012, at 12:05, Johnny Billquist wrote:
On 2012-08-15 10:57, Sampsa Laine wrote:
Yes, I was aware of the batch submission, but wanted to do it the "ssh way" for a particular reason..
Ok. Note, however, that the solution you came up with now is not really generally usable in DECnet, but is rather VMS-specific. But on the other hand, more or less any solution will be rather specific...
Not sure that a batch submission is that much different from your network connection though. Neither is really similar to an ssh session, unless I'm missing something.
Johnny
Sampsa
On 15 Aug 2012, at 11:55, Johnny Billquist wrote:
On 2012-08-15 08:36, Sampsa Laine wrote:
Guys,
I remember there's a clean / elegant way of telling another node to run a DCL script for me, but have totally forgotten how to do it.
Basically, I have three nodes, A, B and C.
I've set up proxies for user FOO across all of them.
Now I want node A (as user FOO) to be able to tell node B and C to run a script on them, as user FOO.
How do I do this?
I notice that you figured out one way, which is to use network communication to a named task.
Another is to submit a batch job on another node. A third is (I seem to remember) the ability to just request a program to be run on a remote node, but that might some RSX specific thing. I can check in manuals if you want to know more, as my memory is fuzzy on the specifics.
Johnny
On 2012-08-15 10:57, Sampsa Laine wrote:
Yes, I was aware of the batch submission, but wanted to do it the "ssh way" for a particular reason..
Ok. Note, however, that the solution you came up with now is not really generally usable in DECnet, but is rather VMS-specific. But on the other hand, more or less any solution will be rather specific...
Not sure that a batch submission is that much different from your network connection though. Neither is really similar to an ssh session, unless I'm missing something.
Johnny
Sampsa
On 15 Aug 2012, at 11:55, Johnny Billquist wrote:
On 2012-08-15 08:36, Sampsa Laine wrote:
Guys,
I remember there's a clean / elegant way of telling another node to run a DCL script for me, but have totally forgotten how to do it.
Basically, I have three nodes, A, B and C.
I've set up proxies for user FOO across all of them.
Now I want node A (as user FOO) to be able to tell node B and C to run a script on them, as user FOO.
How do I do this?
I notice that you figured out one way, which is to use network communication to a named task.
Another is to submit a batch job on another node. A third is (I seem to remember) the ability to just request a program to be run on a remote node, but that might some RSX specific thing. I can check in manuals if you want to know more, as my memory is fuzzy on the specifics.
Johnny
Yes, I was aware of the batch submission, but wanted to do it the "ssh way" for a particular reason..
Sampsa
On 15 Aug 2012, at 11:55, Johnny Billquist wrote:
On 2012-08-15 08:36, Sampsa Laine wrote:
Guys,
I remember there's a clean / elegant way of telling another node to run a DCL script for me, but have totally forgotten how to do it.
Basically, I have three nodes, A, B and C.
I've set up proxies for user FOO across all of them.
Now I want node A (as user FOO) to be able to tell node B and C to run a script on them, as user FOO.
How do I do this?
I notice that you figured out one way, which is to use network communication to a named task.
Another is to submit a batch job on another node. A third is (I seem to remember) the ability to just request a program to be run on a remote node, but that might some RSX specific thing. I can check in manuals if you want to know more, as my memory is fuzzy on the specifics.
Johnny
On 2012-08-15 08:36, Sampsa Laine wrote:
Guys,
I remember there's a clean / elegant way of telling another node to run a DCL script for me, but have totally forgotten how to do it.
Basically, I have three nodes, A, B and C.
I've set up proxies for user FOO across all of them.
Now I want node A (as user FOO) to be able to tell node B and C to run a script on them, as user FOO.
How do I do this?
I notice that you figured out one way, which is to use network communication to a named task.
Another is to submit a batch job on another node. A third is (I seem to remember) the ability to just request a program to be run on a remote node, but that might some RSX specific thing. I can check in manuals if you want to know more, as my memory is fuzzy on the specifics.
Johnny