Re: Default value of the MIB Object

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/4/6 Tanisha Kashyap <[email protected]>:
> I have a scalar in my MIB which can take only two values, 0 or 1.
>
> However I want to assign a default value of 0 to it.
>
> Should I use the DEFVAL clause for the same?

You can do, yes.
But remember that the MIB definition is really just a guide
to the agent implementor.   Simply putting a DEFVAL as
part of the MIB definition will not "magically" make this value
appear in the agent.
   It's up to the person implementing the MIB module (i.e.you!)
to initialise the scalar data structure appropriately.

Dave

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