Hello friends.
 
I have problems including my personal mib into the snmpd agent.
 
I´ve written a leaf for the mib which hangs from private.enterprises. . My mib has a scalar object called version which support Integer32 values
 I copied the module into the /usr/share/snmp/mibs and updated the var MIBS with the command export MIBS=ALL. Once done that, I tried some commands on the shell. The results were :
 
if i try snmpget -v1 -c public enterprises.wugplugin.0  -->   "No such object with this OID"
if snmpset -v2 -c public enterprises.wugplugin.0 i 1 --> WUGplugin::wugplugin.version "notWrittable object". (it seems that is taking the mib)
snmpset -v2 -c public enterprises.wugplugin.0 s "hello" --> NO support strings, just integers (so i suppose that the agent is taking the mib but cannot update its values)
 
if i try snmset -v1 -c public localhost system.sysName.0 s "oscar" it changes it correctly (so no problem with auths and community)
 
I want to modify my mibs values using sets and gets, i dont wan any other functionality.
I must solve this problem as soon as possible. Ive been searching a lot but i dont know how to mend that problem. Need expert help!
 
THANK YOU VERY MUCH
 
P.D: Thats my mib:
 

-- File Name : WUGplugin
-- Date      : Mon Aug 15 13:04:08 CEST 2005
-- Author    : AdventNet Agent Toolkit Java Edition - MIB Editor 6
 
 
 
WUGplugin DEFINITIONS ::= BEGIN
 IMPORTS
  enterprises, private, MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE
   FROM SNMPv2-SMI
   OBJECT-GROUP, NOTIFICATION-GROUP
   FROM SNMPv2-CONF
 
 
 
 wugplugin MODULE-IDENTITY
  LAST-UPDATED "200508121717Z"
  ORGANIZATION "Organization"
  CONTACT-INFO "Contact-info"
  DESCRIPTION  "Description"
  REVISION  "200508151147Z"
  DESCRIPTION  ""
  ::=  {  enterprises  1  }
 
 enterprises OBJECT IDENTIFIER
  ::=  {  private  1  }
 
 version OBJECT-TYPE 
  SYNTAX  Integer32
  MAX-ACCESS  read-write
  STATUS  current
  DESCRIPTION  "Version del modulo"
  ::=  {  wugplugin  1  }
 
END
 

Reply via email to