Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configure snmp trap send ip

Status
Not open for further replies.

soueb51

Programmer
Aug 17, 2004
7
FR
I want to configure the ip's of the snmp trap receiver of a few of switch's using a PERL script. Where are those IP saved ? not in th MIB i think ( i have searched... )

thank you

(sorry for bad expression but i am french...)
 
In the configuration file, usually. It would depend on the type of switch as well (Cisco, Extreme, HP, etc.)
 
Do you want to use perl to do an snmpset?.. if so you probably want the OID for the snmptrap receiver.

Do you want to do a telnet to the script using perl and change the snmptrap receiver?..

In either case you need to provide us with the brand and type of switch in order to tell you the OID or the command to change the trap receiver.

InDenial

 
our switch come from Eterasys (Vertical Horizon & Matrix E1, E7)
I can access to thoses switch with telnet, but there is an user interface and no command line, so how can I enter commands?

With an snmpset, i think it isn't possible because i can't see the receiver address in the MIB

Thank you
 
of course I checked the manuals but it only explains how to contigure ip trap manager with the wieb or telnet interface but it doesn't deal with any command line or else.

do you think I must reCompile the mib ?

thank you
 
I found some command lines which could be interesting, but i need to be connected with the console port, so it isn't very intersting for an automatic script...
 
Okay.. so let me get this traight....

You can telnet into the switch but you get a menu based gui. So a script won;t work..

You can go there webbased... but again this does not work with a script.

you found some commandline commands you can use but you have to be able to be connected through the console. so this is not what you want either.

Well last option you have is to use a scripting language and set the ip trap manager by doing an snmpset. I have tried to find the OID you need to set it, but I failed.

Best thing you can do is:

Set the ip trap manager through the console or through the web or telnet.

do an snmpwalk on the switch and pipe it to a file.

then do a search on the file for the set values and you will find the OID probably.

InDenial

 
Thank you for your help.
I've allready tried with an IP that is easy to recognize (like 1.2.3.4). There was about 13000 lines on my MIB text file, but I didn't find the IP adress that I was looking for.
So I think that this adress isn't saved in the MIB...
 
I have found !!! ... but only for 1 switch ...
i've found oid's for ip trap manager, community and enable/disable state.
But on an another switch (same brand, same model) those oid's don't exist. Can i add oids to a MIB ???
 
Just wondering... Did you do an snmpwalk using the set or the get string?..

Are the software versions the same?



InDenial

 
i did an snmpwalk with getif software.

software version isn't really the same, i think the difference is here. but wha can i do ?
 
First of all I would make the software version the same. Different software versions in a network should be avoided unless it is absolutely necessary.

After upgrading and again doing an snmpwalk you should see the OID in the file.

Did you try to do an snmpset on the switch that had the oid you needed?

InDenial

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top