Hercules on Mac OSX gives a AUTOMOUNT error



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Hercules on Mac OSX gives a AUTOMOUNT error

Postby ndefreitas » Tue Nov 10, 2009 10:03 am

Here's my Hercules output...

*** start output ***

MacBook:conf nigeldefreitas$ sudo hercules -f hercules.cnf
Hercules Version 3.06
(c)Copyright 1999-2007 by Roger Bowler, Jan Jaeger, and others
Built on Jan 9 2009 at 20:10:10
Build information:
Modes: S/370 ESA/390 z/Arch
Max CPU Engines: 8
Using setreuid() for setting privileges
Dynamic loading support
Loadable module default base directory is /usr/local/lib/hercules
Using shared libraries
No External GUI support
HTTP Server support
Regular Expressions support
Automatic Operator support
Machine dependent assists: cmpxchg1 cmpxchg4 cmpxchg8
Running on MacBook.local Darwin-10.0.0.Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 i386 MP=2
Crypto module loaded (c) Copyright Bernard van der Helm, 2003-2008
Active: Message Security Assist
Message Security Assist Extension 1
Message Security Assist Extension 2
HHCCF020W Vector Facility support not configured
HHCCF077I Engine 0 set to type 0 (CP)
cckd invalid keyword: cache
HHCCF090I Default Allowed AUTOMOUNT directory = "/Users/nigeldefreitas/tapes/"
HHCCF091S Invalid AUTOMOUNT directory: "/tapes": No such file or directory
HHCIN900I Begin Hercules shutdown
HHCIN901I Releasing configuration
HHCIN902I Configuration release complete
HHCIN903I Calling termination routines
HHCHD900I Begin shutdown sequence
HHCHD901I Calling hdl_term
HHCHD950I Begin HDL termination sequence
HHCHD951I Calling module *Hercules cleanup routine
HHCHD952I Module *Hercules cleanup complete
HHCHD959I HDL Termination sequence complete
HHCHD902I hdl_term complete
HHCHD901I Calling logger_term
HHCLG014I logger thread terminating
HHCHD902I logger_term complete
HHCHD909I Shutdown sequence complete
HHCIN904I All termination routines complete
HHCIN909I Hercules shutdown complete
HHCHD900I Begin shutdown sequence
HHCHD909I Shutdown sequence complete
MacBook:conf nigeldefreitas$

*** end output ***

and the config file I'm using....

*** start cnf file ***

####################################################################
# HERCULES EMULATOR CONTROL FILE #
# (Note: not all parameters are shown) #
####################################################################


#
# System parameters
#


ARCHMODE ESA/390
OSTAILOR OS/390
LOADPARM 0120....

CPUSERIAL 000611
CPUMODEL 3090
CPUVERID FD
LPARNAME HERCULES
MODEL EMULATOR
PLANT ZZ
MANUFACTURER HRC
MAINSIZE 64
XPNDSIZE 0
NUMCPU 1
NUMVEC 1
ENGINES CP
SYSEPOCH 1900
YROFFSET -28
TZOFFSET -0500

HTTPROOT /usr/local/share/hercules/
HTTPPORT 8081 NOAUTH

CCKD cache=8
SHRDPORT 3990

PANTITLE "My own private MAINFRAME!"
PANRATE FAST
LOGOPT TIMESTAMP
CODEPAGE default
CNSLPORT 3270
CONKPALV (3,1,10)
LEGACYSENSEID OFF

HERCPRIO 0
TODPRIO -20
DEVPRIO 8
CPUPRIO 15

TIMERINT DEFAULT
TODDRAG 1.0
DEVTMAX 8

DIAG8CMD disable
SHCMDOPT disable

DEFSYM TAPEDIR "$(HOME)/tapes"
AUTOMOUNT $(TAPEDIR)
AUTOMOUNT +/tapes
AUTOMOUNT -/tapes/vault

MODPATH /usr/local/hercules
LDMOD dyncrypt

PGMPRDOS restricted
ECPSVM no
ASN_AND_LX_REUSE disable

AUTO_SCSI_MOUNT no
MOUNTED_TAPE_REINIT allow

INCLUDE mydevs.cfg
IGNORE INCLUDE_ERRORS
INCLUDE optdevs.cfg


#
# Device statements
#


0009 3215-C /

000A 1442 adrdmprs.rdr
000C 3505 jcl.txt ascii trunc
000D 3525 pch00d.txt ascii
000E 1403 prt00e.txt

001F 3270 * 192.168.0.1
0200.4 3270 * 192.168.0.0 255.255.255.0
0220.8 3270 GROUP1 192.168.100.0 255.255.255.0
0228.8 3270 GROUP2
0230.16 3270

0000 SYSG SYSGCONS

0120 3380 ${DASD_PATH=dasd/}mvsv5r.120
0121 3380 ${DASD_PATH=dasd/}mvsv5d.121
0122 3380 ${DASD_PATH=dasd/}mvswk1.122
0123 3380 192.168.1.100

