HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

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
Fred_Mancen_1
Super Advisor

Re: Changing SNMP Write-Community

Try this command:



undo snmp-agent community somewrite




Regards



Sunday_1
Advisor

Re: Changing SNMP Write-Community

Thank you very much!