User Tools

Site Tools


project:as400:start

This is an old revision of the document!


AS/400

As400 midrange
as400.jpg
founder: ruza
depends on:
interested: maxfx
malanius
sachy
software license: -
hardware license: -

~~META: status = active ~~

The IBM System i, then known as the AS/400, was the continuation of the System/38 database machine architecture (announced by IBM in October 1978 and delivered in August 1979). The AS/400 removed capability-based addressing.The AS/400 added source compatibility with the System/36 is combining the two primary computers manufactured by the IBM Rochester plant. The System/36 was IBM's most successful mini-computer but the architecture had reached its limit. The first AS/400 systems (known by the development code names Silverlake and Olympic) were delivered in 1988 under the tag line “Best of Both Worlds” and the product line has been refreshed continually since then.

IBM AS/400 is actually not an mainframe from hardware point of view, precisely said its an midrange server, but philosofy of operating system is very close and available for “getting to know” about mainframe technologies. We have one such machine in our hackerspace and there are people who are interested in gaining skills with this technology.

What is commonly named as as400 had a few generations throuhout the history:

  • Generation 1 - AS400 (running OS400 operating system)
  • Generation 2 - eServer iSeries (running i5/OS operating system)
  • Generation 3 - System i (running i5/OS operating system)
  • Generation 4 - Power Systems (optionally running the IBM i Operating system)

<figure>JKJK'�\�
���������J�����k�������z������
�����O�*������Q�d���L�����A���*���M
��2S�����Bt�R�	�R�	�A2�Bp��R�	�R�	�R�	�R�	�R�	�Bp��R�	�Q3�Q3�Q3�Q3�R�	�Q3�R�	�Bp��Bp��Bp��Bp��R�	�Bp��Bp��R�	�R�	�R�	�Q3�Q3�Q3�Q3�Q3�R�	�Bp��2p��Bp��A2�A2�Bp��Bp��Bp��Bp��R�	�Q3�Q3�Q3�R�	�R�	�R�	�Bp��2p��2p��2p��2p��2p��2p��2p��Bp��R�	�Q3�Q3�Q3�Q3�Q3�R�	�Bp��2p��2p��2p��2p��1"�1"�A2�Bp��Bp��Q3�Q3�Q3�Q3�Q3�R�	�Bp��2p��2p��2p��2p��2p��2p��Bp��Bp��Bp��Q3�Q3�Q3�Bp��Bp��R�	�Bp��2p��2p��2p��2p��2p��2p��Bp��Bp��Bp��Q3�Q3�Q3�Bp��Bp��R�	�Bp��2p��2p��2p��2p��2p��A2�A2�Bp��R�	�Q3�Q3�Q3�R�	�R�	�R�	�Bp��2p��1"�A2�Bp��Bp��Bp��A2�Bp��R�	�Q3�Q3�Q3�R�	�R�	�R�	�Bp��2p��2p��A2�Bp��Bp��Bp��Bp��Bp��R�	�Q3�Q3�Q3�R�	�R�	�R�	�Bp��2p��2p��2p��2p��2p��2p��2p��Bp��R�	�Q3�Q3�A2�R�	�R�	�R�	�Bp��2p��1"�1"�1"�1"�1"�1"�Bp��Bp��Q3�Q3�Q3�R�	�R�	�R�	�Bp��A2�A2�Bp��Bp��Bp��Bp��Bp��Bp��Bp��Q3�Q3�Q3�R�	�R�	�R�	�Bp��Bp��Bp��Bp��Bp��Bp��Bp��Bp��Bp��R�	�A2�Q3�A2�R�	�R�	�R�	�R�	�R�	�Bp��Bp��Bp��Bp��Bp��Bp��Bp��R�	�Q3�A2�A2�Bp��R�	�R�	�R�	�Bp��Bp��R�	�R�	�Bp��R�	�Bp��R�	�R�	�Q3�A2�A2�������������3{���
p�$�����:
��������������������������������������������o��f����F���������������������������	���O��	���O��	���O��	���O��	���O���������������������������������������������FAFA�v���0������FAFAe��������C���������C�Э�ܼO�C�Л���I�C���������C���������C�Є�28��C�Л�~z
�C�й�x�*�C����fr��C���P�+�C����������������p�?�C�С�p�?�C�С�p�?�C��������������������C�������C�������C�������C��FAFA���Z	���������f��������T�������Fl����(����������������������z��3�����������������P����������������������������������������FAFA������������������������������������������F����z����������	����v	��i	���������������������������������������������������������������������������V���R������������������������������������������������������������������������������������������������������������������������������������!���������������X�����O����������������������������������������������������������������������������������������������)��...

