Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
Suggestions for DSPSYS command?
has no ratings.
Published: 23 Apr 2012
Revised: 23 Jan 2013 - 1703 days ago
Last viewed on: 21 Sep 2017 (4059 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Suggestions for DSPSYS command? Published by: Bob Cozzi on 23 Apr 2012 view comments(18)

I'm finishing up the Beta for COZTOOLS and it includes two commands that I'm working on today:

  1. DSPVER - Displays the current IBM i version, release and modification level in VxRyMz format.
  2. DSPSYS - Displays the System Name, the OS version, and ???

What I'm wondering is what else do you often need to know about the system or partition you're running on?

I always need to know the system name which isn't on many displays (especially on v5r4 and earlier systems) and the version of the OS is important to me as well.

===> DSPSYS              
Sys: COZ720 IBM i V7R1M0

The above is an image of what running teh DSPSYS command would look like, and produce. That is the purpose of this command, to give you the information as a completion/informational message.

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: Ringer
Premium member *
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 5 months 11 hours 54 minutes ago

Date/Time? Timezone? Offset from GMT? I don't know. Sys CCSID?

Ringer

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 5 months 10 hours 30 minutes ago

Well, we've got roughly 76 characters to fill up. Smile

Posted by: Ringer
Premium member *
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 5 months 9 hours 51 minutes ago

The IBM stock price? Ha.

Posted by: TFisher
Premium member *
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 5 months 9 hours 50 minutes ago

Total and available storage?

 

I have a command that shows the last IPL date and time.  Not sure if that would be useful for this command or not.

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 30 days 22 hours 27 minutes ago

Cumulative PTF level?

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 30 days 21 hours 19 minutes ago

I thought about the storage and the PTF level installed. The last IPL date/time might be useful to know, but is it really? Perhaps a configuration tool that lets people specify what they want to see on the DSPSYS command would be beneficial; that way we could "just add it to the list" and you see what you want to see. For me its always the system and release level since I'm hoping from one system to another. But also the critical storage conditions are often an issue for me on various systems.

Posted by: Ringer
Premium member *
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 28 days 22 hours 33 minutes ago

Is it possible to use a msg subfile? Then you could use more than 76 characters.

Posted by: neilrh
Premium member *
Jackson, MI
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 28 days 22 hours 21 minutes ago

Isn't that a message subfile anyway (it's for system messages normally and you can get more than one in some circumstances).  And I suppose you could put the important stuff on line one and other information on successive lines, where you don't need to roll unless you want to see that information.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 28 days 18 hours 16 minutes ago

Neil, are you suggesting that I send multiple message lines? If so, then you'd have to do F10 on Command Entry to see it (or look in the joblog). Just the final one would be visible naturally.

Posted by: neilrh
Premium member *
Jackson, MI
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 28 days 16 hours 45 minutes ago

Well Ringer suggested it.  If you were to send multiple messages I'd be inclined to go with the System Name/OS Version message last.  And make the other requests preceed them.

Posted by: Ringer
Premium member *
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 28 days 16 hours 7 minutes ago

A one row message subfile, where if you see the + sign, you move your cursor to the row and hit page down to see the other messages. Like we see for submitted compiles. But not sure that's possible for *STATUS message and so forth from just any command line.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 28 days 16 hours 1 minutes ago

Chris, I don't think you're getting it. These are only completion messages being sent. There is no interactive program that is launched with a DDS-based green screen. I retrieve the info, and do a SNDPGMMSG *INFO and it shows up on the bottom of your screen. As in my example in the original post.

So if I send multiple messages with lots of data, the would be info, info, info, comp, with the comp message being sent last with the base info (as Neil suggested).

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 28 days 10 hours 53 minutes ago
Edited: Thu, 26 Apr, 2012 at 20:30:44 (1975 days ago)

I've updated the DSPSYS command but I'm a bit concerned about the number of CPU entries. here's what it looks like today:

COZ720 V7R1M0 DskUse:34.9870%  CPU(1/3/4) RAM(7616) lparName: 06-xxxxx

This includes:

  • System Name
  • IBM i release level
  • Active CPUs
  • Maximum CPUs
  • Partition CPUs
  • RAM in MB
  • Partition Name

 

Wondering if CPU counts are all that important?

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 27 days 20 hours 52 minutes ago

FYI, my buddy, Bruce Hoffman just told me about this API or "tool" as IBM calls it:

QLZARCAPI - Display Partition Information

Its a bit verbose with its labels but gives the same information as the DSPSYS command in COZTOOLS, except COZTOOLS includes Fish's request for current disk usage %

So I'm going to loo for other information to include in DSPSYS.

Posted by: bdietz400
Premium member *
columbus, oh
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 23 days 11 hours 11 minutes ago

What about using the http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/quilngtx.htm 

Api?  For the display?

 

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 22 days 22 hours 10 minutes ago

If you're not using LPAR - primary only, I guess - does it still look OK?

And a thought - if you're short by a couple characters, you could round DskUse to .01 or even .1 precision.

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 22 days 22 hours 8 minutes ago

Say - is this a message from a message file? You could put all the stuff that doesn't fit into the 2nd level message text.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Suggestions for DSPSYS command?
Posted: 5 years 4 months 22 days 20 hours 31 minutes ago

No. I'm not interested in duplicating the capabilities of the QLZARCAPI API.

If you do a CALL QLZARCAPI on Command Entry you get your Partition information in verbose format, so there's not much need for me to duplicate that capability.

I am working on adding the PTF Level to DSPSYS, however. Sadly there's no direct "give me the current PTF info" you've got to dump it all to a user space and filter through the list looking for what you want.