HI....thanks for the suggestions, you were right I didn't declare the
IdThread column as not accessible, it doesn't get listed twice now. I also
made the changes to the MIB...here is how it looks now:
monThreadsTable OBJECT-TYPE
SYNTAX SEQUENCE OF MonThreadsEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"softelMonitor Threads Info table"
::= { softelMonitor 1 }
monThreadsEntry OBJECT-TYPE
SYNTAX MonThreadsEntry
ACCESS not-accessible
STATUS current
DESCRIPTION
"The MonThreadsEntry row definition."
INDEX {monThreadId }
::= { monThreadsTable 1 }
MonThreadsEntry ::=
SEQUENCE {
monThreadId DisplayString (SIZE (0..20)),
monThreadProcTime Unsigned32,
monThreadMaxProcTime Unsigned32,
monThreadExecNumber Unsigned32
}
monThreadId OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..20))
ACCESS not-accessible
STATUS current
DESCRIPTION
"Thread Id"
::= { monThreadsEntry 1 }
monThreadProcTime OBJECT-TYPE
SYNTAX Unsigned32
ACCESS read-only
STATUS current
DESCRIPTION
"Thread's last processing time"
::= { monThreadsEntry 2 }
monThreadMaxProcTime OBJECT-TYPE
SYNTAX Unsigned32
ACCESS read-only
STATUS current
DESCRIPTION
"Thread's maximum processing time"
::= { monThreadsEntry 3 }
monThreadExecNumber OBJECT-TYPE
SYNTAX Unsigned32
ACCESS read-only
STATUS current
DESCRIPTION
"Thread's executions count"
::= { monThreadsEntry 4 }
However mib2c (I'm using the 5.14 version on ubuntu dapper) still have the
same behaviour towards the string (declares it as a char instead of an array
of chars). I guess I need to update mib2c but how do I do this???
Thanks,
Alejandro
On Fri, Jun 6, 2008 at 3:28 AM, Dave Shield <[EMAIL PROTECTED]>
wrote:
> I've just realised that your object names are invalid.
> You need to tweak the names to conform to the SMI specification.
>
> Alejandro Islas wrote:
>
>> MonThreadsTable OBJECT-TYPE
>>
> This must start with a lower-case letter - "monThreadsTable"
>
>> SYNTAX SEQUENCE OF monThreadsEntry
>>
> This must start with an upper-case letter - "MonThreadsEntry"
>
> monThreadsEntry OBJECT-TYPE
>>
> This is correct
>
>> SYNTAX monThreadsDetailsEntry
>>
> But this should match the SYNTAX of the monThreadsTable object,
> i.e. "MonThreadsEntry"
>
> monThreadsDetailsEntry ::=
>>
> This should be "MonThreadsEntry"
>
> SEQUENCE {
>> IdThread DisplayString (SIZE (0..20)),
>> ProcTime Unsigned32,
>> MaxProcTime Unsigned32,
>> ExecNumber Unsigned32
>>
> All of these must start with a lower-case letter,
> and would conventionally share the same prefix.
>
> Try using something like
>
> monThreadId
> monThreadProcTime
> monThreadMaxTime
> monThreadExecNumber
>
> Dave
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders