**This should NEVER be given out to a customer**
To reset the password for a user in Enterprise Manager, complete the following steps for Windows or Linux.
<br>
Windows
- Stop all six Enterprise Manager services.
- Open Command Prompt as Administrator.
- cd C:\ProgramFiles\exacqvision\enterprisemanager\enterprisesystemmanager
Note: EnterpriseSystemManager can be in D:\ Make sure to validate where the EM folder is installed. - Run the command enterprisesystemmanager.exe shell
- In the shell, type the following:
from organization.models import EnterpriseUser
u = EnterpriseUser.objects.get(username=”admin”)
u.set_password(“Support.1”)
u.save()
import sys
sys.exit()
NOTE: It may be necessary to replace the field username=”admin” above with the actual username configured at time of installation, if not using default value. In example: username=”enterpriseadmin“ - Restart Enterprise Manager services and log into EM with the new password.
<br>
Linux
- Stop all six Enterprise Manager services.
- To open Enterprise Manager Shell in Linux, open a Terminal window and type:
sudo /usr/local/exacq/esm/enterprisesystemmanager shell
- In the shell, type the following:
from organization.models import EnterpriseUser
u = EnterpriseUser.objects.get(username="admin")
u.set_password("Support.1")
u.save()
import sys
sys.exit()
- Exit Terminal and start all six Enterprise Manager Services
NOTE: It may be necessary to replace the field username=”admin” above with the actual username configured at time of installation, if not using default value. In example: username=”enterpriseadmin“
**If unable to login to the EM Web Portal on a Linux box after resetting the password, either user a different browser or upgrade repositories
sudo apt update
sudo apt upgrade