Start a Conversation

Unsolved

This post is more than 5 years old

592

March 24th, 2010 02:00

SAM - Export events to a flat file

Hi,

Anyone has any idea how can I export the events received from SAM to a flat file. Can it be done via dmctl?

March 24th, 2010 06:00

Hi,

different possible solutions to do so :

- I'm sure you did look at the SAM.audit flat file (in the logs directory), but just in case ... this one can give you the notification (Class, Instance, Event) and timestamp, with the NOTIFY/CLEAR status,

- you can subscribe to SAM notifications, something like :

echo | /opt/InCharge7/SAM/smarts/bin/sm_adapter -s --subscribe=Default/n

you will have again Class/Instance/Event for the existing notifications and the new ones coming in,

- you can loop through the NotificationList instance (the one you are looking at), in ASL or PERL, using the AllNotificationsData attribute,

- you can loop through the ICS_Notification instances, in ASL or PERL,

- you can use this tool : icTopoDump.pl

http://tech.groups.yahoo.com/group/smartsincharge/files/Perl%20Scripts%20and%20Tools/Misc%20Tool%20Scripts/

using this :

./icTopoDump.pl -b -u -p -s ICS_Notification "*Router*someRegex*" "Name;EventName;Active=1"

HTH,

--Fred

== APG5 ReportPack4Event for Smarts can report on millions of notifications in seconds ==
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration
http://www.watch4net.com

2 Posts

March 24th, 2010 20:00

Hi Fred,

Thank you very much for you help. It is indeed very useful. I will do some more reading and testing  on the subscription notification to see if I can get the result i wanted 

Best Regards,

Wai Kit

No Events found!

Top