Hauptmenü

How to run Generic Agent job through command line?

Begonnen von Nilufar, 16.05.2018 15:07:51

⏪ vorheriges - nächstes ⏩

Nilufar

Hello! how to run Generic Agent job from command line not through web-interface?
Thank you in advance for any suggestions.

Tino Voigt

Hello Nilufar,

you can run Generic Agents from the terminal using the command ,,sudo -u <your webserver user> /opt/kix/bin/kix.Console.pl Maint::GenericAgent::Run –configuration-module (your configuration module)"

You can find some test configuration modules under /opt/kix/Kernel/System/GenericAgent.

For example:

sudo -u www-data /opt/kix/bin/kix.Console.pl Maint::GenericAgent::Run --configuration-module Kernel::System::GenericAgent::AutoPriorityIncrease

best regards, Tino Voigt

Nilufar

#2
Hello mr. Tino Voigt,

Thank you for your answer, I also wanted to make clear about "AutoPriorityIncrease" part, is it custom generic agent job which you already created through generic agent interface in kixdesk?

Thank you once again for your assistance.

Tino Voigt

 Hello Nilufar,

the AutoPriorityIncrease is just a sample for a configuration module. Its part of the KIX package.
You can create your own configuration module to run you customized generic agents by using the command line.

Best regards, Tino Voigt

Nilufar

Thank you so much for your answers!
Please help me, how can i create my own configuration module?



Tino Voigt

Hello Nilufar,

you can create your own configuration-module on the same way like the sample from the AutoPriorityIncrease.

What do you want to do with the generic agent.
In the most cases, the handling and flexibility of generic agents by using the web interface is more 
comfortable.

Best regards, Tino Voigt

Nilufar

In my case my team we have repetitive tasks every week/months and i have to make system to create tickets for certain agents every week/months automatically using cron job
Can i make it somehow?

Thank you for your assistance.

Tino Voigt

Hello Nilufar,

for this you could use the maintenance planner module.
With this module, you can define time-based, cyclic or threshold-based maintenance.

You can find more informations aubout the maintenance planner on the kixdesk website:
https://www.kixdesk.com/en/downloads/user-manuals.html

best regards, Tino Voigt

Nilufar

Is this module chargable? If yes then how to purchase it ?

Tino Voigt

Hello Nilufar,

you can find a price-list at the following link:
https://www.cape-it.de/de/impressum.html?file=files/cape_it/inhalte_cape_it/Terms_Conditions/de/KIX_Preisliste_2018.pdf

For more informations please feel free to contact our sales Team at: sales@cape-it.de

best regard, Tino Voigt