?
Solved

lslparutil usage

Posted on 2010-09-14
2
Medium Priority
?
1,766 Views
Last Modified: 2013-11-17
I have enabled hourly data datacollection. ( enabled like 2 months back)
however when i run l lslparutil command on hmc it pull only couple of days of data

eg

ssh -l hscroot ioshmc9e   lslparutil -r all   -m PROD-06-9117-MMA-SN10B9592   --startyear 2010 --startmonth 8 --startday 1  --endyear 2010  --endmonth 9  --endday 14


is there any parameter missing which limit for only two day
i also tried with -d option  eg -d 10
it still gives me two days of data

0
Comment
Question by:bsa_jug
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 1000 total points
ID: 33677676
Hi,

this is due to the way lpar utilization data is handled.

Sampling events are initially collected in a snapshot file. This file holds a 24-48 hours worth of data,
and events based on sample rates less than one hour are collected only in the snapshot file.

Data is aggregated hourly to be kept for about 2 months, daily to be kept for about 2 years, and monthly to be kept for about 10 years.

That's just like rrdtools round-robin database works (well, in a way).

Now for the vital part:

There is a parameter "-s [rate]" where [rate] can be "s" for snapshot, and "h", "d", "m" for hourly, daily and monthly, respectively.

You didn't use this parameter in your command, so it defaults to "-s s" which tells lslparutil to report on the snapshot file, which holds, as I said above, only 24-48 hours of data.

In your case, to display data for the last six weeks, just use

ssh -l hscroot ioshmc9e   lslparutil -r all   -m PROD-06-9117-MMA-SN10B9592 -s h --startyear 2010 --startmonth 8 --startday 1  --endyear 2010  --endmonth 9  --endday 14

Now it should be clear that you'd have to use "-s d" to go back for up to 2 years, and "-sm" to go back for up to 10 years.

Sorry for the long and winding explanation, but I was afraid just telling you "Use '-s h' and it will work!" could have left you a bit clueless.

wmp
0
 
LVL 1

Author Closing Comment

by:bsa_jug
ID: 33719170
thx wmp
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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.
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

850 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