2.0 Changing the Ports Used by the Embedded PostgreSQL Database

PostgreSQL uses port 5432 by default. However, ZENworks uses 54327 port for PostgreSQL. You can change the port on which the database runs.

  1. Before executing the following steps, stop the ZENworks Services on all Primary servers by running the following configure action:

    microfocus-zenworks-configure -c Start

    After running the command, under Action, select Stop.

  2. In the postgresql.conf file, specify the new port number on which the server listens to.

    The postgresql.conf file is located in %ZENSERVER_HOME%\database\pgsql\data on Windows and in /var/opt/microfocus/pgsql/data on Linux.

  3. In the zdm.xml and zenaudit.xml files on all the Primary Servers, specify the new port number in the following entry:

    <entry key="Port">54327</entry>

    By default, the entry lists the default port number, 54327.

    The zdm.xml and zenaudit.xml files are located in %ZENSERVER_HOME%\conf\datamodel on Windows and in /etc/opt/microfocus/zenworks/datamodel on Linux.

  4. Start the ZENworks Services on all Primary servers by running the following configure action:

    microfocus-zenworks-configure -c Start

  5. Run microfocus-zenworks-configure -c GenerateOSPProperties