AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Fetch cpu usage from LPAR: lslparutil

    Posted Thu April 06, 2017 08:50 AM

    Originally posted by: JohnnyCloud


    Very new AIX user here.

    I'm trying to fetch the processor usage of an LPAR using lslparutil.

    I run the command:

    lslparutil -m <machineName> -r lpar -d 1 --filter lpar_names=<lparName> -F time,capped_cycles,uncapped_cycles,entitled_cycles

     

    But I just receive "No results were found."

     

    What is the problem?

    Thanks

     


    #AIX-Forum


  • 2.  Re: Fetch cpu usage from LPAR: lslparutil

    Posted Thu April 06, 2017 05:08 PM

    Originally posted by: Pave1


    looks like utilization data collection is not enabled, check if there is more than 0 in below output (could be 30,60,300 ...)

    lslparutil -r config  -F name,sample_rate

     

    BTW if you are looking for a tool using lslparutil  data then try LPAR2RRD, it might save you time for programming :)

     

    Pavel


    #AIX-Forum


  • 3.  Re: Fetch cpu usage from LPAR: lslparutil

    Posted Mon April 24, 2017 07:11 AM

    Originally posted by: JohnnyCloud


    The data collection is supposed to be enabled. All I receive is ",0" after every machine name. I can also see it as enabled in the HMC web interface.

     

    Edit:

    I got it now, the utilization data collection is set at 0. Thus never collecting. Changed it to once every 60 second and now it starts to collect. Thanks!


    #AIX-Forum