Forum Discussion
Laggin_53249
Nimbostratus
Sep 14, 2007m_interface.initialize() always returns true, isValid() always returns false?
I can't believe I haven't run into this until now.
As long as I supply a valid ip address for the m_interface.initialize(Host . . .value, the return value is always true, regardless if the usename/password combination are invalid.
So I decided after m_interface.initialize(..) = true, I would try a m_interface.ConnectionInfo.isValid() call, assuming this would verify the credentials were valid. This always returned false, even if the credentials supplied are correct.
I know I'm missing something really simple here.
How can I validate a proper connection to an interface . . .validating username/password/rights/etc.?
1 Reply
Sort By
- Good points. The Initialize method basically validates that the inputs are correct format (address/port/etc) but does not actually connect to the BIG-IP to verify connectivity information (in hindsight maybe it should).
... m_interfaces.initialize(...) try { String sVersion = m_interfaces.SystemInfo.get_version(); } catch (Exception) { // Invalid connection. }
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