Hi,
i found a script to import xml-templates.
Is there also a cli-script to export (all) templates?
Thanks
Ebini
export (xml)-templates via cli
Moderators: Developers, Moderators
i've written a quick&dirty script.
Perhaps you want to add this to cacti and check/improove it.
Especially i'm unsure if i have chosen the correct tables (sqls) for the template-ids.
move it into the cli cacti directory.
The targetdirectory is needed to dump all xmls.
Ebini
Perhaps you want to add this to cacti and check/improove it.
Especially i'm unsure if i have chosen the correct tables (sqls) for the template-ids.
move it into the cli cacti directory.
The targetdirectory is needed to dump all xmls.
Ebini
- Attachments
-
- draft_export_template.zip
- Draft for a cli-script to export all templates to a directory
- (1.36 KiB) Downloaded 133 times
Re:
Thank you for your script, Ebini.ebini wrote:i've written a quick&dirty script.
Perhaps you want to add this to cacti and check/improove it.
Ebini
I modified it a bit. Now it exports only one template with specified type/id.
This script should be placed into cacti cli directory
- Attachments
-
- export_template.php.zip
- (1.4 KiB) Downloaded 65 times
Who is online
Users browsing this forum: No registered users and 6 guests