Auto Importing Config Items from SCCM server

Moderator: crythias

Locked
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Auto Importing Config Items from SCCM server

Post by Gunjan »

Hi,

I am using OTRS ITSM 3.3.12. Can I import config items in OTRS CMDB from SCCM Server automatically? If yes, it would be great if someone can provide me the steps to do so.

Regards,
Gunjan
BIG_jan
Znuny advanced
Posts: 138
Joined: 05 Jun 2009, 11:32
Znuny Version: 3.3.8
Company: Netzlink Informationstechnik GmbH
Location: Wolfenbüttel,GER
Contact:

Re: Auto Importing Config Items from SCCM server

Post by BIG_jan »

Export-CSV from SCM and import into CMDB

Export daily to a defined path
import via cron-job "OTRS\bin\otrs.ImportExport.pl"
Live: OTRS 3.3.8, ITSM 3.3.8, in vm
Test: otrs 3.3.8, ITSM

OS: RedHat 6.5 64Bit, Apache: 2.2.15, MySQL 5.5.38, Perl: 5.10.1, mod_Perl 2.0.4
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Re: Auto Importing Config Items from SCCM server

Post by Gunjan »

How will we define the path of the csv file in the script file?
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Re: Auto Importing Config Items from SCCM server

Post by Gunjan »

Hi,

Can anyone please let me know how I can create a cron job to do the importing?

Regards,
Gunjan
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Auto Importing Config Items from SCCM server

Post by EXG133 »

Best way is to create a file in /opt/otrs/var/cron
Have a look in the files there for examples. After you have created the file make sure the rights on the new file are the same as the other files and restart the otrs service.
If you want to know the possible parameters just run it with an -h as parameter

/opt/otrs/bin/otrs.ImportExport.pl -h
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Re: Auto Importing Config Items from SCCM server

Post by Gunjan »

Hi,

Thanks for info. I created a cron job. Can you please let me know how to check whether it is running or not? I am also getting a notice info in Logs:
[Notice][Kernel::Language::FormatTimeString] No FormatTimeString() translation found for '03/20/2015 00:00:00' string!
not sure if this causing the issue.

Thanks you in Advance!

Regards,
Gunjan
Locked