Hercules (Fish) Gui and the command line and DIAG 8

View: New views
6 Messages — Rating Filter:   Alert me  

Hercules (Fish) Gui and the command line and DIAG 8

by Rocky-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Couple of questions

1) is there a way to enter multiple commands in the GUI on a single line?

ex. SF+a80,SF+A81,SF+a83   ......

2) or is there a way to accomplish the same thing with some kind of command file?

I have 32 disks defined and I don't want keep backing them up every week -
On the other hand entering the comamands one by one seems pretty primitive and I already made several errors of ommission.
--------------------------------------

Different subject --- General knowledge question.
curious

3) is there a way to pass commands to Hercules or the GUI from Z/OS?

I know that it can be done in VM -- Dave wade helped me out with that last year and I retrofitted his fixes from VM6 to a later version of VMSP. Worked fine on an old version of VMSP/5. Very version specific but it was fun doing. Mounted tapes from a REXX exec.

But the question is:  -- Is there something similar for MVS,OS and Z/OS - not running under VM.

I realize that this is not straight forward but perhaps someone gave it some thought.

Since everything now runs under something else, perhaps somebody came up with an idea.

Actually the newer operating systems should have something already built-in.

Roc





Re: Hercules (Fish) Gui and the command line and DIAG 8

by Mike Schwab :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SF+* does all drives.

On Thu, Oct 29, 2009 at 5:07 AM, rocsystems <rocsystems@...> wrote:

> Couple of questions
>
> 1) is there a way to enter multiple commands in the GUI on a single line?
>
> ex. SF+a80,SF+A81,SF+a83   ......
>
> 2) or is there a way to accomplish the same thing with some kind of command file?
>
> I have 32 disks defined and I don't want keep backing them up every week -
> On the other hand entering the comamands one by one seems pretty primitive and I already made several errors of ommission.
> --------------------------------------

--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

RE: Hercules (Fish) Gui and the command line and DIAG 8

by Rocky-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yup

 

I found that in a Web Page  after I wrote the E-mail

 

Seems that whenever I search for a couple of hours and don't find the answer
-

And finally in despair, I put it out on the chat - half an hour later I find
the solution.

 

But thanks and maybe it will help someone else t find it easier.

 

Still interested to know if there is a way to pass commands to the host
environment from MVS/OS/Zos.

 

Thanks again

Roc

 

  _____  

From: hercules-390@... [mailto:hercules-390@...] On
Behalf Of Mike Schwab
Sent: Thursday, October 29, 2009 18:01
To: hercules-390@...
Subject: Re: [hercules-390] Hercules (Fish) Gui and the command line and
DIAG 8

 

 

SF+* does all drives.

On Thu, Oct 29, 2009 at 5:07 AM, rocsystems <rocsystems@gmail.
<mailto:rocsystems%40gmail.com> com> wrote:
> Couple of questions
>
> 1) is there a way to enter multiple commands in the GUI on a single line?
>
> ex. SF+a80,SF+A81,SF+a83   ......
>
> 2) or is there a way to accomplish the same thing with some kind of
command file?
>
> I have 32 disks defined and I don't want keep backing them up every week -
> On the other hand entering the comamands one by one seems pretty primitive
and I already made several errors of ommission.
> --------------------------------------

--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?





[Non-text portions of this message have been removed]


RE: Hercules (Fish) Gui and the command line and DIAG 8

by fish-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

rocsystems wrote:

> Couple of questions
>
> 1) is there a way to enter multiple commands in the GUI
> on a single line?
>
> ex. SF+a80,SF+A81,SF+a83   ......

No.

But you might be interested to know that "sf+*" will:

  "...create a (new) shadow file for all dasd devices
   that have a shadow file defined in their configuration
   file definition statements."

  http://www.hercules-390.org/cckddasd.html#shadowfiles


You might also be interested to know this is also mentioned on page 260 of
our User Reference Manual and on page 40 of our Reference Summary, the
download links for both of which are provided in the "PDF manuals:" section
of our main web page:

  http://www.hercules-390.org/

    - (http://www.hercules-390.org/HerculesUserReference.pdf)
    - (http://www.hercules-390.org/HerculesReferenceSummary.pdf)


> 2) or is there a way to accomplish the same thing with some kind of
> command file?

Yes. See User Reference page 258 and Reference Summary page 40.


[...]
> 3) is there a way to pass commands to Hercules or the GUI from Z/OS?

To the GUI? No.

To Hercules? Yes. It's called the "DIAG8" (diagnose 8) interface, and others
have written tools to exploit its use. One such tool is called "HERCMD"
(Hercules Command). There are some download links for a version of it in the
group's files area:

  http://tech.groups.yahoo.com/group/hercules-390/files/

but as I understand it, it's not exactly the same as Philippe Leite's
version provided in CBTTAPE File 589:

  http://www.cbttape.org/cbtdowns.htm

I suspect one or the other will probably work on z/OS with no or very little
change.


[...]
> But the question is:  -- Is there something similar for MVS,OS
> and Z/OS - not running under VM.

I believe HERCMD should fit the bill.

HTH

- --
"Fish" (David B. Trout) - fish@...
Fight Spam! Join CAUCE! <http://www.cauce.org/>
7 reasons why HTML email is a bad thing
http://www.georgedillon.com/web/html_email_is_evil.shtml
PGP key fingerprints:
DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A
RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52





-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.8.0 (Build 2158)
Charset: us-ascii

