cleancut-fluent

(Answer) (Category) iSeries / AS400 FAQ : (Category) Operations :
How can I tell when my system is in restricted state after an ENDSBS *ALL?
Execute the command for ENDSBS *ALL *IMMED

Then go into a loop, re-issuing the command every 15 seconds. If you get a CPF1035 message you are not yet down, so keep re-looping.

Once you no longer get the message, you are in a restricted state.

(posted to midrange-l by Al Barsa on 5/28/02)
david

Caveat: My knowledge is based on V4R1 systems...I do not know if this has changed in more recent releases.

It's been long enough I don't remember exactly ALL of the subsystems that go down when you do this command, but I do know (1) You should be executing that command from QCTL subsystem, and (2) QINTER, and I believe QBATCH, are among the ones that go down and stay down when you take it to a restricted state.

Also, in QSYSOPR will be a message "System ended to a restricted state".
tpsuhr

just use the command WRKSBS to list the status off all the subsystems after you have submitted teh ENDSBS commnad. Wait for a while.. Keep refreshing the sreen until you see all the subsystems with "END" Status and disappear one by one subsequently. finally you will find the QCTL subsystem left on the list with the status "RSTD"
Cheers Anil
anilrao
just use the command WRKSBS to list the status off all the subsystems after you have submitted teh ENDSBS commnad. Wait for a while.. Keep refreshing the sreen until you see all the subsystems with "END" Status and disappear one by one subsequently. finally you will find the ONLY subsystem left on the list with the status "RSTD"
Cheers Anil
anilrao
Not to be rude, but if you do not know the answer to this questions, you should not be entering commands such as ENDSBS *ALL
mradatti
The easiest way is to wait a while and do a dspmsg qsysopr if not in break mode. It will say System is in Restricted condition.....Rick
mcdermottr
You can get into a restricted state a few ways...
ENDSBS *ALL ENDSYS or, upon IPL, CHGIPLA specify *YES for STRRSTD
ENDSYS will kill the job the command is issued from if it's not the console, ENDSBS *ALL will not.
It's not a bad idea to use the *NOJOBLOG parameter as well to prevent writing logs for the jobs that end, regardless of which command you use.
As for determining when you are in restricted state:
1. You can use the WRKSBS command, as mentioned. When the system is in a restricted state the only subsystem listed will be the controlling one with status RSTD.
2. You can also look for message CPF0968 in the QSYSOPR queue.
3. There is a retrieve system status API, QWCRSSTS, that will return a value to signify the system is in a restricted state (see API for details)
4. SAVSYS and RCLSTG commands will verify the system is in restricted state. If the system is NOT in restricted state SAVSYS will issue CPF3785 and RCLSTG will issue CPF8209.
publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/experience/wmrstate53.pdf
egami_esrever
once it shuts down all subsystems, you will receive this message when it is in restricted state - "System ended to restricted condition."
pgarlow
ans-ins-part
Append to This Answer
Previous: (Answer) What TCP/IP ports does Client Access use?
Next: (Answer) What are the definitions of the FTP codes?
This document is: http://faq.midrange.com/index.pl?file=206
[Search] [Appearance]
This is a Faq-O-Matic 2.721.