[tkined] SNMP v1 Scripts handling.

Richard Swain - Communications Consultant (Richard.Swain@Aus.Sun.COM)
Wed, 18 Feb 1998 08:54:33 +1000 (EST)

I previously send the following question and forgot to say it was SNMPv1:

I am using scotty(2.1.7)/tnm(8.0)/tcl(8.0) to receive SNMP trap data from
devices.

I receive the data, parse it with tcl scripts and then forward it to a central
location for additional proceessing and storage.

The problem is that the original IP address from the device is say, 192.1.1.123
and after the scripts process it and pass it on, the final destination sees it
as the scripts machine, say 192.1.1.99.

Is there a way to save the incoming IP address, parse the data with the scripts
and then just before sending put the saved IP address in as the source address
in the IP header ?

I thank you for your response in this matter which cleared the air but I have an
additional and possibly related problem that i am seeking help with.

If I receive an SNMP trap (coldstart in this case) the original snmp agent
address in the SNMP trap PDU is modified to the local machine address by the
scripts. Additionally the mib string received at the network management
destination is 1 3 6 1 4 1 (enterprise specific) and 1575 not 364 as I am using.

Is enterprise id 1575 the scotty process ?

Can I stop thge scripts altering the SNMP trap PDU which generally should be
passed through as a data PDU ?

All I required the scripts to do is see it is an snmp trap and forward it.

Many thanks for your feedback and help.

Richard Swain

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.