Comware Based
1757047 Members
1978 Online
108858 Solutions
New Discussion

Changing SNMP Write-Community

 
Sunday_1
Advisor

Changing SNMP Write-Community

Hello All!



I want to change SNMP write-community strings of some Switches 4500, 4500G and 5500G. I have 3 of them for tests and cannot change their write-community string without reboot. I give an example for this on 4500 below (I want community "anotherwrite" instead of "somewrite"):



display current-configuration | include snmp


 snmp-agent


 snmp-agent local-engineid 8000002B00247333CB406877


 snmp-agent community read someread


 snmp-agent community write somewrite


 snmp-agent sys-info version v1 v2c


 snmp-agent mib-view included admin iso


 snmp-agent usm-user v3 admin admin


undo snmp-agent community write somewrite


                                            ^


 % Too many parameters found at '^' position.



undo snmp-agent community write


   Info: cannot find community: write


display current-configuration | include snmp


 snmp-agent


 snmp-agent local-engineid 8000002B00247333CB406877


 snmp-agent community read someread


 snmp-agent community write somewrite


 snmp-agent sys-info version v1 v2c


 snmp-agent mib-view included admin iso


 snmp-agent usm-user v3 admin admin


snmp-agent community write anotherwrite


display current-configuration | include snmp


 snmp-agent


 snmp-agent local-engineid 8000002B00247333CB406877


 snmp-agent community read someread


 snmp-agent community write somewrite


 snmp-agent community write anotherwrite


 snmp-agent sys-info version v1 v2c


 snmp-agent mib-view included admin iso


 snmp-agent usm-user v3 admin admin



undo snmp-agent


display current-configuration | include snmp





snmp


snmp-agent


display current-configuration | include snmp


 snmp-agent


 snmp-agent local-engineid 8000002B00247333CB406877


 snmp-agent community read someread


 snmp-agent community write somewrite


 snmp-agent community write anotherwrite


 snmp-agent sys-info version v1 v2c


 snmp-agent mib-view included admin iso


 snmp-agent usm-user v3 admin admin




Clearly, I can "undo snmp-agent", reboot th switch and configure new communities. But is it possible to have another write-community instead of current write-community without reboot?



Thanks in advance!



2 REPLIES 2
Fred_Mancen_1
Super Advisor

Re: Changing SNMP Write-Community

Try this command:



undo snmp-agent community somewrite




Regards



Regards,
Fred Mancen
Sunday_1
Advisor

Re: Changing SNMP Write-Community

Thank you very much!