Categories
Knowledge Support Support Categories exacqVision Webservice Products

Setting up a secure ESM instance to see video with a configured web service

Product

  • exacqVision Enterprise System Manager 2.0.4 to 5.10

Note: As of version 5.12, ESM no longer utilizes a Web Service to directly stream live video.  The instructions below only apply to version 5.10 and lower.

Description

Setting up a secure ESM to see video with a configured exacqVision Web Service.

<br>

How to set up a certificate for Web Service

If your ESM is using https, the web service must also be using HTTPS to stream video to the ESM UI. See links to KB’s below to configure your exacqVision Web Service for SSL.

Note: For your web browser to securely reach your exacqVision Web Service located internally on your network, you must port forward your secure web service port (default 443) to the internal IP of your exacqVision Web Service.

<br>

Categories
exacqVision Enterprise Categories Products

ESM API may not provide strings for all attributes

Description

When using the ESM API to retrieve servers or cameras, sometimes a field may come back as an integer when the attribute does not say ID.

There is usually no way to know what the integer represents. It should show a string.

<br>

ESM-API-may-not-provide-strings-for-all-attributes.pdf
Categories
exacqVision Enterprise Categories Products

ESM API cannot filter on NULL or dates

Even though you are able to attempt to filter on NULL or a date, it does not work on any endpoint that provides a date field attribute.

<br>

Categories
exacqVision Enterprise Categories Products

ESM API documentation is not always accurate

Issue

When viewing endpoints, the example response may not actually match the response when you use the ‘Try it Out’ button.

Also, some attributes may specify it returns a string but instead it returns an integer. It is recommended to utilize the ‘Try it Out’ button for the API you wish to use as how that API will actually behave.

<br>

Categories
Knowledge Support Support exacqVision Enterprise Categories Products

ESM: Moving the PostgreSQL database location

Steps:

When you run the Enterprise System Manager (ESM) installer and select PostgreSQL as the database, it installs the PostgreSQL files at the ESM installation location, except for the data folder that actually contains the database.

<br>

By default, the database is installed in c:/Program Files (x86)/postgresql/9.2/data, and the ESM installation directory is C:/exacqVisionESM/PostgreSQL/9.2/, although it’s possible to select a different location during installation.

<br>

To move the data folder to the ESM installation location, complete the following steps:

<br>

ESM-Moving-the-PostgreSQL-database-location.pdf
Categories
Knowledge Support Support exacqVision Server Categories Products

Common Linux CLI Commands (Terminal)

Download the latest release

Use the ‘wget‘ command followed by the URL for each exacqVision application:

Server
https://www.exacq.com/release/exacqVisionServerRC.deb

Client
https://www.exacq.com/release/exacqVisionClientRC.deb

Web Service
https://www.exacq.com/release/exacqVisionWebServiceRC.deb

<br>

Install the latest release

Use the ‘dpkg’ package manager to install exacqVision packages after downloading using the ‘wget‘ commands above.

Server
dpkg -i exacqVisionServer.deb

Client
dpkg -i exacqVisionClient.deb

Web Service
dpkg -i exacqVisionWebService.deb

<br>

Check available hard drive space

Use the ‘disk free’ command. Disk partitions used by exacqVision are usually labeled with their mount points as /mnt/edvr/1, 2, 3, and so on.

df -h

<br>

Check if exacqVision Server is running

Use the ‘process status’ command to list running processes followed by the ‘grep’ command to filter results to ‘core’ which is the name of the exacqVision Server process.

ps auxw | grep core

<br>

Stop the exacqVision Server service

Use either of the following commands:

  • sudo service edvrserver stop
  • sudo /etc/init.d/edvrserver stop

<br>

Start the exacqVision Server service:

Use either of the following commands:

  • sudo service edvrserver start
  • sudo /etc/init.d/edvrserver start

<br>

Stop the exacqVision Web Service

sudo /usr/local/exacq/webservice/service.sh stop

<br>

Start the exacqVision Web service

sudo /usr/local/exacq/webservice/service.sh start

<br>

List server log files

Log files are titled by date.

ls /usr/local/exacq/server/logs/

<br>

View a log file

Replace *filename* with the name of the log file you wish to open.

sudo less /usr/local/exacq/server/logs/*filename*

<br>

Compress a server log file to send to support

Replace *filename* with the name of the log file you wish to compress.

tar -cvjf log.tar.bz2 /usr/local/exacq/server/logs/*logfilename*

<br>

Compress all server log files to send to support

tar -cvjf logs.tar.bz2 /usr/local/exacq/server/logs

<br>

Open log file to show new entries as they are written

Replace *filename* with the name of the log file for the current date.

tail -n 25 -f /usr/local/exacq/server/logs/*filename*

Stop the update and return to a command prompt by pressing CTRL+C.

Note: The number after “-n” allows the number of lines displayed to be adjusted. (25 lines in this case)

<br>

Check for a mounted data drive

mount

<br>

Edit the Web Service config file

The command used will depend on the version of the web service used on the NVR.

9.6+          sudo nano /etc/webservice/wfe.json

9.0 – 9.4   sudo nano /etc/webservice/webservice.conf

1.x – 8.8   sudo nano /etc/webservice.conf

Note: Press CTRL+X to exit. This will prompt to save changes.

<br>

List PCI Devices in System (Capture Boards, Sound Card, Video Card)

lspci

<br>

List Motherboard BIOS information

sudo dmidecode

<br>

Show routing table

route -n

On newer OS’s if route is not installed by default, you may use ip.

ip route list

<br>

Add a static route

Setting static routes may be necessary when you have two or more networks that your computer needs to send traffic to. Most devices only connect to one network and all network traffic is routed to the default gateway, which is a router that chooses where to forward traffic to next. When you add more static routes, it adds more gateways. This will tell the system to send data you know is destined for a specific network to a chosen router instead of the default.

Replace NETWORK with the target network IP. Replace NETMASK and GATEWAY with the respective network mask and gateway IP address.

sudo route add -net NETWORK netmask NETMASK gw GATEWAY

Example: sudo route add -net 192.168.5.0 netmask 255.255.0.0 gw 192.168.5.1

On newer OS’s if route is not installed by default, you may use ip. Replace CIDR with the CIDR notation for the netmask and INTERFACE with the name of the network interface.

sudo ip route add NETWORK/CIDR dev INTERFACE

Example: sudo ip route add 192.168.5.0/16 dev eth0

<br>

Local Commands

Change Screen Resolution for the User profile

Press CTRL+ALT+F3.

Log in as user and run the following 2 commands:

  1. export DISPLAY=:0.0
  2. gnome-display-properties

Press CTRL+ALT+F7.

<br>