Re: Is it possible to have write-only MIB item?

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/6/11 Patel, Narendra  - CS <[email protected]>:
> So it is possible to have write-only MIB.

In principle, it is possible to have a write-only MIB object, yes.
This would presumably return 'noSuchObject' to a GET request,
and be skipped over entirely for a GETNEXT request.

However, I can imagine some management applications
might be confused by be asked to SET an object which
doesn't seem to exist.  You might do better to have this
object return a standard value.  E.g. see the definition of
UCDErrorFix in the UCD-SNMP-MIB

In either case, your MIB should clearly define the results
of attempting to read such a "write-only" object.


> With this new MIB item my source compiles OK and my subagent starts OK.
> It works perfect with snmpset but does not work with other vender MIB
> browser.

What do you mean by "does not work" ?
What exactly are you doing, and what happens?


> I am try to add write-only item (counter) in my Enterprise MIB.

Note that Counter-syntax objects can *not* be the target of SET requests.
They are inherently read-only.
   See the penultimate paragraph of RFC 2578, section 7.1.6

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