Twinax console

</figure> <figure>JKJK'�\�
���������J�����k����������~��"
���������������
����[��Yz�k���<�����+����d��`&��<��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������FAFA�v���00������FAFAe�������������������������7�~��p������A�”�p������K�ܥ�t������S��F�w������[����x������c��-�z������k�5��|������v��}�~��������`-���������܄�����������������������O�����������������������...

Original keyboard that has keys like F24 :)

</figure> <figure>UNICODE�
���JKJK'�\�...

Our As/400 black case.

</figure>

HW IBM iSeries 9406-270 eServer (POWER6)
Twinax console IBM InfoWindow II 3487
OS OS/400 V5R4M0 aka i5/OS
hostname/ip as400.brm, 192.168.77.7
as400 service tools LAN adapter as400-st.brm,192.168.77.29
ISO images & other SW data.brm:/data/mirror/software/as400/
access tn5250/x3270
Remote Control Panel: iSeries Operation Console, iSeries Access for Windows

Frontend panel

Frontend panel (or Control Panel) has four important buttons:

  • Up/Down (aka increase/descrease) - two black buttons (F)
  • Enter - blue button (G)
  • Power - white button (B)

  • (A) Power On Light
    • A blinking light indicates power to the unit.
    • A constant light indicates that the unit is up and is working.
  • (B) Power button
  • (C) Processor Activity
  • (D) System Attention
  • (E) Function/Data Display
  • (F) Increment and Decrement buttons
  • (G) Enter button

Console selection

In order to select to which console output will be send hold “space bar” key and PowerOn.

There are following console types.

  • Operations Console
    • direct-attached or direct cable attachment - 9-pin serial
    • LAN attached or LAN console
  • Hardware Managed Console (HMC)
  • Thin Console - Neoware c50 thin client running a customized Linux image, which includes an IBM 5250 emulator. It boots from internal flash memory.
  • Twinax - A 5250 device, or equipment which emulates one. Must be wired to the first twinax controller IOP on port 0 (zero) and setup with logical address 0 (zero)

Boot

In order to BOOT UP into normal operation mode perform following steps on fronted control panel:

  1. select function 02 using black buttons and Enter by pressing blue button
  2. select IPL type B using black buttons and Enter by pressing blue button
  3. select IPL mode N using black buttons and Enter by pressing blue button
  4. power on using white button

Various alphanumeric codes will be shown on the display panel. That means system is booting fine. Wait few minutes. If it will stuck at some alphanumeric code for more than few minutes, just google that code and you will know what is broken.

Power off

In order to properly POWER OFF an AS400 issue an PWRDWNSYS command from OS or perform following steps on fronted control panel:

  1. select function 02 using black buttons and Enter by pressing blue button
  2. select IPL type B using black buttons and Enter by pressing blue button
  3. select IPL mode M using black buttons and Enter by pressing blue button
  4. press white button. System should respond showing an 0? code on display
  5. power off using white button again
  6. wait few minutes till AS400 properly shuts itself down

HW maintenance mode

boot into 02 C M S

Restricted state

is similar to single user mode from UNIX world (all the subsystems have ended and only a single user job remains active). (RestrictedState.pdf (ibm.com))

Additional info on boot modes

Control panel functions

normal (01-49) Functions 21-49 are available in manual mode)
Functions 11 though 19, if enabled, represent the words of the SRC. You must record SRC information for error reporting and contact your service provider.
Běžné funkce ovládacího panelu
extended (50-70) Rozšířené funkce ovládacího panelu
low-level debug 57-70 enabled in manual mode via functions:
* 25 (service switch 1) and
* 26 (service switch 2)
Funkce panelu nízkoúrovňového ladění

control panel functions (ibm.com)

IPL type

IPL type: A, B, C, D (You will probably almost always use the “B” side.)

  • A - permanently applied PTFs (no temporary PTF)
    • When IPL type B fails
    • When the procedures direct you to use IPL type A
    • When you suspect problems with temporary Licensed Internal Code PTFs
  • B - loads a copy of the Licensed Internal Code that has both the Temporary and Permanently applied PTFs. This is normally your most current or newest code. You would use the B side most of the time, especially for routine work. You would run from this side when you permanently apply certain PTFs.
  • C - reserved for hardware service representative use.
  • D - installing and reloading programs. This loads the system programs from an alternate IPL load source, such as a tape drive or CD-ROM. You would also use this if your load source disk had failed, or installing a new system. You can both “scratch” install a system (initialize it) at this point, or just replace the license internal code. For booting from CD you need disc labelled “1BASE LIC MACH. CODE”. For installation “B2995 01” and then “B2995 02” - you'll be requested to change the CD on appropriate time.

