Re: Table MIB

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/4/23 yogesh marathe <[email protected]>:
>  snmptranslate is working for objects in this mib

So the MIB file is installed, and the parsing library is finding it.



>  i'm getting inconsistent name error when i try to set values of columinar
> objects. (same for status column)

Have you actually written code to *implement* this MIB?
How have you included this within the running agent?

See the FAQ entry
     I've installed a new MIB file. Why can't I query it?

and the other entries it references.



>  tableMIB MODULE-IDENTITY
            [snip]
>      ::= { enterprises 2000 }

Are you working for/with Tibco Inc?
Because they own this particular enterprise number.

If you're not working in conjunction with them, please use
NET-SNMP-MIB::netSnmpPlaypen   for your experimental MIBs.

Or apply for your own enterprise number.  (It's free!).
But don't just grab someone else's - that's rude!

>  hostsIndex OBJECT-TYPE
>      SYNTAX      Integer32
>      MAX-ACCESS  not-accessible

Good - a lot of people get that wrong.

>      STATUS      current
>      DESCRIPTION
>       ""

Not so good.
Why can't people be bothered to document their MIBs properly?!

>      DEFVAL { 10 }

Bad.
Index objects do not have default values.
(Well, I don't believe it's forbidden, but it's completely
pointless)



>  hostsIP OBJECT-TYPE
>      SYNTAX      OCTET STRING

Why not use the type defined for this purpose?   (IpAddress)
Or even the newer InetAddress/InetAddressType pair,
if you want to support more than IPv4.


>      MAX-ACCESS  read-write

This needs to be read-create (or read-only)
Similarly for 'hostsName'


Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.