Cannot import/export items at OTRS5 using cron

Moderator: crythias

Locked
ryotaro
Znuny newbie
Posts: 3
Joined: 01 Apr 2016, 10:06
Znuny Version: 5.0.6
Real Name: Ryotaro Kobayashi
Company: http://mec-jp.com

Cannot import/export items at OTRS5 using cron

Post by ryotaro »

Hello,

When I was using OTRS4, I had imported the output csv data from the OCS Inventory to OTRS.
Using cron, and script that uses the "/opt/otrs/bin/otrs.ImportExport.pl".

Like this
http://www.neteye-blog.com/2014/05/cmdb ... inventory/

But I upgraded OTRS from 4 to 5, ImportExport.pl was disappeared! :(

Please someone tell me , how to import/export items at OTRS5 using command line.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Cannot import/export items at OTRS5 using cron

Post by reneeb »

The cronjobs were replaced by a Console script. You can list all available commands via

Code: Select all

perl bin/otrs.Console.pl List
You have to search for the ImportExport stuff.

Try Admin::ITSM::ImportExport::Import ...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
ryotaro
Znuny newbie
Posts: 3
Joined: 01 Apr 2016, 10:06
Znuny Version: 5.0.6
Real Name: Ryotaro Kobayashi
Company: http://mec-jp.com

Re: Cannot import/export items at OTRS5 using cron

Post by ryotaro »

Thank you soooooo much!
I did it !

Import command is

Code: Select all

otrs.Console.pl Admin::ITSM::ImportExport::Import
Export command is

Code: Select all

otrs.Console.pl Admin::ITSM::ImportExport::Export
With this,I can use cron as OTRS4. thx

Regards,
reneeb wrote:The cronjobs were replaced by a Console script. You can list all available commands via

Code: Select all

perl bin/otrs.Console.pl List
You have to search for the ImportExport stuff.

Try Admin::ITSM::ImportExport::Import ...
Locked