Forum Discussion
mhite_60883
Jan 24, 2012Cirrocumulus
iControl error codes
Is there a central list of iControl error codes? I'd like to be able to catch them and examine the suds exception details to handle specific error conditions in my code.
ie. primary_error_code and secondary_error_code
Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/Pool::add_member_v2()
Exception: Common::OperationFailed
primary_error_code : 16908390 (0x01020066)
secondary_error_code : 0
error_string : 01020066:3: The requested pool member (/test/test-pool /test/1.1.1.23 80) already exists in partition test.'
- snovakov_86258Nimbostratus
Good question mhite...
I'm also utilizing the iControl:LocalLB/Pool area of the iControl API today (using Perl), so I took a look around in the API documentation. Not finding it...but I could've sworn I've seen it somewhere...
- snovakov_86258NimbostratusIn the iControl Wiki area I found:
- mhite_60883CirrocumulusYeah, those appear to be the general Exception types, ie. operation failed, or authentication failed, etc. But not specific enough to take general action. IE. If I add a member to a pool, it's not a fatal error if the member already exists in the pool. It is fatal, however, if some other exception occurs during the attempt. The text in the exception provides the appropriate level of detail to figure this out. Just wondering if the number codes were ever published to we can handle this somewhat elegantly...
- hooleylistCirrostratusThe error codes are actually from MCP and would be seen regardless of how the error was triggered (iControl, GUI, tmsh, etc). You can search for many errors on AskF5. But I think it would make a great feature request to have a searchable database of all error codes which includes:
- mhite_60883Cirrocumulus
I would love this. Today, I parse the text of exceptions to figure out how to deal with them.
- hooleylistCirrostratusIt would be a lot of work to do, so please do open cases to request this. The more requests received, the more attention it will get. Thanks, Aaron
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