Changing the api password
search cancel

Changing the api password

book

Article ID: 382965

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

The default api user and password needs to be updated for security reasons.

Environment

7.x Watch4Net

Resolution

  • Generate a new password using the crypt-password.sh utility
    APG/bin/crypt-password.sh newpassword
  • Copy the encrypted password output including the { and } characters.  ie {12345ABC}
  • Updated the passwords in the following files with the new encrypted password that was generated.
    APG/Tools/Webservice-Gateway/Default/conf/users
    APG/Tools/Remote-SNMP-Collector-CLI/Default/conf/ws.properties
    APG/Event-Processing/Event-Database-Migration/<instance>/conf/event-database-reader.xml
    APG/Event-Processing/Event-Database-Migration/<instance>/conf/event-database-reader-DS.xml
    APG/Custom/WebApps-Resources/Default/scheduling/scheduling-servers.xml
    APG/Collecting/Load-Balancer/Load-Balancer/conf/balancer-connector.xml
    APG/Event-Processing/Trap-Receiver/Alert-Consolidation/conf/ws.properties
  • Restart the following services
    tomcat
    trap receiver
    event processing manager
    Load balancer Collector Manager
  • If there are multiple instances of the above process in addition to Default, those will need to be restarted as well.
  • Update the api password in the ui
  • Resync the client certificates
  • Verify that the arrow turns green.
  • Verify that the new password via the http api call
    APG/Tools/Administration-Tool/Default/bin/administration-tool.sh https://admin:[PASSWORD]@[server]:48443/Tools/Administration-Tool/Default/listUser?disableSSLValidation=true