Forum Discussion

Hamish_Marson_3's avatar
Hamish_Marson_3
Icon for Nimbostratus rankNimbostratus
Oct 25, 2005

cpu util on 6400

Is there any way to get the cpu stats for BOTH processors on a 6400 via iControl? The stats documented, show the cycle counts for the processor being used for tmm, but there seems to be nothing for the other processor in the system.

 

 

Is there an iControl method that provides this info?

 

 

TIA

 

 

 

  • Loc_Pham_101863's avatar
    Loc_Pham_101863
    Historic F5 Account
    Starting with the RedMountain release (v9.2.0), we've added a new method System.SystemInfo.get_cpu_usage_information that returns CPU utilization information for all CPUs in the system.

     

     

    Here's the relevant information for this new method:

     

     

    CPUUsageInformation get_cpu_usage_information();

     

     

    where CPUUsageInformation is defined as:

     

     

    struct CPUUsage

     

    {

     

    Common::ULong cpu_id;

     

    Common::ULong64 user;

     

    Common::ULong64 niced;

     

    Common::ULong64 system;

     

    Common::ULong64 idle;

     

    Common::ULong64 irq;

     

    Common::ULong64 softirq;

     

    Common::ULong64 iowait;

     

    };

     

     

    struct CPUUsageInformation

     

    {

     

    CPUUsage[] usages; // The list of CPU usage patterns.

     

    TimeStamp time_stamp; // The time stamp at which the statistics are gathered.

     

    };

     

     

    Hope this helps.

     

    Regards,

     

    Loc

     

     

  • Since we haven't released the API docs for this method, I've posted a perl sample on CodeShare that illustrates the usage of System::get_cpu_usage_information() and System::get_disk_usage_information().

     

     

    Enjoy!

     

     

    -Joe
  • Thanks for that. Shame we're on 9.1.0... We won't get to 9.2 code until it either merges back into 9.1 or we goto 9.3 (Because we're only supposed to run the stable branch)...I'll see what I can grab with SNMP as well...

     

     

    H