Jesus,
You should be able to do this with a ruleset and a little ingenuity.....
Create a ruleset that runs in the background that fires on your specific
incoming trap. This ruleset should have an Action that runs a
shellscript. The shellscript takes variables from the trap, representing
the machine with the problem ($A) and the trap variable representing the
ifIndex ($1 if that is your only varbind). In the shellscript, lets say
your hostname $A becomes $1 and your ifIndex variable is $2. You need to
do an snmpget from ($1) that gets the MIB2 variable you want - I guess
this is .....mib-2.ip.ipAddrTable.ipAddrEntry."$2" - you use the original
ifIndex variable as the instance into the ipAddressTable. You may need a
spot of awk or cut to just get the interface address parsed out of the
response from SNMP get.
Then your script generates a NEW trap that actually has the data in it
that you want. Customise your original trap to be log-only if you don't
want to see it.
Best of luck,
Jane
jesus corral wrote:
> Hello,
> NetView 7.1 + AIX.
> I am receiving link down traps of a Nokia firewall and
> the only argument i get is the value of the ifIndex
> but i need to get the IP Address. How can i get the
> correspondence between this ifIndex value and the IP
> Address of it? The reason of it is that i need to send
> a trap with the IP Address of the interface and not
> the ifIndex.
> Thankx a lot for your answers
>
> _______________________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger
> Comunicación instantánea gratis con tu gente.
> http://messenger.yahoo.es
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
> For additional commands, e-mail: nv-l-help@lists.tivoli.com
>
> *NOTE*
> This is not an Offical Tivoli Support forum. If you need immediate
> assistance from Tivoli please call the IBM Tivoli Software Group
> help line at 1-800-TIVOLI8(848-6548)
--
Tivoli Certified Consultant & Instructor
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 2002 Jane Curry <jane.curry@skills-1st.co.uk>. All rights
reserved.
|