Hi, Dave, I removed "rwcommunity public" from the /usr/local/share/snmp/snmpd.conf file and try to reload the config by setting the versionUpdateConfig to 1 # /usr/local/bin/snmpset -u test-agent -l authPriv -a MD5 -A test_authkey -x DES -X test_privkey 192.168.83.4 UCD-SNMP-MIB::versionUpdateConfig.0 i 1 But I got error as following: Error in packet. Reason: notWritable (That object does not support modification) Failed object: UCD-SNMP-MIB::versionUpdateConfig.0 I look at the mib file that OID is read-write, why is not writable? Thanks Chi
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Thursday, January 28, 2010 12:27 AM To: Guan, Chi @ Datron Cc: [email protected] Subject: Re: How to disable/enable SNMP V1 and V2 on the fly? On 27 January 2010 17:23, <[email protected]> wrote: > I have an agent running for all the SNMP versions. > > 1. I want to disable/enable SNMP V1, V2 for the whole agent on the fly, The simplest way to do this is to remove any community-based access control settings. Either by editing the snmpd.conf file or by manipulating the VACM tables. > What net-snmp command should I use or which OID should I set to do this > while I don't have to restart the agent and redo the configure? You can reload the configuration without restarting the agent, by issuing a SET request on UCD-SNMP-MIB::versionUpdateConfig.0 > 2. Right now I have "rwcommunity public" in the > /usr/local/share/snmp/snmpd.conf file for community string. > > Which net-snmp command alow me to change the community name? If you've got access control set up in the snmpd.conf file, then you will need to edit this file (and re-load the config) in order to change it. Most configuration set via that file is "static", and can't be changed via SET requests. Dave ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-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
