Solved

lslparutil usage

Posted on 2010-09-14
2
1,707 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
[X]
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
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

729 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