Solved

How to do  "execute several SST functions"  from SST level  to OS/400 in sequence.

Posted on 2006-06-16
4
476 Views
Last Modified: 2012-05-05
Hello,

for daily iSeries operations, i need a procedure for executing SST commands in dialog with OS/400:
For preparing a save on a backup partition after ESS flashcopy.
I have to execute several commands form SST in defined sequence, every day the same procedure . . ..

Example:

SIGNON on 0-Partition
STRSST
SST-Options 5 , 2 "Work with partitions"
Select partition with Option 1, POWER ON partition x.
(IPL-D, manual-mode)
Confirm rexpond screens
Confirm Language code screen
Option 1 : install LIC . .
Option 2 : LIC inst. and initailize system
confirm with F10
after about 10 Minutes : confirm , F3
SST screen Option 3: DST menu
SIGNON
CHGPWD
DST Option 4: "WORK WITH DISK UNITS"
Option 2 "WORK WITH DISK UNITS RECOVERY"
Option 16 "RECOVER MIRRORED LOAD SOURCE"
Confirm screen
SST Option 7 : start a service tool
Option 4 : hardware service manager
Option 4 : failed .. hardware resources
Option 4 : (remove all)
go back to DST:  F3 F3
DST: Option 1 "Perform an IPL"

and so on . . . .

How to "automatic" this proceduire, or another way to startup a backup partition after
Flashcopy with ESS sepearte disk-areas,  for executing independed SAVES form production on packup  partition ?

Regards
Robert


 




       

0
Comment
Question by:asdf13
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:tliotta
ID: 16938791
Robert:

You are _not_ asking for something trivial here. SST and LPAR are not the kinds of things normally handled within any program environment. Just responding correctly to possible error conditions is beyond the average AS/400 programmer.

But if you're really serious, you can start reading here:

http://www-03.ibm.com/servers/eserver/iseries/lpar/qyhchcop.htm

Then get to googling for everything you can find with searches such as [lpar sst api]. One example hit:

http://www.mcpressonline.com/mc?1@109.DNcpcwAf9li.0@.6b2a7b59!sectionid=.5bfbaebd

At least one related commercial offering is from Barsa Consulting:

http://www.barsaconsulting.com/aprm.htm

They might take a phone and tell you whether or not they provide any help for what you need.

Tom
0
 

Author Comment

by:asdf13
ID: 16939968
Hello Tom,
thanks for your advices.
I would like to reduce the problem, question to :

Necessary is a automatic procedure (program or skript), which responds to SST functions (dialog) wth  predefined Options from  WIN-level .
(The better way,  of course, may be a execution of a Programm, which executes the needed SST functions within SST level ).    
 
Best Regards
Robert
 
0
 
LVL 27

Accepted Solution

by:
tliotta earned 500 total points
ID: 16946342
Robert:

I'm not at all certain that what you want can reasonably be done; I'm not familiar enough with LPAR management. I don't know what services are available to any program while the functions you mentioned are running.

The QYHCHCOP API provides general LPAR services, but you're asking about LIC functions such as installs, etc. Those _cannot_ be programmed. They run in the virtual machine below programming interfaces.

OTOH, when one system (LPAR) controls another through terminal interfaces, there are possibilities. For example, telnet is simply a sockets connection with a protocol for the packets. If a function can be done via telnet, then a program can send the telnet packets. A possible way to ease that programming is to use Albert York's TNAPI. The only place I can find to download that today is:

http://www.ediconsulting.com/EDIdownloads.htm

If telnet can't work, then _maybe_ the Virtual Terminal APIs can handle it. Much harder, but more likely to be workable under various circumstances such as when TCP/IP isn't active. This is a V5R4 link, but it should be good for quite a few releases back; I don't recall those APIs changing much for a long time:

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/vt1a.htm

Essentially, you would be creating a program that would execute a kind of terminal "macro". Your program would open a terminal session and read the presentation space; then it would put values into the input buffer and send the buffer to the virtual terminal. If the functions can be done through a virtual terminal, then you can program it.

Tom

0
 

Author Comment

by:asdf13
ID: 16948655
Hello Tom,

thank you very much for your detailed discussion and very helpfull advices !

Additiionl  some background information - only for your information, in which context this problem occur :

The attached iSeries Environement are two iSeries, Mod 890 with several partitions, each.
The machines are installed remote ( about 40 km distance) and are using external disks within IBM ESS (SHARK)
The disk-areas  of  2 "pair partitions"  (produktion and "backup") are synchronised about PPRC (HOTBACKUP)
(In case ov disaster of the produktions machine, the backup machine will be started up with HOTBACKUP-disks and produktion switch to this partition)
In normal procedure, once a day, a flashcopoy within the ESS on the backup site, takes plase ( about 30 min)
and produces  consistent data on a additional disk-area, only for daily saves ( 3 TB, about 10 h).
Within this "procedure",  serveral funktions are to execute, some on 0-Partition, other on "Operations Console" of
the backup system. (The Flashcopy procedure itself is a task within ESS mangement)
(One "Scripting" procedure, like CA-macro is alreday in use, but this works not fine in every case.)

Thanks again for your support and
Best Rregards
Robert



 
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now