Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This starts an external program on your Axxon domainAkcja powoduje uruchomienie zewnętrznego pogramu w Domenie Axxon.

Note
titleAttention!

Any software containing a GUI is not recommended to be executed on the Server. If you encounter a problem launching interactive services, please refer to the Windows OS user manual.

To configure, do the following:

Uruchamianie dodatkowego oprogramowania zawierającego GUI nie jest zalecane dla Serwerów. Jeśli napotkasz problem z uruchamianiem usług interaktywnych, poszukaj rozwiązania w podręczniku użytkownika systemu operacyjnego Windows.

Aby skonfigurować uruchamianie zewnętrznego programu, wykonaj następujące kroki:

  1. Zezwól na interakcję Serwera NGP Host service z pulpitem: Start → Panel Sterowania → Narzędzia administracyjne → Usługi → Allow interaction of the server NGP Host service with the desktop: Start > Control Panel > Administrative Tools > Services  > Net Logon -> Properties Właściwości - Log onZaloguj.


    Info
    titleNote

    For Failover Server and Client installation type (see Instalacja), you have to allow  the Dla typu instalacji Serwer i Klient Failover (zobacz: Instalacja), należy wykonać podobne kroki dla usługi NGP RaFT supervisor serviceto interact with desktop.


  2. Add to folder <Directory where Axxon Next is installed>Dodaj do folderu <Folder instalacji Axxon Next>\UserScripts\ one or more .bat files with the application startup command.
    The command should include a path to the executable file.  You can specify a network path and command-line options (see jeden lub więcej plików .bat z komendami uruchomienia aplikacji.
    Komenda powinna wskazywać ścieżkę do pliku .exe. Możliwe jest wyznaczenie ścieżki sieciowej bądź opcji wiersza poleceń (zobacz: Uruchamianie zewnętrznego programu na Klientach).
  3. Select the server where you want to run the Wyznacz Serwer, na którym ma zostać uruchomiony program (1).
  4. Select a bat. file with the run command Wyznacz plik .bat z komendą uruchomienia(2).Enter templates
  5. , if they were set via a bat file Wyznacz szablony jeśli zostały one ustawione poprzez plik .bat (3).

Example Przykład 1: If you apply the following bat file Jeśli załączysz następujący plik .bat:

Code Block
SET "datatime=%1"
SET "cameraIpAddress=%2"
 
msg * Current time is %datatime%, IP-address: %cameraIpAddress%

executing the macro will lead to the following message:inicjalizacja makro doprowadzi do wyświetlenia następującej wiadomości: 

Example Przykład 2:  Exporting camera connection status events Eksportowanie statusu zdarzeń dla połączenia z kamerą (offline/online) to a do pliku csv.bat file containing the followingzawierającego następujące instrukcje:

Code Block
SELECT "timestamp"
    ,REGEXP_REPLACE("object_id", 'hosts/', '') as device,
    CASE
                                WHEN ("any_values"::json->>'state') = '4' THEN 'Signal Lost'
                                WHEN ("any_values"::json->>'state') = '3' THEN 'Signal Restored'
                                ELSE ''
        END as state
FROM public."t_json_event"
WHERE type = '0' AND ("any_values"::json->>'state'='3' OR "any_values"::json->>'state'='4') AND timestamp >= '20200211T0000'
ORDER by timestamp DESC

Example 3: Exporting detection tools triggering events to a csv.bat file containing the followingPrzykład 3: Eksportowanie zdarzeń wyzwalających narzędzia detekcji do pliku csv.bat zawierającego następujące instrukcje

Code Block
SELECT "timestamp",
        REGEXP_REPLACE("object_id", 'hosts/', '') as device,
        CASE
                                WHEN ("any_values"::json->>'phase') = '1' THEN 'Closed'
                                WHEN ("any_values"::json->>'phase') = '2' THEN 'Opened'
                                ELSE ''
        END as state
FROM public."t_json_event"
WHERE type = '1' AND timestamp >= '20200209T110000' AND "object_id" LIKE '%ray%'
ORDER by timestamp DESC

...