Changing the SNMP community string for devices
search cancel

Changing the SNMP community string for devices

book

Article ID: 303987

calendar_today

Updated On: 04-27-2025

Products

VMware Smart Assurance

Issue/Introduction

How do I change the SNMP community string for devices in my Smarts AM topology?

Environment

Smarts - 10.1.x

Resolution

  • Run the following command to create a seedfile. It will dump a list of all of the devices currently in your AM-PM/AM topology. 
    <IP_BASE>/smarts/bin/sm_tpmgr -s <domain> --dump-agents > <PATH>/seedfile
  • Edit the seedfile and remove ALL devices that are NOT going to have their Community changed. Make the necessary changes to the COMMUNITY values for the remaining devices and save the seedfile.
  • Run the following command to have the changes take effect. 
    <IP_BASE>/smarts/bin/sm_tpmgr -s <domain> --update-community --seed=<full path to>/seedfile

Example:

./sm_tpmgr -s TEST_DOMAIN --update-community --seed=/opt/IP/IP10112/IP/smarts/bin/seed.txt | tee

Message on console 

sm_tpmgr: update community string from seed file '/opt/IP/IP10112/IP/smarts/bin/seed.txt'

 indicates that command execution is successful. 

Additional Information

Running the above command will immediately update the community strings for those devices specified in the seedfile without requiring a rediscovery or delete and readdition of the device(s).