Re: [tkined] SNMP V2u and cmu-snmpd

Juergen Schoenwaelder (schoenw@gaertner.de)
Tue, 26 Aug 1997 00:43:52 +0200

"Henning P. Schmiedehausen" <hps@tanstaafl.de> said:

Henning> Hi,

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

Henning> Versions: tkined 1.4.6
Henning> scotty 2.1.6
Henning> cmu-snmpd 3.4

Henning> on an Intel Linux 2.0.29 host.

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

[snip]

Thanks, this patch indeed fixes a problem.

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

[snip]

This second diff does not make any sense. The maximum size of the user
name is defined in RFC 1910 and there is no need to change it.

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

[snip]

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

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

The convention used by the CMU code to pack all the parameters in one
ugly ASCII string is not used by the scotty code. So the user name is
just "public". (And hence it fits into 16 bytes.) Note that there is
no need to have a cryptic hex string around because scotty converts a
password automatically into a 16 byte MD5 key. Note, you should use
aliases to keep track of user names and passwords. This allows to
ensure privacy by setting up proper access controll bits on the files
that contain your passwords.

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

It could not work with the changes you made to the implementation.

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, D-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.