Solved

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

Posted on 2006-06-16
4
479 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RPG IV and RPG ILE book 4 411
DB2 iSeries Combine Results of 2 Selects (nested Join?) ? 2 73
AS400 user directory 6 98
BRMS - TSM API DSMERROR.LOG 5 14
With the rapid rise in mobile usage, mobile devices are here to stay and have become an integral part of doing business. Here are 9 great apps for your BYOD environment.
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

12 Experts available now in Live!

Get 1:1 Help Now