[ITSM] Import CSV file to CMDB using CLI

Moderator: crythias

Locked
Gonzalo
Znuny newbie
Posts: 75
Joined: 06 Nov 2013, 19:20
Znuny Version: 5.0.8
Real Name: Gonzalo

[ITSM] Import CSV file to CMDB using CLI

Post by Gonzalo »

Hello,

I´m trying to import a CSV file from command line to input items in the CMDB using otrs.ImportExport.pl, but I've got the next error message:

[root@otrs otrs]# ./bin/otrs.ImportExport.pl -n 000004 -a import -i /tmp/otrs_servidores.csv
$Kernel::OM is not defined, please initialize your object manager at /opt/otrs/Kernel/System/Log.pm line 67.
Kernel::System::Log::new('Kernel::System::Log', 'LogPrefix', 'OTRS-ImportExport', 'ConfigObject', 'Kernel::Config=HASH(0x19ec048)') called at ./bin/otrs.ImportExport.pl line 43

How can I to define the OM?

Thanks a lot,
Best regards.
OTRS 5.0.8 with Oracle Linux Server release 7.1 with MariaDB database

---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
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: [ITSM] Import CSV file to CMDB using CLI

Post by reneeb »

You're using OTRS5, there you have to use

perl bin/otrs.Console.pl 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
Gonzalo
Znuny newbie
Posts: 75
Joined: 06 Nov 2013, 19:20
Znuny Version: 5.0.8
Real Name: Gonzalo

Re: [Solved] [ITSM] Import CSV file to CMDB using CLI

Post by Gonzalo »

Thanks reneeb!

Everething works fine with your bin/otrs.Console.pl.
OTRS 5.0.8 with Oracle Linux Server release 7.1 with MariaDB database

---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
Locked