Hercules Version 3: Creating DASD

This page describes various ways of creating and loading DASD volumes for use with Hercules.


Contents

Using pre-built DASD images

Creating, formatting, and loading DASD volumes

Building a DASD volume

You will need to amend the configuration file hercules.cnf to reflect your device layout and intended mode of operation (S/370, ESA/390, or z/Architecture). See the Hercules Configuration File page for a complete description.


Creating DASD volumes

The Creating Hercules DASD page describes various methods of creating and loading virtual DASD volumes. The compressed CKD DASD support is described in this page.


Operating Procedure

Note: If you intend to run any licensed software on your PC using Hercules, it is your responsibility to ensure that you do not violate the software vendor's licensing terms.

Loading a standalone program or operating system

To start Hercules enter this command at the Unix shell prompt:

hercules [-f filename] [> logfile]

where filename is the name of the configuration file (the default is hercules.cnf), and logfile is an optional log file which will receive a copy of all messages displayed on the control panel.

Next connect a tn3270 client to the console port (normally port 3270). The client will be connected to the first 3270 device address specified in the configuration file (this should be the master console address). If your master console is a 1052 or 3215, connect a telnet client instead of a tn3270 client.

Now you can enter an ipl command from the control panel.

Panel commands

    Command      Description...
    -------      -----------------------------------------------
    ?            list all commands
    help         command specific help

    *            (log comment to syslog)

    hst          history of commands
    log          direct log output
    version      display version information

    quit         terminate the emulator
    exit         (synonym for 'quit')

    cpu          define target cpu for panel display and commands

    start        start CPU (or printer device if argument given)
    stop         stop CPU (or printer device if argument given)

    startall     start all CPU's
    stopall      stop all CPU's

    cf           configure CPU online or offline
    cfall        configure all CPU's online or offline

    .reply       scp command
    !message     scp priority messsage
    ssd          Signal Shutdown

    ptt          display pthread trace

    i            generate I/O attention interrupt for device
    ext          generate external interrupt
    restart      generate restart interrupt
    store        store CPU status at absolute zero
    archmode     set architecture mode
    loadparm     set IPL parameter

    ipl          IPL Normal from device xxxx
    iplc         IPL Clear from device xxxx
    sysreset     Issue SYSTEM Reset manual operation
    sysclear     Issue SYSTEM Clear Reset manual operation

    psw          display program status word
    gpr          display general purpose registers
    fpr          display floating point registers
    cr           display control registers
    ar           display access registers
    pr           display prefix register
    clocks       display tod clkc and cpu timer
    ipending     display pending interrupts
    ds           display subchannel
    r            display or alter real storage
    v            display or alter virtual storage
    u            disassemble storage
    devtmax      display or set max device threads
    k            display cckd internal trace

    attach       configure device
    detach       remove device
    define       rename device
    devinit      reinitialize device
    devlist      list all devices

    scsimount    automatic SCSI tape mounts

    sh           shell command
    cache        cache command
    cckd         cckd command
    shrd         shrd command
    quiet        toggle automatic refresh of panel display data

    b            set breakpoint
    b-           delete breakpoint
    g            turn off instruction stepping and start CPU

    ostailor     trace program interrupts
    pgmtrace     trace program interrupts
    savecore     save a core image to file
    loadcore     load a core image file
    loadtext     load a text deck file

    ldmod        load a module
    rmmod        delete a module
    lsmod        list dynamic modules
    lsdep        list module dependencies

    iodelay      display or set I/O delay value
    tt32stats    display CTCI-W32 statistics
    toddrag      display or set TOD clock drag factor
    panrate      display or set rate at which console refreshes
    syncio       display syncio devices statistics
    maxrates     display maximum observed MIPS/SIOS rate for the
                 defined interval or define a new reporting interval

    script       Run a sequence of panel commands contained in a file
    cscript      Cancels a running script thread

    evm          ECPS:VM Commands (Deprecated)
    ecpsvm       ECPS:VM Commands

    aea          Display AEA tables
    aia          Display AIA fields
    tlb          Display TLB tables

    sizeof       Display size of structures

    suspend      Suspend hercules
    resume       Resume hercules

    sf+          add shadow file
    sf-          delete shadow file
    sf=          rename shadow file
    sfc          compress shadow files
    sfd          display shadow file stats

    t{+/-}       turn instruction tracing on/off
    s{+/-}       turn instruction stepping on/off
    t{+/-}dev    turn CCW tracing on/off
    s{+/-}dev    turn CCW stepping on/off
    t{+/-}CKD    turn CKD_KEY tracing on/off
    f{+/-}adr    mark frames unusable/usable

