Description
If the ESM administrator has lost or forgotten the ESM admin password, it can be reset by executing shell commands in the operating system of the ESM machine.
Note: root/admin level access to the ESM machine is required for this process.
In Linux:
- Open bash shell as root, or provide sudo on command execution
- Navigate to the install folder, /usr/local/exacq/esm/
- Execute as root, ./enterprisesystemmanager shell
- Type the following commands, hit enter after each line.
from organization.models import EnterpriseUser
u = EnterpriseUser.objects.filter(username=’admin’).get()
u.set_password(‘password_goes_here’)
u.save()
import sys
sys.exit()
<br>
In Windows:
- Open Command Prompt as administrator
- Navigate to the install folder, C:\exacqVisionESM\EnterpriseSystemManager\
- Execute, enterprisesystemmanager.exe shell
- Type the following commands, hit enter after each line.
from organization.models import EnterpriseUser
u = EnterpriseUser.objects.filter(username=’admin’).get()
u.set_password(‘password_goes_here’)
u.save()
import sys
sys.exit()