The foglight_db_upgrade command verifies the database version and upgrades it to a higher version if necessary. This command is useful when you need to migrate data from a Foglight environment that is running a lower version of the embedded database. This typically happens when the database upgrade that is initiated through the installer fails to complete.
Provides the location to the server.config file. | ||
• |
Foglight stores encrypted passwords and uses application tokens to look up encryption keys. In a default installation, keystore and database passwords are encrypted using the foglight.defaultkey, stored in the <foglight_home>/config/mstkey.properties file.
In some cases, you may need to change the database password or the default keystore password, for extra security. A newly changed password must be encrypted using the keyman command, and updated in the appropriate configuration file:
• |
Foglight database password is stored encrypted in the <foglight_home>/config/server.config file, in one of the following configuration parameters: |
• |
server.database.password sets the password used by the Management Server to establish the connection with the database. |
• |
server.database.embedded.password sets the password of the embedded database. The Management Server uses this value to start the embedded database. This is usually the root password that can be changed and encrypted. |
• |
The <foglight_home>/config/tomcat.keystore password is stored encrypted in the <foglight_home>/server/tomcat/server.xml file. The default keystore password is nitrogen. |
a |
On the Management Server machine, navigate to the <foglight_home>/bin directory. |
c |
Record the output of the keyman command. For example: |
3 |
Update the server.config file with the newly encrypted database password. |
a |
On the Management Server machine, open the <foglight_home>/config/server.config file for editing. |
b |
c |
Save the changes to the server.config file and restart the Management Server. |
d |
Change the password for the Management Server user in the database (the default user name is foglight). For more information, see your database documentation. |
2 |
On the Management Server machine, navigate to the <foglight_home> directory and issue the following command: |
jre/bin/keytool -J-server -keystore <keytool_path>/tomcat.keystore -storepass <password> --list -v keytool_path is the directory path to the tomcat.keystore file. password is the keystore password. |
a |
On the Management Server machine, navigate to the <foglight_home>/bin directory. |
c |
Record the output of the keyman command. For example: |
4 |
a |
On the Management Server machine, open the <foglight_home>/server/tomcat/server.xml file for editing. |
b |
c |
Save the changes to the server.xml file and restart the Management Sever. |
The keyman command allows you to encrypt passwords, to change, add, or delete encryption keys, or to generate application tokens.
Specifies the password value that is to be encrypted. keyman encpwd "my_new_password" foglight.defaultkey |
IMPORTANT: Embedded Foglight Agent Manager instances do not automatically start on server startup if you are upgrading the server. You can override this behavior by setting the parameter server.fglam.embedded in <foglight_home>/config/server.config to true. |
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 使用条款 隐私 Cookie Preference Center