Solved

lslparutil and pgraph on IVM

Posted on 2011-09-28
9
1,884 Views
Last Modified: 2013-11-17
Hi,

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.

Thanks

0
Comment
Question by:sminfo
  • 5
  • 4
9 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36718462
Hi Israel,

The command is "lslparutil [options] > outputfile"

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

http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7hcg/lslparutil.htm

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.

http://www.ibm.com/developerworks/wikis/display/virtualization/lpar2rrd+tool
http://www.ibm.com/developerworks/aix/library/au-lpar2rrd/index.html

Have fun!

wmp
 

0
 

Author Comment

by:sminfo
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 2.2.0.13-FP24 SP-03

padmin@viosp7_4 $ lslparutil -r config
sample_rate=30

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?

Thanks!!
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36813895
Hi,

I'm running 2.1.3.10-FP-23 as well as 2.2.0.11-FP-24 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?

wmp

0
 

Author Comment

by:sminfo
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..
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 68

Expert Comment

by:woolmilkporc
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 ...
0
 

Author Comment

by:sminfo
ID: 36813986
wmp,

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!
0
 

Author Comment

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

0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 36814093
OK,

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!

http://www.lpar2rrd.com/

wmp


0
 

Author Closing Comment

by:sminfo
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!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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…
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.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now