Re: [tkined] tkined and default snmp community

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Sat, 18 Apr 1998 19:58:37 +0200

>>>>> fj writes:

fj> Now MY REQUEST is to have a set of general alias for community and
fj> retry parameters that I can use for plenty of hosts. I cannot find
fj> a way to do it as SnmpOpen does only:

[snip]

fj> Therefore I incompletely patched it in the past with:

[snip]

fj> Should I repatch 1.4.7 or do you have a better suggestion?

I think the idea to allow aliases, but still being able to get the IP
address from the node is a good one. However, I would also like to
keep the behaviour where you could overwrite the IP address in the
alias. I think we can have both by using the following statement in
SnmpOpen:

if {[catch {snmp session -address $ip -alias $alias} s] == 0} {
return $s
}

Note, that I changed the order of the options. I think this looks like
a reasonable change that should not break anything. I will put it into
my 2.1.9 code base.
Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3283)
--
!! 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.