MIB Table in SnmpV2
Frank Fock
Frank.Fock____t-online.de
Thu May 10 01:57:24 CEST 2001
Hi Christel,
Did you add the (single) row before accessing the table? I think the
row should be created when the agent is initialized. The definition of
the table is OK.
Best regards,
Frank
christel.sohnemann____philips.com wrote:
> Hi,
> sorry to disturb you again, but I have problems defining a MIB. I solved the problem I posted before, however things do not work as they should.
> So what I want to do is the following:
> Define a Table in a SMI II mib that contains one row. This row has 3 columns, each of them must be writeable by the SNMP manager.
> more generally spoken: I want my SNMP Agent (implemented with AgentX++) to receive the variable binding of three variables in one request and I thought I have to define a table in my MIB for that so any manager knows that these three variables belong
> together .... but maybe I am just to stupid to understand what to do...
> can somebody help me please? I defined a table as below, but the snmp manager does not have write access to the table column objects...
>
> thank you for your help!
> Christel
>
> traceSwitchTable OBJECT-TYPE
> SYNTAX SEQUENCE OF TraceSwitchEntry
> MAX-ACCESS not-accessible
> --- MAX-ACCESS read-create
> STATUS current
> DESCRIPTION "a table containing all tracing switch information"
> ::= {oidDSSMServerConfigurationInternal 9 }
>
> traceSwitchEntry OBJECT-TYPE
> SYNTAX TraceSwitchEntry
> MAX-ACCESS not-accessible
> STATUS current
> DESCRIPTION "for selecting the trace output from a SM host to a manager"
> INDEX { traceIndex }
> ::= { traceSwitchTable 1 }
>
> TraceSwitchEntry ::= SEQUENCE {
> traceIndex INTEGER,
> traceControl INTEGER,
> traceSelect Integer32,
> traceIPAddress DisplayString
> }
>
> traceIndex OBJECT-TYPE
> SYNTAX INTEGER
> {
> firstRow(1)
> }
> MAX-ACCESS not-accessible
> STATUS current
> DESCRIPTION "table index for tracing. Only one row allowed."
> DEFVAL { -1 }
> ::= { traceSwitchEntry 1 }
>
> traceControl OBJECT-TYPE
> SYNTAX INTEGER
> {
> disable(-1)
> , general(0)
> , debugChannel(1)
> }
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION "Setting this variable specifies what kind of trace
> information the sending manager requests."
> DEFVAL { -1 }
> ::= { traceSwitchEntry 2 }
>
> traceSelect OBJECT-TYPE
> SYNTAX Integer32
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION "select the channel with this ID for tracing"
> DEFVAL { 0 }
> ::= { traceSwitchEntry 3 }
>
> traceIPAddress OBJECT-TYPE
> SYNTAX DisplayString(SIZE(0..255))
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION "specify the IP address of the management application that wants to receive traces"
> ::= { traceSwitchEntry 4 }
>
More information about the AGENTPP
mailing list