IPL modes

  • Normal (unattended) - When you power on the system in normal mode, it performs the IPL and presents the Sign On screen on all available display stations. The operator cannot change the system during the IPL. You would use a normal mode IPL to:
    • Perform an IPL and run the system for most routine work
    • Load PTFs
  • Manual (attended) - After power-on an operator uses the control panel to direct the system for special needs. IPL, DST and the operating system present menus and prompts that allow you to make changes to the system. Use manual mode to IPL and run the system to perform the following actions:
    • Change IPL options (including system values)
    • Install the operating system
    • Manually load program temporary fixes (PTFs)
    • Make some types of system hardware upgrades
    • Use DST
    • For some Disk maintenance & management.

IPL Speeds

IPL speed is changeable while system is powered off.

IPL Speed Action or Description Details
F Fast override for one IPL. Fast IPL run. Some hardware diagnostics are skipped.
S Slow override for one IPL. Full hardware diagnostics run. Use whenever hardware is changed, for intermittent hardware failure, and on the first installation IPL. The following diagnostics are run:
* Main storage tests
* CEC Inter-chip interface tests (wire test)
* Extended Logical Built-in Self Tests.
SE Hardware upgrade. Support-directed procedure only.
V=F Use system-defined speed.
V=S Use system-defined speed.
V Fast IPL or slow IPL set by the system value (selected at function 02). Function 02 selection or the system default at each IPL.

Boot into DST

Console settings

If there is an error code a6005008 on display, console is either off, in wrong port (for twinax must be port 0, address 0 to be the system primary console) or misconfigured. There is a good howto on midrange.com ML about configuring the console from the front panel. (If you go from 65+21 to 11 to see your changes wait a little bit, it takes ~5-10s to apply and display correct values). System *probably* must be in the manual IPL mode.

You can view and change settings of the twinax console itself using Shift-SetUp keys - remember it should be configured to be port0, address 0 and one display only.

Operations console

Access

tn5250

Telnet 5250, or TN5250 describes either the process of sending and receiving 5250 data streams using the Telnet protocol or the software that emulates a 5250 class terminal communication via that process. TN5250 allows a 5250 terminal emulator to communicate over a TCP/IP network instead of an SNA network. Standard telnet clients cannot be used as a substitute for TN5250 clients, as they use a different data stream format.

"green console" on your pc/ntb

--- sslstream.c 2008-11-21 09:12:21.000000000 +0100
+++ sslstream-new.c     2014-10-18 04:56:12.000000000 +0200
@@ -368,16 +368,13 @@
         methstr[4] = '\0';
    }
 
-   if (!strcmp(methstr, "ssl2")) {
-        meth = SSLv2_client_method();
-        TN5250_LOG(("SSL Method = SSLv2_client_method()\n"));
-   } else if (!strcmp(methstr, "ssl3")) {
-        meth = SSLv3_client_method();
-        TN5250_LOG(("SSL Method = SSLv3_client_method()\n"));
-   } else {
-        meth = SSLv23_client_method();
-        TN5250_LOG(("SSL Method = SSLv23_client_method()\n"));
-   }
+   if (!strcmp(methstr, "ssl3")) {
+         meth = SSLv3_client_method();
+         TN5250_LOG(("SSL Method = SSLv3_client_method()\n"));
+    } else {
+         meth = SSLv23_client_method();
+         TN5250_LOG(("SSL Method = SSLv23_client_method()\n"));
+    }
 
 /*  create a new SSL context */

tn5250j

is an Java alternative client (http://tn5250j.sf.net)

OS/400 instalation

System Reference Codes

Hacking

Passwords

Links

Misc notes

  • in case telnet/tn5250 is failing check number of virtual devices allowed

Add secondary SECOFR

  1. CRTUSRPRF USRPRF(BRMSEC) PASSWORD(MYSECRETPASSWORD) USRCLS(*SECOFR) SPCAUT(*USRCLS)
  2. under SECTOOLS (menu 3 10 8) add user to active profile list
  3. in case CPF1110 happened as a response to auth attempt read this
    after “CHGSYSVAL SYSVAL(QLMTSECOFR) VALUE('0')” QSECOFR is also able to log in via telnet

ToDo

  • doinstalovat
    • iSeries Access Family (5722-XW1)
    • QSHELL (5722ss1-0030)
    • ILE COBOL (?) 0 5722wds-0041
  • daykill400, hack400tool

Presentations

project/as400/start.1481263690.txt.gz · Last modified: 2016/12/09 06:08 by ruza