TRAP treating

Hi,
I'm looking for a script that receives the traps from a windows machine and treate them. For exemple just write a line in a file on UNIX server. Can you help me ?
Thank you.

are you talking about SNMP traps?

yes, I'm talking about SNMP traps.