|
RE: TEC 3.9: change from ACK to OPEN ?: msg#00365sysutils.tivoli.tme10
I'm not sure what the underlying rationale is, but from looking at the definition of the set_event_status predicate, you can see that someone went to a lot of trouble to prevent this from happening: set_event_status( _event , _new_status ) :- bo_get_slotval( _event ,status, _old_status ), ( _old_status == ACK -> ( _new_status == OPEN -> fail ; true); true ), ( _old_status == CLOSED -> ( _new_status == OPEN -> fail ; _new_status == ACK -> fail ; true); true ), bo_set_slotval( _event ,status, _new_status ), re_mark_as_modified( _event , _ ), ! . It would seem that you could just use bo_set_slotval directly, but I don't know what the consequences of doing that that might be. I used to get calls from Operations occasionally asking why they couldn't re-open events that they had accidently closed. For example, "Hey, I fixed a problem on 'host1234', but I inadvertantly closed a similar event for 'host5678', can you put it back?" I went as far as writing a change rule that would have reopened an event if the same operator that closed it closed it a second time (ie, 'undo' the close). Then it dawned on me that the TEC console grays out the 'close' and 'acknowledge' buttons if the selected event is already closed (that's what I get for rarely using the console GUI). Even wsetemsg would not accept the change for an event that was already closed. At that point I decided that the reward was not worth the effort required and moved on to something else. It seems someone *really* does not want you to do this... Loren Cain Digicon -----Original Message----- From: owner-tme10@xxxxxxxxxxxxxxxx [mailto:owner-tme10@xxxxxxxxxxxxxxxx] On Behalf Of Francois Le Hir Sent: Wednesday, November 24, 2004 2:19 PM To: tme10@xxxxxxxxxxxxxxxx Subject: [tme10] TEC 3.9: change from ACK to OPEN ? Hello, Looking at the documentation for set_event_status and change_event_status, I see that it doesn't allow changing the status of an event from ACK to OPEN. is there any good reason for that limitation? I was using 'ACK' for effect events and wanted to change it to 'OPEN' when the cause is resolved but not the effect. Thanks, Salutations, / Regards, Francois Le Hir Network Projects & Consulting Services IBM Global Services Phone: (514) 964 2145 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Tivoli Task problem: 00365, Gary Hamilton |
|---|---|
| Next by Date: | Re: ITM Events: 00365, mohammad . salman |
| Previous by Thread: | Réf. : Create a task library in a remote TMRi: 00365, pierre . ayotte-FlKuWb1YrbAWQnjQ7V0W7w |
| Next by Thread: | RE: TEC 3.9: change from ACK to OPEN ?: 00365, Ralph Baldwin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |