Re: overwrite sysLocation, sysContact and sysName

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGZd74vcU3KJEJwxb3n_vkyA-9yKOBsz7uznWDpycWRGGQ@mail.gmail.com>
On 5 April 2012 14:11, Norman Rädke <[email protected]> wrote:
> How it is possible to store those values permanent after a power cycle
> without any shutdown script or kill operations on snmpd.

When you issue the SET command to assign the new value,
try including the varbind
      UCD-SNMP-MIB::versionSavePersistentData.0 = 1

as part of the same request.
(Or as a separate request afterwards).

That should flush the new values into /var/net-snmp/snmpd.conf

When the agent is shut down, this file will be synced anyway,
but of course that won't happen in case of sudden power loss
(or that lazy admin's foolish command "kill -9" )

Dave

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
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.