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.
[ITSM] Import CSV file to CMDB using CLI
Moderator: crythias
[ITSM] Import CSV file to CMDB using CLI
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
---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
-
- 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
You're using OTRS5, there you have to use
perl bin/otrs.Console.pl Admin::ITSM::ImportExport::Import ...
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: [Solved] [ITSM] Import CSV file to CMDB using CLI
Thanks reneeb!
Everething works fine with your bin/otrs.Console.pl.
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
---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database