Solved

lslparutil usage

Posted on 2010-09-14
2
1,650 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.

914 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

12 Experts available now in Live!

Get 1:1 Help Now