Forum Discussion
jcook_105986
Nimbostratus
Jun 17, 2008what error msg is this?
All Im trying to do is, get the following information
1) CPU 0 usage percentage (in 100%)
2) CPU TMM usage percentage (in 100%)
3) Momory Usage percentage ...
Jun 17, 2008
The error message is just what it says: it can't find the method you requested. What version of BIG-IP are you using? Per the documentation on that API method:
Click here
That method was introduced in BIG-IP v9.4.0. If you are using an older version, you cannot make use of that method since it's not on that version.
Question 2:
As for exception handling, the calls you are making are straight into the .Net runtime. To catch the exception you need to wrap the calls with a try/catch
try {
m_interfaces.SystemSystemInfo.get_all_cpu_usage_extended_information();
}
catch (Exception ex)
{
String sEx = ex.Message.ToString();
// Log or display error here.
}
This same behavior would occur if you tried to use any of the other .Net calls and they return an exception. You have to catch it or it will crash the app.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
