OTRS 6. How to automatically export CMDB?

Moderator: crythias

Locked
neillq
Znuny newbie
Posts: 9
Joined: 25 Nov 2020, 19:39
Znuny Version: OTRS6
Real Name: Tsimofey

OTRS 6. How to automatically export CMDB?

Post by neillq »

Hello! I need to automatically export a CMDB on a schedule.
I know how to do it manually using the Import/Export tool.
But I need to do it automatically on schedule, maybe with a script.
Any ideas how can I do this?
root
Administrator
Posts: 4250
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS 6. How to automatically export CMDB?

Post by root »

Hi,

Use bin/otrs.Console.pl Admin::ITSM::ImportExport::Export with the parameters you need, add file containig your schedule to var/cron and execute bin/Cron.sh start

The crontab for Znuny should never be edited manually, every line/entry is represented by a single file in var/cron. The order of the filename is the order of the entries in the crontab. Loading the crontab is done by bin/Cron.sh start and unloading with bin/Cron.sh stop
If you have never used this command check your current crontab and make sure everything exists in a file in var/cron/

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
neillq
Znuny newbie
Posts: 9
Joined: 25 Nov 2020, 19:39
Znuny Version: OTRS6
Real Name: Tsimofey

Re: OTRS 6. How to automatically export CMDB?

Post by neillq »

Thank you! I found the bin/otrs.Console.pl file, but I don't understand what exactly I need to do. Could you explain in more detail my actions? Sorry I'm low on this.
neillq
Znuny newbie
Posts: 9
Joined: 25 Nov 2020, 19:39
Znuny Version: OTRS6
Real Name: Tsimofey

Re: OTRS 6. How to automatically export CMDB?

Post by neillq »

Please, I can't do this without you :(
hkais
Znuny wizard
Posts: 365
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: OTRS 6. How to automatically export CMDB?

Post by hkais »

RTFM? :shock:

What Znuny version are you running?
What OS are you running?
Where did you install Znuny (folder)?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
neillq
Znuny newbie
Posts: 9
Joined: 25 Nov 2020, 19:39
Znuny Version: OTRS6
Real Name: Tsimofey

Re: OTRS 6. How to automatically export CMDB?

Post by neillq »

I have this Znuny packages:
1.PNG
OS - Ubuntu 16.04 LTS


I have it by inheritance, I don't know exactly where Znuny is installed
Sorry :(
You do not have the required permissions to view the files attached to this post.
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: OTRS 6. How to automatically export CMDB?

Post by wurzel »

Hi,

we also do not know where it is installed. You sould seek out for professional support.
Or ask the previous owner.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Locked