• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Putting Your i System in Semi-Restricted State

    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

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    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
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    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

    Linoma: DMZ Gateway Tightens File Transfer Security Feeling Like A Heel

    Leave a Reply Cancel reply

Volume 11, Number 35 -- November 16, 2011
THIS ISSUE SPONSORED BY:

Vision Solutions
SEQUEL Software
WorksRight Software

Table of Contents

  • NULL and NOT IN
  • Wow! I Could Have Had Long Column Names!
  • Putting Your i System in Semi-Restricted State

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24
  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle