Re: Not able to set value using snmpset

Anirudha Patil <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAAwxGDT0m=br1_i_v6_ZAb8irU4AC-+Zi26ivf79JbxT_2+Vsg@mail.gmail.com>
Hello Dave,

Thank you for the comments.

I would see to it that i study more on agent and extending the support for
agent.


With Regards
Anirudha Patil


On Wed, Oct 31, 2012 at 6:06 PM, Dave Shield <[email protected]>wrote:

> On 31 October 2012 11:59, Anirudha Patil <[email protected]> wrote:
> > I have a concern about "snmpset" command. I'm not able to set a
> > hrStorageDescr or hrStorageType.
>
> Correct.
> From the definition of these objects in HOST-RESOURCES-MIB:
>
> hrStorageType OBJECT-TYPE
>     MAX-ACCESS read-only
>     ::= { hrStorageEntry 2 }
>
> hrStorageDescr OBJECT-TYPE
>     MAX-ACCESS read-only
>    ::= { hrStorageEntry 3 }
>
> "read-only"  means that you cannot issue a SET command on such objects.
>
>
>
> >   I have also manually tried changing the MAX-ACCESS for the objects
> > in their corresponding MIB [/usr/share/snmp/mibs], but still its not
> working
>
> a)  This is an internationally agreed standard MIB.
>       You can't simply decide to change it unilaterally.
>
> b)  The code within the agent that implements this MIB has been written
>       following the standard definitions.  As such, these objects are
>       implemented as read-only objects.   There is simply no code
>       within the agent to handle SET requests for them
>          Even if you go your own way and ignore issues of interoperability,
>       you are still going to have to write additional code for the agent,
> so
>       that it knows how to handle SET requests for these objects - how to
>       process the assignment, how to save the new state so that it's
>       retained when the agent restarts, etc, etc
>
> The agent is not a magic box - you can't simply edit a text file and expect
> everything to just start working.   You need to supply the missing code.
>
> Dave
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct

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