wj8DBQFK6dNfSPXX9MTuPioRAuDUAKCqH2ajJ4FuytVXnKCbNf4xe9Y1fgCg0FxX
bsDFfjjunfSPfeJSkkYvtCE=
=V71e
-----END PGP SIGNATURE-----

RE: Hercules (Fish) Gui and the command line and DIAG 8

by Dave Wade :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> -----Original Message-----
> From: hercules-390@...
> [mailto:hercules-390@...] On Behalf Of rocsystems
> Sent: 29 October 2009 10:08
> To: hercules-390@...
> Subject: [hercules-390] Hercules (Fish) Gui and the command
> line and DIAG 8
>
>
> Couple of questions
>
> 1) is there a way to enter multiple commands in the GUI on a
> single line?
>
> ex. SF+a80,SF+A81,SF+a83   ......
>
> 2) or is there a way to accomplish the same thing with some
> kind of command file?
>
> I have 32 disks defined and I don't want keep backing them up
> every week -
> On the other hand entering the comamands one by one seems
> pretty primitive and I already made several errors of ommission.
> --------------------------------------
>
> Different subject --- General knowledge question.
> curious
>
> 3) is there a way to pass commands to Hercules or the GUI from Z/OS?
>
> I know that it can be done in VM -- Dave wade helped me out
> with that last year and I retrofitted his fixes from VM6 to a
> later version of VMSP. Worked fine on an old version of
> VMSP/5. Very version specific but it was fun doing. Mounted
> tapes from a REXX exec.
>
> But the question is:  -- Is there something similar for
> MVS,OS and Z/OS - not running under VM.

Commands are passed to Hercules using the same interface that's provided in
VM for a guest to pass commands to CP.
So if a program running in a zVM virtual machine issues a DIAG D4 with
appropriate parameters then the it can issue a CP command. If zOS issues the
same DIAG D4 running under Hercules then the commands will be passed to
Hercules.
So appart from the the fact that you may need a mixed case command for
Hercules any Mod for issuing comamnds to VM should work for issueing
commands to Hercules.

There are a couple of Hercules paramters to enable/disable this interface as
it can be dangerous. Check the docs.


>
> I realize that this is not straight forward but perhaps
> someone gave it some thought.
>
> Since everything now runs under something else, perhaps
> somebody came up with an idea.
>
> Actually the newer operating systems should have something
> already built-in.
>
> Roc
>
>


RE: Hercules (Fish) Gui and the command line and DIAG 8

by Rocky-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dave W. & Dave B.

 

Thanks for the pointers,

The version from the CBT Tape works just fine under Z/OS native.

 

Quick compilation and TSO HERCMD xxxxxx   now makes it to Hercules and I can
see it on the console and in the GUI.

Need to be in an authorized library and needs to an authorized command

 

Security might be an issue here if you are really running something similar
to a production environment, but that is probably easily controllable.

 

Comparing this version, to all the changes we had to make to get the VM
Version to work this is very straight forward.

 

Thanks again,

Roc

 

  _____  

From: hercules-390@... [mailto:hercules-390@...] On
Behalf Of Dave Wade
Sent: Thursday, October 29, 2009 21:45
To: hercules-390@...
Subject: RE: [hercules-390] Hercules (Fish) Gui and the command line and
DIAG 8

 

 

> -----Original Message-----
> From: hercules-390@ <mailto:hercules-390%40yahoogroups.com>
yahoogroups.com
> [mailto:hercules-390@ <mailto:hercules-390%40yahoogroups.com>
yahoogroups.com] On Behalf Of rocsystems

> Sent: 29 October 2009 10:08
> To: hercules-390@ <mailto:hercules-390%40yahoogroups.com> yahoogroups.com
> Subject: [hercules-390] Hercules (Fish) Gui and the command
> line and DIAG 8
>
>
> Couple of questions
>
> 1) is there a way to enter multiple commands in the GUI on a
> single line?
>
> ex. SF+a80,SF+A81,SF+a83 ......
>
> 2) or is there a way to accomplish the same thing with some
> kind of command file?
>
> I have 32 disks defined and I don't want keep backing them up
> every week -
> On the other hand entering the comamands one by one seems
> pretty primitive and I already made several errors of ommission.
> --------------------------------------
>
> Different subject --- General knowledge question.
> curious
>
> 3) is there a way to pass commands to Hercules or the GUI from Z/OS?
>
> I know that it can be done in VM -- Dave wade helped me out
> with that last year and I retrofitted his fixes from VM6 to a
> later version of VMSP. Worked fine on an old version of
> VMSP/5. Very version specific but it was fun doing. Mounted
> tapes from a REXX exec.
>
> But the question is: -- Is there something similar for
> MVS,OS and Z/OS - not running under VM.

Commands are passed to Hercules using the same interface that's provided in
VM for a guest to pass commands to CP.
So if a program running in a zVM virtual machine issues a DIAG D4 with
appropriate parameters then the it can issue a CP command. If zOS issues the
same DIAG D4 running under Hercules then the commands will be passed to
Hercules.
So appart from the the fact that you may need a mixed case command for
Hercules any Mod for issuing comamnds to VM should work for issueing
commands to Hercules.

There are a couple of Hercules paramters to enable/disable this interface as
it can be dangerous. Check the docs.

>
> I realize that this is not straight forward but perhaps
> someone gave it some thought.
>
> Since everything now runs under something else, perhaps
> somebody came up with an idea.
>
> Actually the newer operating systems should have something
> already built-in.
>
> Roc
>
>





[Non-text portions of this message have been removed]