Solved

lslparutil usage

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
UNIX network port 5 48
aix tls version 6 161
AIX 5.x set up arrow to recall 11 42
unix in java example 9 43
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

747 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