Re: [tkined] I can't set values to variables

Erik Schoenfelder (schoenfr@gaertner.de)
Fri, 9 Apr 1999 20:59:17 +0200 (MET DST)

Hi,

MRG> I have tried modify the status of my ethernet with the following
MRG> command:

MRG> snmpset localhost private interfaces.ifTable.ifEntry.ifAdminStatus.2 i 2
MRG> and it returns the following message:

Juergen> This variable is not writable. However, there is a bug
Juergen> in the agent. It does not return the right error
Juergen> code. (It must return a noSuchName error in this
Juergen> case.)

Juergen> Erik, can you check why the CMU agent does not return
Juergen> noSuchName on the ifAdminStatus variable?

yes, it's simply broken:

--- apps/snmp_vars.c-bak Fri Apr 9 20:44:18 1999
+++ apps/snmp_vars.c Fri Apr 9 20:44:29 1999
@@ -740,7 +740,7 @@
{IFMTU, INTEGER, RONLY, var_ifEntry, 3, {2, 1, 4}},
{IFSPEED, GAUGE, RONLY, var_ifEntry, 3, {2, 1, 5}},
{IFPHYSADDRESS, STRING, RONLY, var_ifEntry, 3, {2, 1, 6}},
- {IFADMINSTATUS, INTEGER, RWRITE, var_ifEntry, 3, {2, 1, 7}},
+ {IFADMINSTATUS, INTEGER, RONLY, var_ifEntry, 3, {2, 1, 7}},
{IFOPERSTATUS, INTEGER, RONLY, var_ifEntry, 3, {2, 1, 8}},
{IFLASTCHANGE, TIMETICKS, RONLY, var_ifEntry, 3, {2, 1, 9}},
{IFINOCTETS, COUNTER, RONLY, var_ifEntry, 3, {2, 1, 10}},

so this gives:

> # snmpset chappell private interfaces.ifTable.ifEntry.ifAdminStatus.2 i 2
> Error in packet.
> Reason: There is no such variable name in this MIB.
> This name doesn't exist: interfaces.ifTable.ifEntry.ifAdminStatus.2

btw:

Juergen> [...] Using SNMPv2c, you would get a notWritable
Juergen> error, which is a much better indication what is going
Juergen> wrong here.

well, i guess we should get a notWritable error, but the cmu-snmp port
to linux answer is decoded as

> Error in packet.
> Reason: Unknown Error

which is surely a wrong answer or a wrong decoding ...

now, i should check this with scotty as the management station ;-)

Erik

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