Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2006-06-16
4
Medium Priority
?
520 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

609 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