You may need to change the Uptime Infrastructure Monitor Admin user password as part of a regular password rotation if the password has been forgotten or if the previous administrator has left the company.
Because user passwords are encrypted and stored in the up.time DataStore, you will need to access the DataStore and use a SQL UPDATE statement to change the password.
the MySQL database is the default UIM database.
Changing the password in MySQL
To change the UIM admin password in MySQL
- At the command prompt, enter the following command to change to the directory in which the database is installed:
cd <uptime_dir>/mysql/bin
where <uptime_dir> is the directory in which Uptime Infrastructure Monitor is installed. - Enter the following command to connect to the database:
mysql -uuptime -puptime -P3308 --protocol=tcp uptime
- At the MySQL prompt, enter the following statement to change the admin user's password:where NEWPASSWORD is the updated password for the admin user in Uptime Infrastructure Monitor.
UPDATE users SET password = SHA1("NEWPASSWORD") WHERE username = "admin";
- Type the following command to log out of MySQL:
exit;
Changing the password in MS SQL or Oracle
To change the UIM admin password in MS SQL or Oracle
- Open the desired db client to connect to the Uptime Infrastructure Monitor database in MS SQL or Oracle.
- In the query window, enter the following statements to change the admin user's password to "uptime":
Oracle queryUPDATE users SET password = '6772c61c438ad4ab8964f628de685f4879c55f55' WHERE username = 'admin'; COMMIT;
MS-SQL queryUPDATE users SET password = '6772c61c438ad4ab8964f628de685f4879c55f55' WHERE username = 'admin'