fhg
Volume 11, Number 35 -- November 16, 2011

Putting Your i System in Semi-Restricted State

Published: November 16, 2011

Hey, Joe:

We need to put one of our i partitions in restricted state where no applications are running. However, we also need TCP/IP to be up while the system is down, so that we can download PTFs and some software upgrades while our third-party packages aren't in use. Is there a way to put our system in a semi-restricted state where we can only use our system console and TCP/IP communications?

--Mike


Yes, there is. And it's relatively easy to accomplish. Here's the drill.

First, make sure all your users are off the system. Then, make sure that all your batch processing is completed and that all your external interfaces are shut down (particularly any Web sites running through the QHTTPSVR subsystem). Put the system in restricted state by running this End Subsystems (ENDSBS) command.

ENDSBS SBS(*ALL) DELAY(60)

Look for the following message in the QSYSOPR message queue. This tells you when all subsystems are ended and only the system console is active on your partition.

CPF0968 - System ended to restricted condition

At this point, the system is in restricted state. For more information on i restricted state, see this article on getting into an i5/OS restricted state.

Going Into Semi-Restricted State

In restricted state, your controlling subsystem will also have a status of END, so you won't be able to restart TCP/IP. Although there may be a way to restart TCP/IP from restricted state without IPLing, I've found it easier to just IPL into restricted state with TCP/IP started, as I'm showing here. You can do that by performing the following steps.

1. Change your startup program name to *NONE so that you won't restart your user subsystems and programs when you IPL. Retrieve and print the name of your current startup program by running the following Display System Value command.

DSPSYSVAL SYSVAL(QSTRUPPGM) OUTPUT(*PRINT)

This provides a record of what the startup program value was before you changed it.

Now change the Startup Program (QSTRUPPGM) system value to *NONE by running the following Change System Value (CHGSYSVAL) command.

CHGSYSVAL SYSVAL(QSTRUPPGM) VALUE(*NONE)

This will ensure your user subsystems won't start after you IPL.

2. Type in the Change IPL Attributes command (command) and press F4 to prompt it.

CHGIPLA

You'll see a screen that looks something like this.



These are the attributes that the operating system uses to control the functions that your machine runs at IPL time. Make the following parameters changes on this screen.

Change the Start TCP/IP (STRTCP) parameter to *YES. This will start TCP/IP services when the machine IPLs.

Change the Start print writers (STRPRTWTR) parameter to *NO. This is mostly a precaution to prevent any system printers from starting.

Press ENTER to save your changes.

3. IPL and restart your system by running the following Power Down System (PWRDWNSYS) command.

PWRDWNSYS OPTION(*IMMED) RESTART(*YES)

After your system restarts, the system will not run your startup program. So your applications, Web site, interactive subsystems, QSNADS subsystem, etc., will not start.

However, since you designated that you want to start TCP/IP on your IPL (STRTCP IPL parameter = *YES), the QSYSWRK subsystem will start and any TCP/IP interfaces that are set to automatically start on an IPL will be active.

If you run a Work with Active Jobs command, you'll see that there will only be two non-system subsystems active: your controlling subsystem (QCTL), and the QSYSWRK subsystem. All TCP/IP functions are run out of QSYSWRK, and TCP/IP should be active on your system. You will be in the semi-restricted state you asked for.

To make sure your TCP/IP interfaces are active in semi-restricted state, you can view your TCP/IP interfaces from the green screen by running the following options.

  • Call the Configure TCP/IP menu by typing in the Configure TCP/IP (CFGTCP) command from the command line.
  • Take option 1, Work with TCP/IP Interfaces, off the menu that appears.
  • On the Work with TCP/IP Interfaces screen that appears, press F11 to make sure that your designated IP interface status is Active. If it isn't active, type 9=Start in front of the interface to start it.

At this point, you should be able to download PTFs and upgrades without having the rest of your application programs running. If you're not able to run a TCP/IP server that you need, run the following Start TCP/IP Server command to start the server.

STRTCPSVR SERVER(server_to_restart)

Restarting Your System

