lslparutil and pgraph on IVM

Posted on 2011-09-28
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:

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
  • 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 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?


Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.


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

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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

773 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