Categories
Knowledge Support Support exacqVision Enterprise Categories Products

How to reset the ESM admin password

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:

  1. Open bash shell as root, or provide sudo on command execution
  2. Navigate to the install folder, /usr/local/exacq/esm/
  3. Execute as root, ./enterprisesystemmanager shell
  4. 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:

  1. Open Command Prompt as administrator
  2. Navigate to the install folder, C:\exacqVisionESM\EnterpriseSystemManager\
  3. Execute, enterprisesystemmanager.exe shell
  4. 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()
Categories
Knowledge Support Support exacqVision Enterprise Categories Products

Resetting a Password in Enterprise System Manager

**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

  1. Stop all six Enterprise Manager services.
  2. Open Command Prompt as Administrator.
  3. cd C:\ProgramFiles\exacqvision\enterprisemanager\enterprisesystemmanager
    Note: EnterpriseSystemManager can be in D:\ Make sure to validate where the EM folder is installed.
  4. Run the command enterprisesystemmanager.exe shell
  5. 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
  6. Restart Enterprise Manager services and log into EM with the new password.

<br>

Linux

  1. Stop all six Enterprise Manager services.
  2. To open Enterprise Manager Shell in Linux, open a Terminal window and type: sudo /usr/local/exacq/esm/enterprisesystemmanager shell
  3. 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