0140 3370 dosres.140
0141 3370 syswk1.141
0300 3370 sysres.300

0400 CTCT 30880 192.168.100.2 30880 2048
0401 CTCT 30881 192.168.100.2 30881 2048
0420.2 CTCI 192.168.200.1 192.168.200.2
# 0440.2 LCS -n /dev/net/tun 192.168.200.2

0580 3420 /dev/nst0 # SCSI (Linux or Windows)
0581 3420 \\.\Tape0 # SCSI (Windows only)
0582 3420 ickdsf.aws noautomount
0583 3420 /cdrom/tapes/uaa196.tdf
0584-0587 3420 $(TAPEDIR)/volumes.$(CUU) maxsizeM=170 eotmargin=131072

0590 3480 /dev/nst0 --no-erg --blkid-32 # Quantum DLT SCSI

0023 2703 lport=3780 rhost=localhost rport=3781 dial=no

*** end cnf file ***

Any ideas what I'm doing incorrectly here? I tried creating a folder called "tapes" in the location specified, but that had no effect. I commented the LCS line but that had no effect: # 0440.2 LCS -n /dev/net/tun 192.168.200.2

Thanks.
ndefreitas
 
Posts: 3
Joined: Tue Nov 10, 2009 9:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: Hercules on Mac OSX gives a AUTOMOUNT error

Postby dick scherrer » Tue Nov 10, 2009 10:24 am

Hello and welcome to the forum,

As this is primarily an IBM Mainframe forum, i suspect you would get more useful replies from the Hercules group:

http://www.hercules-390.org/hercsupp.html
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Hercules on Mac OSX gives a AUTOMOUNT error

Postby enrico-sorichetti » Tue Nov 10, 2009 4:57 pm

HHCCF091S Invalid AUTOMOUNT directory: "/tapes": No such file or directory

what does the message suggest ??

did You install Matthias Nissler tun tap kext extensions ??
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Hercules on Mac OSX gives a AUTOMOUNT error

Postby ndefreitas » Tue Nov 10, 2009 5:58 pm

enrico-sorichetti wrote:did You install Matthias Nissler tun tap kext extensions ??


Yes - I installed tun tap, but didn't perform any additional configuration (just installed with defaults). I'm not sure why I get the tapes message even after I manually create the tapes folder in OS X. I'm using this command to launch "sudo hercules -f hercules.cnf" where my hercules.cnf file is located here: /Users/nigeldefreitas/Projects/Hercules - Mainframe Emulator/conf/

Thanks for your time - I'll also try the other Hercules forum.
ndefreitas
 
Posts: 3
Joined: Tue Nov 10, 2009 9:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: Hercules on Mac OSX gives a AUTOMOUNT error

Postby enrico-sorichetti » Wed Nov 11, 2009 1:00 am

I noticed in Your conf an ... AUTOMOUNT +/tapes that' s the culprit
look at the bolded sentence

from the hercules docs

AUTOMOUNT [±]directory
specifies the host system directory where the guest is allowed or not allowed to automatically load virtual tape volumes from. Prefix allowable directories with a '+' plus sign and unallowable directories with a '-' minus sign. The default prefix if neither is specified is the '+' plus sign (i.e. an allowable directory).

Caution: Enabling this feature may have security consequences depending on which allowable host system directories you specify as well as how your guest operating system enforces authorized use of whatever automount functionality it happens to utilize.

All host system virtual tape volumes to be "automounted" by the guest must reside within one of the specified allowable host system directories or any of its subdirectories while not also being within any of the specified unallowable directories or any of their subdirectories, in order for the guest-invoked automount to be accepted.

Note: specifying a disallowed automount directory does not preclude the Hercules operator from manually mounting any file s/he wishes via the devinit panel command -- even one in a currently defined "disallowed" automount directory. The AUTOMOUNT statement only controls guest-invoked automatic tape mounts and not manual tape mounts performed by the Hercules operator.

All directories must be specified on separate statements, but as many statements as needed may be specified in order to describe the desired allowable/unallowable directories layout. For convenience, an automount panel command is also provided to dynamically add/remove new/existing allowable/unallowable automount directories at any time.

At least one allowable directory should be defined, but defaults to the current directory if one is not specifically defined (i.e. if only unallowable directories are specified, the current directory then becomes the only defined allowable automount directory by default).

All specified directories are always resolved to fully-qualified absolute directory paths before being saved.

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Hercules on Mac OSX gives a AUTOMOUNT error

Postby ndefreitas » Wed Nov 11, 2009 5:02 am

Thanks - that worked! I just commented that line. I have a command prompt now. Does this come with TSO, or is that a licensed product I'd need to install?
ndefreitas
 
Posts: 3
Joined: Tue Nov 10, 2009 9:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: Hercules on Mac OSX gives a AUTOMOUNT error

Postby enrico-sorichetti » Wed Nov 11, 2009 4:39 pm

if You are following the rules
the operating system You are trying to IPL will have TSO, but not ISPF
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post