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
- Anthony_Gerace_Historic F5 AccountHi JCook,
$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
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