After you've done your work and are ready to restart the system with your application programs running, do the following.

Change the startup program system value back to the program and library name of your startup program. Do this by typing in the following Work with System Value command and pressing 2=change in front of the system value.

WRKSYSVAL SYSVAL(QSTRUPPGM)

Put your system back into restricted state again by running the ENDSBS command

ENDSBS SBS(*ALL) DELAY(60)

Perform the following PWRDWNSYS command to IPL and restart your system. This will restart all your applications and put your system back into regular working order.

PWRDWNSYS OPTION(*IMMED) RESTART(*YES)

After your system IPLs, all your application programs, server interfaces, interactive sessions, etc., will be able to run again.

As I said, there may another way to do this without double IPLing your system. But this process will definitely satisfy your requirements to 1) put your system in semi-restricted mode with only TCP/IP active; and 2) restart your system when you're finished applying your upgrades.

HTH

--Joe


RELATED STORY

Getting into a i5/OS Restricted State



                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
WORKSRIGHT SOFTWARE

Do you need area code information?
Do you need ZIP Code information?
Do you need ZIP+4 information?
Do you need city name information?
Do you need county information?
Do you need a nearest dealer locator system?

We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

Just call us and we'll arrange for 30 days FREE use of either
ZIP/CITY or PER/ZIP4.

WorksRight Software, Inc.
Phone: 601-856-8337
Fax: 601-856-9432
E-mail: software@worksright.com
Web site: www.worksright.com


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Edwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

Micro Focus:  RUMBA for iSeries, the world's most used terminal emulation software
The 400 School:  Fall Training Sale – Discounts up to 40%! RPG IV COBOL CL Admin Security
ASNA:  Wings™ - The faster, easier way to a better System i user interface


 

IT Jungle Store Top Book Picks

BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

The iSeries Express Web Implementer's Guide: List Price, $49.95
The iSeries Pocket Database Guide: List Price, $59
The iSeries Pocket SQL Guide: List Price, $59
The iSeries Pocket WebFacing Primer: List Price, $39
Migrating to WebSphere Express for iSeries: List Price, $49
Getting Started with WebSphere Express for iSeries: List Price, $49
The All-Everything Operating System: List Price, $35
The Best Joomla! Tutorial Ever!: List Price, $19.95


 
The Four Hundred
A Radical Idea For IBM i Software Pricing

Soltis: We Could Learn From Japan

The Dreamy And Flashy Power 720 P05 Machine

As I See It: Finding Balance In The Living Years

Get Thee To The i Cloud, IBM's Kugler Says

Four Hundred Stuff
PlanetJ Unveils Free Edition of IBM i Web App Dev Tool

RVI and Quadrant Debut Remote Signature Capture for iPads

NGS Updates IBM i-Based BI Suite

Quantum Boosts Disk Array and Tape Library Capacity

Best Buy to Acquire IBM i Cloud Provider mindSHIFT

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
November 12, 2011: Volume 13, Number 10

November 5, 2011: Volume 13, Number 9

October 29, 2011: Volume 13, Number 8

October 22, 2011: Volume 13, Number 7

October 15, 2011: Volume 13, Number 6

October 8, 2011: Volume 13, Number 5

TPM at The Register
Spaniards prototype ARM-GPU hybrid supercomputer

AMD shoots lower with Opteron 3000 server chips

Proprietary interconnects blaze the networking trail

Accel ponies up $100m to juice big data biz

Top 500 Supers: Détente in East, West petaflops race

Cray lands $188m Blue Waters NCSA contract

AMD rides Bulldozers into the x86 server chip war

Gamers stuff Nvidia's pockets with cash

AMD revs up server channel for Opteron 6200 push

US weather boffins tap IBM for 1.6 petaflops super

Server biz saves Cisco profits

Server biz saves Cisco profits

THIS ISSUE SPONSORED BY:

Vision Solutions
SEQUEL Software
WorksRight Software


Printer Friendly Version


TABLE OF CONTENTS
NULL and NOT IN

Wow! I Could Have Had Long Column Names!

Putting Your i System in Semi-Restricted State

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2011 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement