I am the first admit I do not know everything about IBM i as, in my opinion, there is just too much to know. Therefore, I am always grateful when people send me things they have found as there are many times they are new to me too. I have Laurent Gomes to thank for bringing to my attention the API QLZARCAPI.
I find it interesting that I cannot find any mention of it IBM's KnowledgeCenter, and only a passing reference in the documentation for the QMGTOOLS. What this API does is to display the system, partition, and processor pool information for the current IBM i partition.
I have found the best place to display this information is in the QCMD screen.
At the QCMD screen I type:
And the following information is displayed:
Command Entry MY_SYS Previous commands and messages: > call qsys/qlzarcapi SYSTEM INFO -> SYSTEM SERIAL NUMBER: XX-XXXXX . SYSTEM TYPE-MODEL: 8406- 70Y. PROCESSOR FEATURE CODE: 52CA. PROCESSOR GROUP: P05. MAX PHYSICAL PROCS IN SYSTEM: 4. CONFIGURABLE PROCS IN SYSTEM: 4. PARTITION INFO -> NETWORK NAME: MY_SYS . PARTITION NAME: MY_SYS, PARTITION ID: 2. SHARING TYPE: SHARED. SHARING MODE: CAPPED. MIN PROCESSING CAPACITY: 0.10. DESIRED PROCESSING UNITS: 0.40. MAX PROCESSING CAPACITY: 2.00. ENTITLED PROCESSING CAPACITY: 0.40. MIN VIRTUAL PROCESSORS: 1. DESIRED VIRTUAL PROCESSORS: 1. MAX VIRTUAL PROCESSORS: 4. ONLINE VIRTUAL PROCESSORS: 1 PROCESSOR POOL INFO -> NUMBER OF VIRTUAL PROCESSOR POOLS CONFIGURED: 1. CURRENT PROCESSOR POOL ID: 0. MAXIMUM PROCESSING UNITS FOR PROCESSOR POOL 0: 4. Bottom Type command, press Enter. ===>
Note: I have changed some information for security reasons.
Lots of interesting stuff which will prove invaluable to have in one place if you need to provide system information to a helpdesk or something similar.
I just want to say "Merci" to Laurent. I just love that there is so much stuff in IBM i, and there is always something new to discover.
This article was written for IBM i 7.3, and should work for earlier releases too.