Import Config Files| Doesn't Remove Services
Posted: Thu Jul 18, 2024 2:13 pm
Hi,
I am having an issie making changes to config via the Import Config File.
I initially wrote a script to generate host/service config files and import them using the XI API, this works great for creating the host and services however if i then update the config file, say for example removing a service from the cfg file and put it in the import folder.
Upon import, i can see the import took place via Config Snapshots however it doesn't show any differences and the service i removed remains active, if i then check the file in etc/services/<sever_name>.cfg and can see the service i expected to be removed is still there.
I thought maybe my script wasn't doing something correctly so to test it i manually created the updated cfg file in the import folder and ran the import through the XI UI Import screen, again this process appeared to work without error but the service continued to remain.
Is it possible to remove a service through importing a config file or is that only for creating?
Regards,
Jamie
I am having an issie making changes to config via the Import Config File.
I initially wrote a script to generate host/service config files and import them using the XI API, this works great for creating the host and services however if i then update the config file, say for example removing a service from the cfg file and put it in the import folder.
Upon import, i can see the import took place via Config Snapshots however it doesn't show any differences and the service i removed remains active, if i then check the file in etc/services/<sever_name>.cfg and can see the service i expected to be removed is still there.
I thought maybe my script wasn't doing something correctly so to test it i manually created the updated cfg file in the import folder and ran the import through the XI UI Import screen, again this process appeared to work without error but the service continued to remain.
Is it possible to remove a service through importing a config file or is that only for creating?
Regards,
Jamie