Forum Discussion
jcook_105986
Nimbostratus
Jul 07, 2008help on "ManagementLicenseAdministration" methods
///////////////////////////////////////////////////////////////////////////////////
iControl.ManagementLicenseAdministrationEvaluationExpiration iContorlTime =
m_interfaces.ManagementLicenseAdministration.get_evaluation_license_expiration();
DateTime n_expTime = new DateTime(iContorlTime.evaluation_expire);
/////////////////////////////////////////////////////////////////////////////
Above code does not return the same value as what i see from the web based F5 interface.
"get_evaluation_license_expiration" method comes back with different time from
the actuall system.
n_expTime is keep on returning "2001-01-01 00:00"
I dont really mind, even if I get weird value from the
"get_evaluation_license_expiration" function, as long as the value I get is
same as the web based F5 interface.
Im 99% sure that, this is my fault, but could you plz try to guess
what Im doing wrong here.
Thank you
2 Replies
- Anthony_Gerace_Historic F5 AccountHi JCook,
How are you handling the date conversion? The return values from get_evaluation_license_expiration method are longs and represent the number of seconds from the epoch. Here is a PERL example I used for testing.
HTH,
Anthony$soap = SOAP::Lite -> uri('urn:iControl:Management/LicenseAdministration') -> proxy("https://$host/iControl/iControlPortal.cgi"); $soap_response = $soap->get_evaluation_license_expiration; if (! $soap_response->fault ) { $evalExp = $soap_response->result; $expEval = $evalExp->{evaluation_expire}; $expDate = ParseDateString("epoch $expEval"); print $expDate; } - Check out my tech tip on License Administration, it shows how to convert the epoch time to local time with PowerShell (which should translate to .Net nicely).
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=214
Click here
-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