Sending savesets over TCP/IP to Linux.

How to easily duplicate your data and safely restore it without losing a single bit.
User avatar

Topic author
martin
Valued Contributor
Posts: 73
Joined: Tue Mar 22, 2022 6:47 pm
Reputation: 0
Location: England
Status: Offline

Sending savesets over TCP/IP to Linux.

Post by martin » Sun Jul 02, 2023 1:04 pm

Background
My backup scripts consist of a master script running on the main server and a small slave on each VM or remote machine. The master calls up the slave via SSH and directs stderr to the log and stdout to the dumpfile. The slave MUST send ONLY the dump over stdout, all other reporting is done over stderr.

Problem
Integrating a VMS VM into this! I've hit two problems:
  • I can't find a way to cleanly link SYS$OUTPUT to stdout and SYS$ERROR to stderr, and then ensure that ONLY the saveset flows over SYS$OUTPUT/stdout.
  • Alternatively, I've tried running the BACKUP command through OpenSSH, but specifying a remote file for the saveset won't work. I know it's easy with DECnet (done it often enough in the past) but I'd like to do it over TCP/IP/OpenSSH.
Latest (failing) attempt:

Code: Select all

$ BACKUP /IMAGE /RECORD /COMMENT='gemini-dka100' dka100: "<FQDN>:/tmp/bups-gemini-dka100-rkMXUm"/save_set
Where <FQDN> is of course the host's name.

Any suggestions/pointer please?
Last edited by martin on Sun Jul 02, 2023 1:06 pm, edited 1 time in total.
Martin
  • Retired System Manager: VMS/UNIX/UNICOS/Linux.
  • Started on a VAX 11/782 in 1984 with VMS 3.6.


hb
Valued Contributor
Posts: 72
Joined: Mon May 01, 2023 12:11 pm
Reputation: 0
Status: Offline

Re: Sending savesets over TCP/IP to Linux.

Post by hb » Mon Jul 03, 2023 5:14 am

martin wrote:
Mon Jul 03, 2023 4:02 am
At last some useful information. Are you stating that BACKUP cannot use TCP/IP in the output filespec? It can use DECnet (along the lines of BIGVAX::DISK$BACKUPS:[BACKUPS]GEMINI.BCK)...
A DECnet node is part of a VMS file specification. A TCP/IP node is not, except for a few commands, which accept the FTP qualifier - as far as I know only COPY, DELETE and DIRECTORY.
... but with only (currently) one VMS VM hosted by Linux then DECnet isn't an option. If BACKUP can't use TCP/IP, then there is no point in pursuing this development, which is where we came in.
There was and probably still is DECnet for Linux - although there was some discussion in last August to drop support for it. Some distributions don't configure it in the kernel. So you may not have it by default. And you need the dnprogs. This is old code and probably not well maintained. So DECnet may not be an option.

User avatar

Topic author
martin
Valued Contributor
Posts: 73
Joined: Tue Mar 22, 2022 6:47 pm
Reputation: 0
Location: England
Status: Offline

Re: Sending savesets over TCP/IP to Linux.

Post by martin » Mon Jul 03, 2023 12:11 pm

There's not much point in continuing this discussion, others have provided constructive help which shows that I need to approach the problem in a differrent way. I thank them.
"running the BACKUP command through OpenSSH" or "specifying a remote file".
OpenSSH enables you both to log into remote machines, and also to run commands on the remote machines:

Code: Select all

$ ssh gemini "dir DISK$USERS:[JMR]"

Directory DISK$USERS:[JMR]

readme.;1

Total of 1 file.
for example. Here a user logged into a *NIX box is running a VMS command ion a VMS machine using OpenSSH. OpenSSH establishes contact in the normal way, then sends the the remote machine "gemini" to be executed there. It's really quite straightforward but is unfortunately not documented in VSI TCP/IP Services for OpenVMS User's Guide V6.0. If you have access to a UNIX or Linux machine the man page will explain it.

Some commands, such as the "r" or "s" commands allow you to specify that the source or destination is a file on another emachine. This is called "specifying a remote file". Its converse, specifying a local file, would mean that the file was on the actual machine executing the command. Using DECnet this has been possible since the early days, and when clusters were introduced the issue was clouded slightly since the definition of "remote" was a bit elastic. With two networking systems now used by VMS it would be nice if either could be used, but apparently not.
Last edited by marty.stu on Mon Jul 03, 2023 2:22 pm, edited 1 time in total.
Reason: Redacted by a moderator as this has become too personal.
Martin
  • Retired System Manager: VMS/UNIX/UNICOS/Linux.
  • Started on a VAX 11/782 in 1984 with VMS 3.6.


marty.stu
Site Admin
Valued Contributor
Posts: 96
Joined: Tue May 21, 2019 6:56 am
Reputation: 0
Status: Offline

Re: Sending savesets over TCP/IP to Linux.

Post by marty.stu » Mon Jul 03, 2023 2:24 pm

Closing this thread as the OP got their answer and to prevent further offtopic.
Run to the bedroom, In the suitcase on the left You'll find my favorite axe.

Locked