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?
OTRS 6. How to automatically export CMDB?
Moderator: crythias
-
- Administrator
- Posts: 4002
- 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?
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
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 ?
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 ?
Re: OTRS 6. How to automatically export CMDB?
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.
Re: OTRS 6. How to automatically export CMDB?
Please, I can't do this without you
-
- Znuny expert
- Posts: 296
- Joined: 16 Apr 2016, 08:55
- Znuny Version: see in post
- Real Name: Hans
- Contact:
Re: OTRS 6. How to automatically export CMDB?
RTFM?
What Znuny version are you running?
What OS are you running?
Where did you install Znuny (folder)?
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 users
Re: OTRS 6. How to automatically export CMDB?
I have this Znuny packages:
I have it by inheritance, I don't know exactly where Znuny is installed
Sorry
OS - Ubuntu 16.04 LTSI 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.
Re: OTRS 6. How to automatically export CMDB?
Hi,
we also do not know where it is installed. You sould seek out for professional support.
Or ask the previous owner.
Flo
we also do not know where it is installed. You sould seek out for professional support.
Or ask the previous owner.
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11
-- 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.
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11
-- 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.