Hi List, I�m new around and I�m having kind�a difficulty to solve this
problem.
Well, I�m writing 2 scripts that will be kept in a server. The first one
receives SNMP traps on port 162 (duh!) every 10 seconds and it writes
something to a file, just for a record.
The second script checks, every 30 seconds, if the file has changed since
the last check. If it has, that means that the SNMP Trap Sender is UP, if
the file ('test.txt') hasn�t changed, the trap sender�s server is down,
and then the trap receiver server creates an HTML informing if it�s up or
down.
So far so good, as you�ll see (�cause I�ll put the scripts here), it�s
working, but my problem starts here. In my network, I�ll have a lot of net
actives sending traps (servers, workstations, ADSL modems), so, to figure
out which one is sending each trap, i have to detect the trap sender�s IP.
And here is my question: How do I do so?
I mean, I�m using SNMP_Session module. How do I detect the trap sender�s
IP? Does this information comes with the trap or should I do something to
detect who has sent information to port 162?
Thanks!


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to