2009/3/15 Szymon Klimuk <[email protected]>:
> I was thinking about something that snmptranslate has:
>
>     snmptranslate -IR -Td sysUpTime.0
>     sysUpTime.0
>     sysUpTime OBJECT-TYPE
>       -- FROM       RFC1213-MIB, SNMPv2-MIB
>       SYNTAX        TimeTicks
>       MAX-ACCESS    read-only
>       STATUS        mandatory
>       ...

That is reporting the definition of the MIB object - i.e. the
contents of a static text file.   It's relatively straightforward
to report the MIB objects that are *potentially* writeable.

In order to report which MIB objects were *actually* writeable,
the agent would have to analyse the source code (taking into
account the relevant O/S-specific code).   That's much harder,
even for an experienced programmer - let alone an automated
process.


> Are you sure that there is no other net-snmp tool that can provide me
> similar output? Or only says me what is MAX-ACCESS?

The nearest would probably be to walk the NET-SNMP-AGENT-MIB::nsModuleModes
column.   That might give some indication of what objects are probably writeable
(or at least, what portions of the OID tree have been registered as writeable,
which isn't quite the same thing!)

Dave

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
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

Reply via email to