The ipl command may also be used to perform a load from cdrom or server. For example if a standard SuSE S/390 Linux distribution CD is loaded and mounted on /cdrom for example, this cdrom may then be ipl-ed by: ipl /cdrom/suse.ins

The attach and detach commands are used to dynamically add or remove devices from the configuration, and the define command can be used to alter the device number of an existing device.

The devinit command can be used to reopen an existing device. The args (if specified) override the arguments specified in the configuration file for this device. The device type cannot be changed and must not be specified. This command can be used to rewind a tape, to mount a new tape or disk image file on an existing device, to load a new card deck into a reader, or to close and reopen a printer or punch device.

In single-step mode, pressing the enter key will advance to the next instruction.

There is also an alternate semi-graphical control panel. Press Esc to switch between the command line format and the semi-graphical format. Press ? to obtain help in either control panel.

Some commands also offer additional help information regarding their syntax, etc. Enter  "help <command name>"   to display this additional help information. (Note: not every command supports help)

The  hercules.rc  (run-commands)  file

Hercules also supports the ability to automatically execute panel commands upon startup via the 'run-commands' file. If the run-commands file is found to exist when Hercules starts, each line contained within it is read and interpreted as a panel command exactly as if the command were entered from the HMC system console.

The default filename for the run-commands file is "hercules.rc", but may be overridden by setting the "HERCULES_RC" environment variable to the desired filename.

Except for the 'pause' command (see paragraph further below), each command read from the run-commands file is logged to the console preceded by a '> ' (greater-than sign) character so you can easily distinguish between panel commands entered from the keyboard from those entered via the .rc file.

Lines starting with '#' are treated as "silent comments" and are thus not logged to the console. Line starting with '*' however are treated as "loud comments" and will be logged.

In addition to being able to execute any valid panel command (including the 'sh' shell command) via the run-commands file, an additional 'pause nnn' command is supported in order to introduce a brief delay before reading and processing the next line in the file. The value nnn can be any number from 1 to 999 and specifies the number of seconds to delay before reading the next line. Creative use of the run-commands file can completely automate Hercules startup.


Technical Support

Please see our Technical Support web page.


back

Last updated $Date: 2005/12/29 10:38:33 $ $Revision: 1.39 $

./usr/share/hercules/herclic.html0000644000000000000000000001167110357054713015750 0ustar rootroot Hercules: Q Public License

THE Q PUBLIC LICENSE version 1.0


Copyright (C) 1999 Trolltech AS, Norway.
Everyone is permitted to copy and
distribute this license document.

The intent of this license is to establish freedom to share and change the software regulated by this license under the open source model.

This license applies to any software containing a notice placed by the copyright holder saying that it may be distributed under the terms of the Q Public License version 1.0. Such software is herein referred to as the Software. This license covers modification and distribution of the Software, use of third-party application programs based on the Software, and development of free software which uses the Software.

Granted Rights

1. You are granted the non-exclusive rights set forth in this license provided you agree to and comply with any and all conditions in this license. Whole or partial distribution of the Software, or software items that link with the Software, in any form signifies acceptance of this license.

2. You may copy and distribute the Software in unmodified form provided that the entire package, including - but not restricted to - copyright, trademark notices and disclaimers, as released by the initial developer of the Software, is distributed.

3. You may make modifications to the Software and distribute your modifications, in a form that is separate from the Software, such as patches. The following restrictions apply to modifications:

a. Modifications must not alter or remove any copyright notices in the Software.

b. When modifications to the Software are released under this license, a non-exclusive royalty-free right is granted to the initial developer of the Software to distribute your modification in future versions of the Software provided such versions remain available under these terms in addition to any other license(s) of the initial developer.

4. You may distribute machine-executable forms of the Software or machine-executable forms of modified versions of the Software, provided that you meet these restrictions:

a. You must include this license document in the distribution.

b. You must ensure that all recipients of the machine-executable forms are also able to receive the complete machine-readable source code to the distributed Software, including all modifications, without any charge beyond the costs of data transfer, and place prominent notices in the distribution explaining this.

c. You must ensure that all modifications included in the machine-executable forms are available under the terms of this license.

5. You may use the original or modified versions of the Software to compile, link and run application programs legally developed by you or by others.

6. You may develop application programs, reusable components and other software items that link with the original or modified versions of the Software. These items, when distributed, are subject to the following requirements:

a. You must ensure that all recipients of machine-executable forms of these items are also able to receive and use the complete machine-readable source code to the items without any charge beyond the costs of data transfer.

b. You must explicitly license all recipients of your items to use and re-distribute original and modified versions of the items in both machine-executable and source code forms. The recipients must be able to do so without any charges whatsoever, and they must be able to re-distribute to anyone they choose.

