SNMP community string change practice
search cancel

SNMP community string change practice

book

Article ID: 9997

calendar_today

Updated On:

Products

CA Network Flow Analysis (NetQos / NFA)

Issue/Introduction

What is the best practice in DX NetOps Network Flow Analysis to handle a global community string change?

We will be changing the SNMP string on all the devices/routers in DX NetOps Network Flow Analysis.

If we add the new string to the DX NetOps Portal list in the profile, will DX NetOps Network Flow Analysis still be able to poll them?

Will we have to perform anything on each device?

This knowledge base article outlines the steps to assign SNMP profiles in DX NetOps Network Flow Analysis.

SNMP (Simple Network Management Protocol) profiles are essential for monitoring and managing network devices efficiently.

Environment

RA/NFA all versions

Resolution

There are different ways we can refresh the SNMP profile within DX NetOps Network Flow Analysis.

i) NetOps Portal 

ii) OData

iii) Database query

a) Fetch Router ID:

  • Method: GET request via a REST client
  • Endpoint: http://127.0.0.1:8981/odata/api/routers
  • Credentials: Username/password - admin/admin (password varies)
  • Purpose: Retrieve the unique identifier (Router ID) for the target router.

b) Perform SNMP Refresh:

c) Bulk Edit (Global SNMP String Change):

  • Method: Execute SQL commands via a DOS prompt
  • NFA 9.3.3:
    1. Add SNMP community string to NetOps Portal.
    2. Update routers with the new SNMP string.
    3. Execute SQL commands:
      mathematica
       
      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;"
       
  • NFA 9.3.6+ / NetOps:
    1. Add SNMP community string to NetOps Portal.
    2. Update routers with the new SNMP string.
    3. Execute SQL commands:
       
      mysql -P3308 -D harvester -unetqos -pnetqos -t -e "update routers set profileid=0;"
      mysql -P3308 -D harvester -unetqos -pnetqos -t -e "update routers set pollState='InitialPoll', stateretry=0, reboottime=0;"
       
  • Note: Allow some time for the database to update.

d) Edit Bulk via OData API:

 

Additional Information

Reference - 

SNMP String Refresh