6.4 CalServer interne Hilfsfunktionen

6.3 Shell-Befehle für CalServer

Shell-Befehle ermöglichen Administrator:innen die effektive Verwaltung und Steuerung automatisierter Aktionen sowie Installations- und Wartungsaufgaben. Sie bieten eine schnelle und flexible Möglichkeit zur direkten Interaktion mit CalServer.

Allgemeine Verwendung

Die Befehle folgen einer einheitlichen Syntax:

Ein typisches Anwendungsbeispiel ist:

Dieser Befehl durchsucht definierte Ordner nach neuen Dateien und importiert diese automatisch ins Dokumentenmanagementsystem (DMS).

Wichtigste verfügbare Befehle und ihre Funktionen

    • dmsinboxcheck: Scannt regelmäßig festgelegte Verzeichnisse nach neuen Dateien und importiert diese automatisch in das Dokumentenmanagementsystem (DMS).
    • mailer / sendemailqueue: Überwacht und verarbeitet die Warteschlange für den Versand von automatisierten E-Mails. Ideal für Statusmeldungen und Benachrichtigungen.
    • status: Aktualisiert automatisch den Status von Inventaren anhand vordefinierter Bedingungen und Regeln, z.B. basierend auf Ablaufdaten oder Statusänderungen.

weitere in der Tabelle unten.

Anwendungsbeispiel

Mit diesem Befehl werden neue Dokumente automatisch erkannt und direkt im DMS archiviert, um eine optimale und kontinuierliche Datenverwaltung zu gewährleisten.

The following commands are available:

CommandDescriptionUsage
backup#702 - add tasks for automatic backup of database. Backup database (using borg backup) with condition from backup_action table: current_date >= start AND current_date <= end (type in list [all, database, file])./yiic backup run [--type=all]
copyfiletoinbox#774 - all x minutes new files should copied from external directory to inbox. Copy files from External Documents Folder to Target Inbox Folder in File Management./yiic copyfiletoinbox run
copytolocalCopy files from remote to local when file store is set to one of the types as FTPSFTPDigitalOcean./yiic copytolocal run
deletefiledms#671 - add button 'delete all xxx files'. Delete all files from dms that they are searched by parameters./yiic deletefiledms run [--name=value1] [--hash=value2] [--major_version=value3] [--minor_version=value4] [--is_latest=value5] [--status=value6] [--filename=value7] [--filetype=value8] [--type=value9] [--link_table=value10]
dmsinboxcheckMove files from inbox to dms./yiic dmsinboxcheck run
fixdms#578 - inbox dms reading makes version when permission is wrong. Check all records in dms from date parameter and delete them if file isn't found then fix version after delete record from dms./yiic fixdms run --delete_from_date=value
fixfilesetting#1120 - old user setting occurring error in grids. Fix file setting contains fields that they don't exist in field configuration./yiic fixfilesetting run
fixinbox#894 - sometimes 1B files after update. Fix file size for all files in inbox which have size is 1 Byte./yiic fixinbox run
fixmtag#301 - issue when special character in field MTAG./yiic fixmtag run
fixversionfordms#1133 - fix file management version creation wrong. Fix versions are incorrect./yiic fixversionfordms run
generatelicense#1011 - add licenses.md document in root. Generate licenses.md in protected folder./yiic generatelicense run
insertcert#837 - find all SSL certs on server and then insert to ssl_certificate table./yiic insertcert run
mailerSave emails will be sent in queue from mailer actions with condition: current_date >= start AND current_date <= end (limit=0 is all)./yiic mailer run [--limit=0]
sendemailqueueSend emails in queue (limit=0 is all)./yiic sendemailqueue run [--limit=0]
exportreportExport reports from emails in queue before send them (limit=0 is all)./yiic exportreport run [--limit=0]
deletereportDelete reports from emails in queue after sent successfully (limit=0 is all)./yiic deletereport run [--limit=0]
resetcounterReset global counter variables in Rules page./yiic resetcounter run
transfertomssqlTransfer all inventories from MySQL database to MSSQL database./yiic transfertomssql run
updatepathforinventory#1353 - Update path field on every row in inventory table when run migration is failed./yiic updatepathforinventory run
fixI4217#1353 - Adjust I4217 field belong to I4201 field that it has value of MTAG field in inventory table./yiic fixI4217 run
fetchmail#1361 - Fetch mails of support module in inbox from user's email and insert to database./yiic fetchmail run
saveasstatistic#1116 - add statistics table for filter values. Save statistics data from advanced filters./yiic saveasstatistic run
status#194 - new status function to set status automatically. Update status for inventory when they satisfy condition in status action./yiic status run
testcopy#578 - Test copy file on local to make sure file has source path is existed./yiic testcopy run --source_path=value1 --dest_path=value2
testrestoreTest restore database from sql file and import to database parameter./yiic testrestore run --sql_file=value1 --database=value2

Copyright © 2019 CalHelp System by CalHelp. All Rights Reserved