c. If the items are not available to the general public, and the initial developer of the Software requests a copy of the items, then you must supply one.

Limitations of Liability

In no event shall the initial developers or copyright holders be liable for any damages whatsoever, including - but not restricted to - lost revenue or profits or other direct, indirect, special, incidental or consequential damages, even if they have been advised of the possibility of such damages, except to the extent invariable law, if any, provides otherwise.

No Warranty

The Software and this license document are provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Choice of Law

This license is governed by the Laws of England.


back

Last updated 3 December 2000 ./usr/share/hercules/hercload.html0000644000000000000000000005373310357054713016125 0ustar rootroot Hercules Version 3: Creating DASD

Hercules Version 3: Creating DASD

This page describes various ways of creating and loading DASD volumes for use with Hercules.


Contents

Using pre-built DASD images

Creating, formatting, and loading DASD volumes

Building a DASD volume

You will need to amend the configuration file hercules.cnf to reflect your device layout and intended mode of operation (S/370, ESA/390, or z/Architecture). See the Hercules Configuration File page for a complete description.


Creating DASD volumes

The Creating Hercules DASD page describes various methods of creating and loading virtual DASD volumes. The compressed CKD DASD support is described in this page.


Operating Procedure

Note: If you intend to run any licensed software on your PC using Hercules, it is your responsibility to ensure that you do not violate the software vendor's licensing terms.

Loading a standalone program or operating system

To start Hercules enter this command at the Unix shell prompt:

hercules [-f filename] [> logfile]

where filename is the name of the configuration file (the default is hercules.cnf), and logfile is an optional log file which will receive a copy of all messages displayed on the control panel.

Next connect a tn3270 client to the console port (normally port 3270). The client will be connected to the first 3270 device address specified in the configuration file (this should be the master console address). If your master console is a 1052 or 3215, connect a telnet client instead of a tn3270 client.

Now you can enter an ipl command from the control panel.

Panel commands

    Command      Description...
    -------      -----------------------------------------------
    ?            list all commands
    help         command specific help

    *            (log comment to syslog)

    hst          history of commands
    log          direct log output
    version      display version information

    quit         terminate the emulator
    exit         (synonym for 'quit')

    cpu          define target cpu for panel display and commands

    start        start CPU (or printer device if argument given)
    stop         stop CPU (or printer device if argument given)

    startall     start all CPU's
    stopall      stop all CPU's

    cf           configure CPU online or offline
    cfall        configure all CPU's online or offline

    .reply       scp command
    !message     scp priority messsage
    ssd          Signal Shutdown

    ptt          display pthread trace

    i            generate I/O attention interrupt for device
    ext          generate external interrupt
    restart      generate restart interrupt
    store        store CPU status at absolute zero
    archmode     set architecture mode
    loadparm     set IPL parameter

    ipl          IPL Normal from device xxxx
    iplc         IPL Clear from device xxxx
    sysreset     Issue SYSTEM Reset manual operation
    sysclear     Issue SYSTEM Clear Reset manual operation

    psw          display program status word
    gpr          display general purpose registers
    fpr          display floating point registers
    cr           display control registers
    ar           display access registers
    pr           display prefix register
    clocks       display tod clkc and cpu timer
    ipending     display pending interrupts
    ds           display subchannel
    r            display or alter real storage
    v            display or alter virtual storage
    u            disassemble storage
    devtmax      display or set max device threads
    k            display cckd internal trace

    attach       configure device
    detach       remove device
    define       rename device
    devinit      reinitialize device
    devlist      list all devices

    scsimount    automatic SCSI tape mounts

    sh           shell command
    cache        cache command
    cckd         cckd command
    shrd         shrd command
    quiet        toggle automatic refresh of panel display data

    b            set breakpoint
    b-           delete breakpoint
    g            turn off instruction stepping and start CPU

    ostailor     trace program interrupts
    pgmtrace     trace program interrupts
    savecore     save a core image to file
    loadcore     load a core image file
    loadtext     load a text deck file

    ldmod        load a module
    rmmod        delete a module
    lsmod        list dynamic modules
    lsdep        list module dependencies

    iodelay      display or set I/O delay value
    tt32stats    display CTCI-W32 statistics
    toddrag      display or set TOD clock drag factor
    panrate      display or set rate at which console refreshes
    syncio       display syncio devices statistics
    maxrates     display maximum observed MIPS/SIOS rate for the
                 defined interval or define a new reporting interval

    script       Run a sequence of panel commands contained in a file
    cscript      Cancels a running script thread

    evm          ECPS:VM Commands (Deprecated)
    ecpsvm       ECPS:VM Commands

    aea          Display AEA tables
    aia          Display AIA fields
    tlb          Display TLB tables

    sizeof       Display size of stru