Categories
Knowledge Support Support exacqVision Server Products

PSMOVE For Windows

Description 

The purpose of this KB is to help run PS MOVE and where to place the files on a system.

Product 

PSMOVE.exe
Exacq Server 23.03 and above.

File Location: 

Windows:
Place psmove.exe in the Server folder.
Open powershell or command promt as ADMIN.
cd C:\Program Files\exacqVision\Server and place the psmove.exe into the server folder.

Linux: ETA not available yet.

NOTE: When Running on Windows AND Linux PSMOVE must be in the sever folder because it depends on the libraries installed with server.

Running PSmove on Windows: 

Once the psmove.exe is in the Server location seen above, you can run the following command to execute it.

In command prompt or powershell type the following
cd C:\Program Files\exacqVision\Server

Then type:
psmove -r-


Additional Information and KB’s for reference

  1. It defaults to report-only mode. psmove -r- will move files.
  2. It will open a ps file and get the first frame timestamp and determine the correct hour directory for the file, based on the CURRENT timezone. If the file is not in the correct hour directory, it will rename it to put it in the correct directory.
  3. Collision avoidance: If there is already a file in the destination directory of the same name, it will decrement the timestamp by one second, generate the new name and try again. Only the file name is changed, not the file content.
  4. The reporting is still pretty slim. report-only mode when specifying a “path” doesn’t currently count what “would” be moved correctly. When moving, it will count the hours and files that were moved.
  5. The default mode is to check all volumes. It will locate all of the media in the y/m/d/h directories. report-only mode will count correctly.
  6. It does not delete empty files. With newer versions of ev there shouldn’t be any. It will report empty files. An empty file cannot be checked for the correct directory. It’s empty and, therefore; doesn’t have a first frame timestamp.
    So, on a server that recorded in one timezone and then changes timezones, PSmove will get the files in the correct hour directories. All of the content should then be searchable.
  7. We’ve reduced the dependencies to the minimum, there are still dependencies. PSmove will only work with the server for that version and later after the compiler upgrade.

KB’s
https://support.exacq.com/#/knowledge-base/article/12416

PSMOVE.exe file:
https://support.exacq.com/#/file-manager/file/32753166-bddf-41d1-9fbd-a8ae6a9e10b4/psmove-exe

We will continue to update this KB as the Linux version gets finalized.

<br>

Categories
Knowledge Support Support exacqVision Server Categories Products

Psmove may get frozen on windows machine

*** INTERNAL USE ***

Description 

When using psmove on a windows machine the process may get frozen and you will get a cursor in PowerShell that stops blinking. This issue will occur if psmove is trying to move data to a date that does not exist in the local storage.

Product 

Any ExacqVision NVR running Windows

Steps to Reproduce 

  • Open PowerShell
  • Run psmove.exe -v -l

Expected Results 

Data that is out of sync gets moved to the correct dates/folders.

Actual Results 

psmove freezes in PowerShell

Solution

  1. Download Process Monitor Process Monitor – Windows Sysinternals | Microsoft Learn.
  2. Run Process Monitor after installing.
  3. Open PowerShell and run psmove.
  4. Process Monitor will inform you what month and day folder does not exist.
  5. You will see “NAME NOT FOUND” with the file path entries in Process Monitor.
  6. Manually create this day folder in the local storage.
  7. psmove will then begin to move data.

<br>

Categories
Knowledge Support Support Categories Products exacqVision Hardware

Running psmove on Ubuntu Linux

*** INTERNAL USE ***

Description 

The psmove utility was designed to move psfiles to the correct location after a time zone change or if a files time does not match frame times.  It will perform a search on all local storage drives, read the PSI file header for the start time, determine if the PSI file is in the wrong folder and move it to the correct folder on the same drive.  

Product 

  • psmove
  • Ubuntu 18.04.5 LTS (Bionic Beaver) 64-bit

Instructions

The psmove utility was designed to move psfiles to the correct location after a time zone change or if file times do not match frame times.  It will perform a search on all local storage drives, read the PSI file header for the start time, determine if the PSI file is in the wrong folder and move it to the correct folder on the same drive.  

As part of the process, it creates a copy of the directory found on the local sAs part of the process, it creates a copy of the directories found on the local storage drives to the folder  “/mnt/edvr/YYYY” where “YYYY” matches any existing years folders currently located on the local storage drives.   Files are moved here to the correct folder and then will need to be manually moved back to the local storage drive(s).

This will result in a Low Disk Space message if the size of the files being moved is larger than the available space on the root partition.   If this occurs files must be moved back to the local storage drive(s) and then removed from the root partition by deleting the year folder,  “/mnt/edvr/YYYY” before psmove can be run again.  Depending on the size of the files needing correction and available space on the root partition it may be necessary to repeat this cycle several times.   Once psmove returns a result “Moved 0 file” then a final deletion of the folder “/mnt/edvr/YYYY” should be performed before resuming normal operation..

Local Storage Preparation

Since files will need to be moved from the root partition back to the local storage drives some free space will be required.  It is recommended that you check the Used Space on the Storage page and if the drive(s) is full, check the oldest content and then determine the number of days needed then create an at most expiration configuration rule which will remove older content creating free space.  Other options can be used such as coping older data to an external drive the goal is to create free space.

Linux 64-bit Example

Download PSMoveUtil.zip to the admin users Downloads folder

Open Terminal

Change directory to Downloads

Extract psmove

Copy psmove to Downloads

Make psmove Executable

Perform a Dry Run of psmove

Note:  In this example the dry run listed files and showed “Moved 1350 files” indicating that psmove  is needed. 
If it had returned “Moved 0 files” then there would be no need to run psmove.

Run psmove

If the root partition fills up the following “Low Disk Space” message appears

Change Directory to /mnt/edvr

List Contents of /mnt/edvr/

This command shows that the year folder created is 2022

Sync Corrected Files to Local Storage

This command is syncing the corrected files from the root partition back to the local storage drive.

Remove the Year Folder

WARNING make sure that you are in the correct folder /mnt/edvr before running this command it is deleting date

List Contents of /mnt/edvr

Ensure the Year folder, in this example 2022 is no longer listed

Change Directory to Downloads

Repeat the above steps beginning with “Run psmove”  until psmove returns “Moved 0 Files”

Make sure to remove the Year Folder one last time

  • Change Directory to /mnt/edvr
  • List Contents of /mnt/edvr/
  • Remove the Year Folder