Are you look at providing access to the virtual machine console so that it can 
issue CP commands etc.? My prototype SSH server for z/VM lets you logon to any 
virtual machine primarily for CMS interaction but nothing stopping it using for 
other guests. In the below example I ssh from my Mac to a guest running Linux 
and use a logonby to do so:

# ssh -p 65522 -l cts7xdev.by.neale 172.17.16.60
CMS SSH Server
Enter password for cts7xdev.by.neale
([email protected]) Password:

#cp q t
TIME IS 00:07:35 EDT FRIDAY 12/05/25
CONNECT= 99:59:59 VIRTCPU= 999:59.99 TOTCPU= 999:59.99
#cp ind user
USERID=CTS7XDEV MACH=ESA STOR=768M VIRT=V XSTORE=---
IPLSYS=DEV 0150 DEVNUM=00020
PAGES: RES=196263  WS=196210  LOCKEDREAL=53  RESVD=0
       INSTAN=196263
NPREF=0  PREF=0  READS=0  WRITES=965
CPU 00: CTIME=39:44 VTIME=118:23 TTIME=869:14 IO=000061
        RDR=000000 PRT=000051 PCH=000000 TYPE=CP   CPUAFFIN=ON

USERID=CTS7XDEV MACH=ESA STOR=768M VIRT=V XSTORE=---
IPLSYS=DEV NONE DEVNUM=00020
PAGES: RES=196263  WS=196210  LOCKEDREAL=53  RESVD=0
       INSTAN=196263
NPREF=0  PREF=0  READS=0  WRITES=965
CPU 01: CTIME=39:44 VTIME=275:18 TTIME=899:56 IO=000046
        RDR=000000 PRT=000000 PCH=000000 TYPE=CP   CPUAFFIN=ON
#cp disc
Connection to 172.17.16.60 closed.

As I mentioned it is a prototype. Using “one-shot” commands via SSH works fine 
with CMS:

# ssh -p 65522 -l maint 172.17.16.60 'listfile profile exec (d'
FILENAME FILETYPE FM FORMAT LRECL       RECS     BLOCKS   DATE     TIME
PROFILE  EXEC     A1 V         75         36          1  7/14/22 19:18:46

But doesn’t work (yet) for non-CMS guests - this has to do with recognizing 
which console messages to ignore.

Neale



----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to