Start a Conversation

Unsolved

This post is more than 5 years old

1141

February 26th, 2012 21:00

How to notify an event for test in AM DM?

Hi,

   I want to notify some events in AM domain manager for test using dmctl --server=INCHARGE-AM notify ClassName::InstanceName::EventName, But after i execute this command, there is no any response for it and also no generated Event for the object.

  Does anyone know about it?

BRs

2 Posts

February 27th, 2012 03:00

If I get your query right , there are some devices you have discovered in a AM.

On that AM for these devices you need to generate some events?

If that is the case then you can change the IsUnresponsive attribute.

dmctl -s put ClassName::InstanceName::EventName

Considering in our case:

dmctl -s AM-PM put Router::RouterName::IsUnresponsive true

This will forcefully make the router status to be down on IP level. Although at the next polliing it will find it up and will clear the status and the alarm.

If you just want to create any events without any devices discovered then you can play with sm_ems command.

notify [ = ...]

sm_ems -s notify Router RouterName Down momentary 600

E.g. It will be a momentary alarm which will expire after 600 seconds.

11 Posts

February 28th, 2012 00:00

Hi Chaitanya,

   Thanks for your update.

   The first method is not suitable for some object, for example: Interface. And the second one is used to create notification object in SA domain manager.

   Now i am doing some test for DXA hookscript. But what confuses me is the self->object and object. That means in the asl hookscript it will connect two domain managers one is SA, and the other is AM or PM. So i don't know how to simulate the DXA hookscript runtime environment.

Thanks.

2 Posts

March 13th, 2012 06:00

Hello Wang

You can create events from any object in the AM, for example in your case if it is Interface, follow the steps

1. Find the Instrumentation for the Interface it shud be in Instrumentation attribute of Interface ( because he is the guy who has the runtime data that is whether the object's status is up or not)

2. After finding the Instrumentation, make the operStatus to DOWN, this will trigger the Interface Down notification.

No Events found!

Top