Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


lslparutil and pgraph on IVM

Posted on 2011-09-28
Medium Priority
Last Modified: 2013-11-17

WMP, Last year we talked about monitor AIX's LPARs  from the HMC or in my case IVM with pgraph: http://www.ibm.com/developerworks/wikis/display/WikiPtype/pGraph

I have read theses pages but not clear on which command do I have to run in our IVMs-vioserevrs to get the mem, pool-cpu of its LPARs. I'm ONLY interested on lslparutil because I want to graph all CPU-processing units LPARs are consuming on all IVMs. Questions:
- Which comnand do you recommend me to run on the VIO and then to import to pgraph?
- Does this config file I import to pgraph have a template or rules? Is there any examples?

The fact is the examples on IBM site are only for HMC and not for IVM.


Question by:sminfo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
LVL 68

Expert Comment

ID: 36718462
Hi Israel,

The command is "lslparutil [options] > outputfile"

The syntax is rather weird, so you should consult the manpage or this:


The format of the lslparutil data is built into pGraph, so no need for a template.
Just take care to have the newest pGraph version at hand.

Examples are not needed. Just:
java -cp pGraph.jar pGraph.Viewer [input file]
will do.

There is a configuration file to set directory paths and some other stuff. Not mandatory.

Did you ever hear about "lpar2rrd"?

I've come to the opinion that it's the far better tool although implemeting it is a bit more complex.


Have fun!



Author Comment

ID: 36813781
Hi wmp...

I'm not able to get the CPU pool and/or memory utilization neither using lslparutil nor pgraph.
Our IVM is version SP-03

padmin@viosp7_4 $ lslparutil -r config

I have tested all commands from the publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7hcg/lslparutil.htm but  I always get "[VIOSI01040010-0003] No results were found." from the vioserver.

Am I missing something?

Also, I see lslparutil does not show the name of LPARs that are running on the IVM. Is lslparutil able to list the NAME, utilizaed CPU-Pool and memory for all LPARs that run inside of it?

Sorry man, can you help me or give me a hint?

LVL 68

Expert Comment

ID: 36813895

I'm running as well as SP-01 and under both versions I'm able to get results with lslparutil

Try the minimum options:

lslparutil -r lpar
lslparutil -r pool
lslparutil -r sys

All of them should show the last sample's data. (-n x will show x samples)

Please be aware that there is no "-m <managed system>" option necessary under IVM, despite of the usage info showing it.
OK, you can use it, but the only allowed form is something like "type-model-serial" which is a bit weird.

lslparutil can show what you requested, except for the name. It shows the lpar_id only, but you can filter by lpar_name.

(Note: lpar2rrd will run the lslparutil commands on its own and it will also discover the machine configuration including NAMES).

Which commands did you try that don't work?


Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 36813924
well, look at the output:

