I see a function is asl ref guide called notify(). There is not much description about what parameters are to be passed or what this function does. I assume its going to create a notification - thats what I'm trying to do in an asl script. I passed
notify("ClassName", "InstanceName", "Down") - complains incorrect number of arguments. Any clues? Thanks
I'm using sm_ems to create a notification such as,
./sm_ems -s server notify Class instance Stopped xxx momentary source severity=1
I would rather do the same thing with an asl and trying to use notify() function.
Berkay is actually right. Notify an event (in a domain manager) and notify a notification (in SAM/OI) are two different things. Yes, you can use notify in a Domain Manager to raise an event (even if this is not really recommended as the event is in general based on instrumented attributes; in production it's better to change the corresponding attribute). But if you want to mimic sm_ems (which is working at SAM/OI layer) to create notifications with the Java or PERL API, you have to use the NotificationFactory to do so.
My 2 cents,
--Fred
== Monitor your Smarts environment using APG ReportPack for Smarts health == Frederic Meunier Solutions Watch4Net Inc APG & Smarts InCharge integration http://www.watch4net.com
Berkay1
36 Posts
706
0
Posted June 15th, 2009 01:00
To create a notification, you need to use ICS_NotificationFactory class makeNotification operation.
Hope this helps,
Regards,
Berkay Mollamustafaoglu
RapidInsight: EMC Smarts 2008 Offering of the Year Award Winner
http://www.ifountain.com