SNMP community string change practice

Document ID : KB000009997
Last Modified Date : 15/05/2018
Show Technical Document Details
Introduction:

What is the best practice in NFA to handle a global community string change?

We use CAPC?

Background:

We will be changing the SNMP string on all the devices/routers in NFA.

If we add the new string to the CAPC list in the profile, will NFA still be able to poll them?

Will we have to perform anything on each device?

Environment:
RA/NFA all versions
Instructions:

After adding the new Community String in CAPC, it will sync down to NFA
and no extra changes or updates will be needed for each device.

Here are they steps for doing a global snmp string change for NFA 9.3.3.

1.  Add the SNMP community string to CAPC or NPC
2.  Update the routers with the new SNMP string
3.  Open a DOS prompt on each Harvester and run the following command.
     mysql -P3308 -D poller -t -e "update routers set profileid=0;"
     mysql -P3308 -D poller -t -e "update routers set State='InitialPoll', stateretry=0, reboottime=0;"

Here are they steps for doing a global snmp string change for NFA 9.3.6+.

1.  Add the SNMP community string to CAPC or NPC
2.  Update the routers with the new SNMP string
3.  Open a DOS prompt on each Harvester and run the following command.
     mysql -P3308 -D harvester -t -e "update routers set profileid=0;"
     mysql -P3308 -D harvester -t -e "update routers set pollState='InitialPoll', stateretry=0, reboottime=0; "

Note: It should take some time to update the DB, so let it stew for a few hours.