FW: SNMP Community MIB

"Wijnen, Bert (Bert)" <[email protected]> Wed, 26 May 2004 13:35:45 +0200
Newsgroups gmane.ietf.snmpv3
Message-ID <7D5D48D2CAA3D84C813F5B154F43B15504678AB8@nl0006exch001u.nl.lucent.com>
Inline

> I am currently working with Cable Modem devices and want to send an snm=
p SET
> to update the read-only and write community strings. I need to index in=
to
> the snmpCommunityTable. Based on the CMTSs that I can browse, the
> snmpCommunityIndex is not available, but the instance is a dot separate=
d
> ascii equivalent of a word, possibly the name of the view. Is this the =
case?
>=20
The snmpCommunityTable is indexed by a SnmpAdminString, which is UTF-8,
See RFC3411. So that is not ASCII. US-ASCII characters turn out to show u=
p
exactly the same in UTF-8 as in 7-bit ASCII, but it is not correct to sta=
te
that the index is ascii.
If you want to use views for the indexing, then I think that is OK.
It is of course not mandatory. The index string can be anything as long
as it is unique within the table.

> If indeed the snmpCommunityEntry can be indexed using the ascii index,
> how do I
> a) know which row contains the read-only community string, and which
> contains the write commnuity string?

Well, your have to pickup the securityName and then go with that into the
vacm tables (RFC3415) to figure with which of the community names you
can read, write, or both.

It is not as simple as read-only and write anymore. The snmpCommunityTabl=
e
allows you to map into the VACM access control, and so one community name
can give you read access to som parts of the MIB tree and write access to
other parts.

> b) know the ascii index in the first place?
>=20
You can do a getnext loop or getbulk on the table and from the responses
you can figure out the existing indices.

Hope this gets you going

Bert
> Thank you for taking the time to read this email. I=20
> appreciate any help you
> can give me.
> Gr=E1inne
>=20