Python library for MVS/CE automation
Project description
MVS Automation Python Library
This library allows the use of MVS/CE in an automated fashion. This can be used for deploying XMI files, pushing out updates, building software, creating custom MVS deployments.
Using this library requires a recent version of hercules SDL and one of MVS/CE, TK5, or TK4-.
TK5/TK4-: If you're using either TK5 or TK4-, they must be IPL'd before hand. Adding auto IPL of those two flavors will come at a later date.
Example:
Submit JCL and check the results, attach a device and send an operator command::
import sys
from automvs import automation
if len(sys.argv) != 2:
print("Usage: python go_mvs.py <MVS system> <MVS PATH> username password")
print(" MVS system: one of MVSCE, TK4- or TK5\n MVS PATH: /path/to/the/system. E.g. /home/test/mvs/tk4-")
sys.exit(1)
mvs_type = sys.argv[1]
folder = sys.argv[2]
username = sys.argv[3]
password = sys.argv[4]
punch_port = 3505
web_port = 8038
ip = '127.0.0.1'
build = automation(
system=mvs_type,
system_path=folder,
ip = ip,
punch_port = punch_port,
web_port = web_port,
username=username,
password=password
)
cwd = os.getcwd()
if mvs_type == 'MVSCE'
build.ipl(clpa=False)
try:
print("Submitting {}/jcl/upload.jcl".format(cwd))
with open("{}/jcl/upload.jcl".format(cwd),"r") as jcl:
build.submit(jcl.read())
build.wait_for_string("HASP250 UPLOAD IS PURGED")
build.check_maxcc("UPLOAD")
build.send_herc('devinit 170 tape/zdlib1.het')
build.wait_for_string("IEF238D SMP4P44 - REPLY DEVICE NAME OR 'CANCEL'.")
build.send_reply('170')
build.send_oper("$DU")
finally:
if mvs_type == 'MVSCE'
build.quit_hercules()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file automvs-0.1.0.tar.gz
.
File metadata
- Download URL: automvs-0.1.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cc400f36b0331c7dc08c02c21a828da58e87ba3f9db18720698437c7d1d66c3 |
|
MD5 | 2cd97bc7890e2409137014cd0bca2626 |
|
BLAKE2b-256 | 45740086c67bc40de18c4543b2cffd4e1f4befb204025c92707a24d4fd6c795d |
File details
Details for the file automvs-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: automvs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cf2b5d08e851824cf35427e65613a1e3a9a91c01e7762ad5234035c1712e538 |
|
MD5 | 54d7a2080c8897bb65a9361fb449d4e1 |
|
BLAKE2b-256 | 5c52de1416a975907a15a407c8c0b05273e8194287c5f0dd7fd478288cea6d94 |