padmin@viosp7_4 $ lslparutil -r lpar
time=09/29/2011 12:27:20,sys_time=09/29/2011 12:27:20,event_type=sample,resource_type=lpar,time_cycles=3134526418078351,lpar_id=1,uptime=6122076,curr_proc_mode=shared,curr_proc_units=0.40,curr_procs=4,curr_sharing_mode=uncap,curr_uncap_weight=128,curr_5250_cpw_percent=0,curr_mem=2048,entitled_cycles=1253801199589590,capped_cycles=65865105173728,uncapped_cycles=42088020594469,donated_cycles=0,idle_cycles=46580619247368,run_latch_instructions=289777023664765,run_latch_cycles=512337708570749,mem_mode=ded
time=09/29/2011 12:27:20,sys_time=09/29/2011 12:27:20,event_type=sample,resource_type=lpar,time_cycles=3134526418078351,lpar_id=2,uptime=2938691,curr_proc_mode=shared,curr_proc_units=0.50,curr_procs=1,curr_sharing_mode=uncap,curr_uncap_weight=128,curr_5250_cpw_percent=0,curr_mem=8192,entitled_cycles=767694506866046,capped_cycles=16048863460059,uncapped_cycles=3292709848124,donated_cycles=0,idle_cycles=4555408340240,run_latch_instructions=37182528884390,run_latch_cycles=90955621354024,mem_mode=ded
time=09/29/2011 12:27:20,sys_time=09/29/2011 12:27:20,event_type=sample,resource_type=lpar,time_cycles=3134526418078351,lpar_id=4,uptime=745339,curr_proc_mode=shared,curr_proc_units=2.00,curr_procs=4,curr_sharing_mode=uncap,curr_uncap_weight=128,curr_5250_cpw_percent=0,curr_mem=16384,entitled_cycles=759842787709105,capped_cycles=42397249838519,uncapped_cycles=523969378333,donated_cycles=0,idle_cycles=9415706993008,run_latch_instructions=138971577148948,run_latch_cycles=241515908084811,mem_mode=ded
padmin@viosp7_4 $ lslparutil -r pool
time=09/29/2011 12:27:50,sys_time=09/29/2011 12:27:50,event_type=sample,resource_type=pool,time_cycles=3134541827057848,shared_proc_pool_id=0,curr_avail_pool_proc_units=1.10,configurable_pool_proc_units=3.00,borrowed_pool_proc_units=1.00,total_pool_cycles=12538167299223375,utilized_pool_cycles=187829506335722
padmin@viosp7_4 $ lslparutil -r sys
time=09/29/2011 12:27:50,sys_time=09/29/2011 12:27:50,event_type=sample,resource_type=sys,state=Operating,configurable_sys_proc_units=4.00,configurable_sys_mem=65536,curr_avail_sys_proc_units=1.10,curr_avail_5250_cpw_percent=0,curr_avail_sys_mem=37376,sys_firmware_mem=1536,proc_cycles_per_second=512000000

DO I have to add all theses outputs in the same config file that will be imported to pgraph like:
lslparutil -r lpar >/file.txt
lslparutil -r pool >>/file.txt
lslparutil -r sys >>/file.txt

and then import this file.txy to pgraph?

The command that does not run are taken from the last part "Examples" from http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7hcg/lslparutil.htm

I'm trying to install lpartorrd but my boss does not want to touch any VIO with other extra tools.. so I;m trying to get it with lslparutil..
LVL 68

Expert Comment

ID: 36813947
The only thing you need on VIO is passwordless ssh access for a userid with ViewOnly role.

lpar2rrd itself runs on any Linux or AIX.

It consists of rrdtool (available from the toolbox), a tiny web server and some perl scripts, that's all.

Looking at your commands ...

Author Comment

ID: 36813986

may be it's a little easier for you.. the principal thing I want to monitor is

- Processing units available:
- Processor pool utilization:
-Utilized Processing Units for all LPARs.

Of course memory, and other parameters are important but processing units are the principal for us..

Sorry if I couldn't be cleared on the first post..

thanks tons!

Author Comment

ID: 36813990
and. no hurry at all with this... so take your time :-)

LVL 68

Accepted Solution

woolmilkporc earned 2000 total points
ID: 36814093

but I think I didn't misunderstand you.

lpar2rrd gives you just what you desire!

Working with pGraph is rather laborious and long-winded.
You have to design lslparutil commands and run them regularly on your own, transfer the resulting data to the system where pGraph is, copy the diverse data together and so on.

With lslparuti you take an AIX/Linux system, install an Open Source package (rrdtool) and some scripts. The Webserver comes embedded, no need to care. Add a job or two to crontab, and that's it.

Point your browser to the new Webserver and you'll see.

I only recommend pGraph when it's for some sort of one-time action, like a management presentation at end-of-year (perhaps to raise your Xmas bonus).

To get a continous recording use lpar2rrd!




Author Closing Comment

ID: 36814125
nice wmp...

If one day you can get the proper lslparutil command to show, in only one time asi you said, to pgraph please let me know..

running to install lpar2rrd to get the desired parameters!

Thanks a lot!

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

598 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question