Forum Discussion
Lalit_Kumar_533
Nimbostratus
Jul 22, 2005Event Notification Samples in Java
I want to create a listener in Java which should listen to node enable/disable events in F5.
I looked at the article http://devcentral.f5.com/Default.aspx?tabid=29&newsType=ArticleView&articleId=15
which seems to be relevant , but I could not find any sample java code implementation for the above event model.
Can anybody provide me the sample code which implements the Management.EventNotification and Management.EventSubscription to create listener/subscriptions for the node events in Java.
Thanks.
- This is great! I personally wrote the EventSubscription and EventNotification interfaces and underlying infrastructure and am excited to see someone use them. Currently we don't have any java samples for the subscription or notification interfaces. I do have a .NET subscription client and webservice to receive the notifications. I've also implemented Perl samples as well.
- Lalit_Kumar_533
Nimbostratus
Hey Joe, - I'll answer your questions a bit out of order so that they all make sense.
void Management::EventNotification::events_occurred ( Management::EventNotification::EventSource event_source, string subscription_id, Management::EventNotification::EventData[] event_data_list, Common::TimeStamp time_stamp );
- Lalit_Kumar_533
Nimbostratus
Joe, - The interfaces are language independent. They are defined in the WSDL documents located in the sdkroot/sdk/wsdl directory and are documented in the api reference. I'll double check when I get back in the office whether or not there is an issue with the client bindings for the java stacks.
- Shawn_Higgin_84
Nimbostratus
Hi, I am trying to help Lalit and team out to get this working. However, they are getting an error when running the following: - The EventNotification interface was introduced in BIG-IP v9.0 so you should be fine there. The error message states what the issue is. For methods that modify the configuration, the iControl user must be in the administrators group (or operator group for state changes - up and down of nodes, etc). Odds are your user "xyz" needs to have it's privileges bumped up.
- Shawn_Higgin_84
Nimbostratus
Hi Joe, thanks for the information. The user currently has "Operator" privileges. This user is able to disable and enable nodes, etc. Just not delete/add nodes to pools or create VIPs, etc. We do not want to allow the program that is used by our monitoring software to be able to have full access. - I guess I should make sure this is clear. Your error message states that you are using the EventSubscription interface to create the subscription. The EventNotification interface is an outbound call from BIG-IP to your webservice.
- Shawn_Higgin_84
Nimbostratus
Thanks. Are there any plans to allow operstor level or some other level with more custom options towards setting permissions?
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