Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2093
  • Last Modified:

lslparutil and pgraph on IVM


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.


  • 5
  • 4
1 Solution
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!


sminfoAuthor Commented:
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?


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?


Technology Partners: 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!

sminfoAuthor Commented:
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..
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 ...
sminfoAuthor Commented:

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!
sminfoAuthor Commented:
and. no hurry at all with this... so take your time :-)


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!



sminfoAuthor Commented:
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now