Re: [tkined] set default community

Andrew Baroho (baa@metrocom.ru)
Wed, 08 Apr 1998 10:08:09 -0700

--------------17E128B98A86799A74C849D7
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 8bit

Volker Müller wrote:

> Hello !
>
> I have another problem with tkined 1.4.7.
> I tried to set the default community for some ip's in
> the file 'tkined.default' like
> snmp.community.<ip-adress>: <community_name>
> I started tkined and look for the community of the ip
> adresses, it was public ! :-(
>
> Now my question: How can I set the community name
> for some spezial ip-adresses (Sub-Network), so if I
> start tkined with the network, the software use this new
> community ?
>
> Thank you for the answers
>
> Bye
>
> Volker

Hello Volker and All !!!To solve the problem :
1.You should find the proc SnmpOpen { id ip } in script
...../tkined1.4.x/apps/library.tcl.
2.You must remove these strings :
if {[info exists default(community.$ip)]} {
s configure -community $default(community.$ip)
}
and place it after that block:
switch $protocol {
SNMPv1 {
...............................
}
SNMPv2 {
...............................
}
SNMPv3
...............................
}
}
Then set default community in the file 'tkined.defaults' and start tkined.

Bye

Andrew.

--------------17E128B98A86799A74C849D7
Content-Type: text/html; charset=koi8-r
Content-Transfer-Encoding: 8bit

 

Volker Müller wrote:

Hello !

I have another problem with tkined 1.4.7.
I tried to set the default community for some ip's in
the file 'tkined.default' like
snmp.community.<ip-adress>: <community_name>
I started tkined and look for the community of the ip
adresses, it was public ! :-(

Now my question: How can I set the community name
for some spezial ip-adresses (Sub-Network), so if I
start tkined with the network, the software use this new
community ?

Thank you for the answers

Bye

Volker 

Hello Volker and All !!!To solve the problem :
1.You should find the proc SnmpOpen { id ip } in script ...../tkined1.4.x/apps/library.tcl.
2.You must remove these strings :
                 if {[info exists default(community.$ip)]} {
                      s configure -community $default(community.$ip)
                 }
   and place it after that block:
                 switch $protocol {
                       SNMPv1 {
                              ...............................
                       }
                       SNMPv2 {
                              ...............................
                       }
                       SNMPv3
                              ...............................
                       }
                 }
Then set default community in the file 'tkined.defaults' and start tkined.

Bye

Andrew.
 
 
  --------------17E128B98A86799A74C849D7-- -- !! 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 . !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.