[tkined] SNMP V2u and cmu-snmpd

Henning P. Schmiedehausen (hps@tanstaafl.de)
19 Aug 1997 13:02:06 +0200

Hi,

I'm trying to browse a host with a cmu-snmp agent with tkined:

Versions: tkined 1.4.6
scotty 2.1.6
cmu-snmpd 3.4

on an Intel Linux 2.0.29 host.

At first the following patch seems to be missing from the scotty-2.1.6.tar.gz

diff -r -u --new-file scotty-2.1.6/tkined/apps/library.tcl scotty-2.1.6.p/tkined
/apps/library.tcl
--- scotty-2.1.6/tkined/apps/library.tcl Thu Sep 12 22:07:09 1996
+++ scotty-2.1.6.p/tkined/apps/library.tcl Tue Aug 19 11:49:35 1997
@@ -931,7 +931,7 @@
proc SnmpOpen { id ip } {

global snmp_community snmp_timeout snmp_retries snmp_window snmp_delay
- global snmp_port snmp_protocol snmp_context
+ global snmp_port snmp_protocol snmp_context snmp_user
global default

else it won't work at all. I had also to increase the size of the
USEC_MAX_USER field for some tests:

diff -r -u --new-file scotty-2.1.6/tnm/snmp/tnmSnmp.h scotty-2.1.6.p/tnm/snmp/tn
mSnmp.h
--- scotty-2.1.6/tnm/snmp/tnmSnmp.h Fri Sep 13 01:20:47 1996
+++ scotty-2.1.6.p/tnm/snmp/tnmSnmp.h Tue Aug 19 11:52:27 1997
@@ -139,7 +139,7 @@
#define USEC_QOS_REPORT (0x04)

#define USEC_MODEL 1
-#define USEC_MAX_USER 16
+#define USEC_MAX_USER 64
#define USEC_MAX_CONTEXT 40
#define USEC_MAX_AGENTID 12
#define USEC_MAX_MMS 65507

I created an user in the /etc/snmpd.config file for cmu-snmpd:

[... cut ... ]
#
user semi - all all public/0x128db775ec9e2bbf2f45283a4aeb5e26
community public semi -
[... cut ... ]

as far as I can understand, I must now enter in the SNMP default parameters box
from e.g. SNMP Monitor :

Community: /public
Protocol: SNMPv2u
User: public/0x128db775ec9e2bbf2f45283a4aeb5e26 (you won't be able to do
this with USEC_MAX_USER
as 16)
Context: [nothing]

I tried but it didn't work. I tried several permutations of community,
User and Context but was not able to browse the host via SNMPv2u.

It works with

snmpwalk localhost /public/0x128db775ec9e2bbf2f45283a4aeb5e26

and there ist a distinctive difference between snmpwalk localhost
public and this so the authentification in the cmu-snmpd seems to work
fine. What did I do wrong with tkined? I'm quite new to the whole
network management business so please be kind to me. :-)

Ciao
Henning

-- 
Dipl.-Inf. Henning P. Schmiedehausen --         priv: henning@forge.franken.de
TANSTAAFL! Consulting - Unix, Internet, Security       ges:   hps@tanstaafl.de 

Westl. Stadtmauerstrasse 52 Tel.: 09131 / 81297-0 "There ain't no such D-91054 Erlangen Fax.: 09131 / 81297-20 thing as a free lunch"

--
!! 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.