¿ªÔÆÌåÓý

Re: Can a VM machine ...


 


From: hercules-390@... [mailto:hercules-390@...] On
Behalf Of Dave Wade
Sent: Tuesday, September 16, 2008 22:16?
To: hercules-390@...
Subject: RE: [hercules-390] Automation form the Operating system to the
Hercules Console (VM)



Hercules supports the use of DIAGNOSE 8 (DIAG8) to issue commands to
Hercules and the underlying OS. The DIAG8CMD and SHCMDOPT entries in the
config file need to be set to enable this.

On VM we have an HCP command which allows commands to be passed back to
Hercules, and depending on which options are set in the config you may or
may not be able to pass commands back to the underlying GUI.

So on my VM MAINT user I can do :-

hcp devinit 480 c:\hercules\tapes\ssp.aws

devinit 480 c:\hercules\tapes\ssp.aws

HHCTA998I Device 0480: c:\hercules\tapes\ssp.aws is a AWS Format tape file

HHCPN098I Device 0:0480 initialized

Ready; T=0.01/0.03 19:01:13

att 480 * 181

TAPE 480 ATTACH TO MAINT 181

Ready; T=0.01/0.01 19:01:23

tape scan

SCANNING....

SSP FORTRAN A1

SSP1 FORTRAN A1

SSP2 FORTRAN A1

SSP18 FORTRAN A1

SSP3 FORTRAN A1

.....

and also

hcp sh ipconfig?
sh ipconfig?
Windows IP Configuration?
Ethernet adapter Wireless Network Connection:?
Connection-specific DNS Suffix . :?
IP Address. . . . . . . . . . . . : 192.168.1.5?
Subnet Mask . . . . . . . . . . . : 255.255.255.0?
Default Gateway . . . . . . . . . : 192.168.1.64?
Ready; T=0.01/1.61 19:10:42?

As the format of the DIAG8 is the same used in VM to pass commands from
within a VM back to CP then usually the OS mods that support this when MVS
et al is run in VM will work in Hercules to pass commands back to Herc......

Dave Wade G4UGM
Illegitimi Non Carborundum




On Sat, Nov 19, 2022 at 12:11 PM Bertram Moshier <herc370390vm@...> wrote:
Hi,

I thought only? CP ran in supervisor state and everything else runs in problem state on the physical system.? Thus Diag 8 in a virtual system can't get to Herculesn but only to CP. While CP diag 8 would go to Hercules.

Bert.

On Sat, Nov 19, 2022, 12:04 Joe Monk <joemonk64@...> wrote:
Yep ... and your question was: :)

You can easily write a callable interface for your backup program to switch to supervisor key and issue DIAG 8. With the hercules CP mod and the config option I showed... You can issue a hercules command to change a tape...

Joe

On Sat, Nov 19, 2022 at 12:01 PM Bertram Moshier <herc370390vm@...> wrote:
Hello Joe,

Yes; but by CP (DMK) not aCMS program.? I say this because diag 8 from a virtual system is for issuing CP command.? ?Inside DMK/CP a diag 8 would go to Hercules.

Bert

On Sat, Nov 19, 2022, 11:45 Joe Monk <joemonk64@...> wrote:
"This parameter specifies whether a command issued through Diagnose 8 will be executed by Hercules as a Hercules commands or not."

Joe

On Sat, Nov 19, 2022 at 11:31 AM Bob Bolch <Bob@...> wrote:
CMS (and other virtual machines) use Diagnose 8 to pass CP commands to CP for execution.
Would those start going to Hercules instead? If so, that could cause some delightful explosions!!
Bo Bolch

On Sat, Nov 19, 2022 at 12:21 PM Joe Monk <joemonk64@...> wrote:
"I'm wondering if it is possible for a VM machine / CMS program to have Hercules change tapes?"

DIAG8CMD ??DISABLE?| ENABLE ? [ECHO |?NOECHO]

When?ENABLE?is specified the Hercules Diagnose 8 instruction command interface is enabled, allowing the guest to directly issue Hercules commands via the Diagnose 8 instruction. When set to?DISABLE?all Diagnose 8 instructions cause a Specification Exception program interrupt to occur instead.

An optional second argument can be given to request whether an audit trail of such commands should be created or not. When?ECHO?is specified, a message is issued when the command is about to be issued, when the command is redisplayed (as is normally done when entered from the command line), as well as a final message indicating the command has finished executing. When?NOECHO?is specified no such audit trail messages are displayed and the command instead completes silently (except for whatever messages the command itself may issue).

Security Alert:??Enabling this feature has security consequences. When this feature is enabled it is possible for guest operating systems running under Hercules to issue commands directly to the host operating system by means of the?sh?(host shell command) and?exec?(execute Rexx script) commands. This ability may be disabled via the??statement's?NODIAG8?option.

The value of?ECHO?or?NOECHO?has no effect on whether or not command output will be placed into the Diagnose 8 instruction's response buffer if the instruction requested one, nor does it cause the resulting audit trail messages from being placed into the response buffer either. The?ECHO?option only impacts what is displayed on the hardware console (and what appears in the hardcopy logfile) but does not otherwise impact what is placed into the instruction's response buffer.

The default is?DISABLE NOECHO


Yes, its possible. Is it advisable?

Joe

On Sat, Nov 19, 2022 at 11:06 AM Bertram Moshier <herc370390vm@...> wrote:
Hello,

I'm wondering if it is possible for a VM machine / CMS program to have Hercules change tapes?

I'm working on the VM Backup idea.? My thought is it would be great to automate the backup procedure by having the program have Hercules swap the tapes.

I know this would not be possible with real iron, but might be with emulation

Thank you for your time.?

Join [email protected] to automatically receive all group messages.