I cant delete hosts via csv import.
I added host in this csv format and it is ok but i added about 1200 hosts 10x times[i did "Add" not "Merge" like i should - my fail] so i have to delete them.
hostrecord,FALSE,192.168.1.1,Server EXAMPLE EXAMPLE - 1,srv_www
hostrecord,FALSE,192.168.1.1,Server EXAMPLE EXAMPLE - 2,srv_www
I would like delete this hosts and already tested all formats, doesnt work.
I trying doing it since last week.. i have no idea how i should do it.
I also tried by WAPI Python but there is also problem - some like "No find hosts".
Thanks a lot guys.
2 weeks ago - last edited 2 weeks ago
How are you trying to delete them now, and what error are you getting? Are you sure those records are still in the grid?
There are two CSV methods to delete records. One is to run a "delete" CSV job, and the other is to run a "custom" CSV job in which you specify the record and an action of "D" for delete.
With both methods you need to include enough information to describe the specific record. If it's not in the default DNS or network views, you also need to specify the view.
Thanks a lot MRichard for your reply.
For example, i give
header-hostrecord,configure_for_dns,addresses,fqdn [run "Delete"]
i get error
Deletion failed due to The selected object could not be found
Network-view - default
view - default
In fqdn i type name of ip/srv, for example "srv_www" without domain etc.
In some schema i get error like: could not find zone/parents but also trying type "view" and network-view setting to default in csv import but nothing.
In all example which i read there is written fqdn -> example.example2.com.
error: Deletion failed due to The action is not allowed. A parent was not found
Trying also via api
ip = ibx.delete_host_record('srv_www')
except Exception as e:
Error: No requested host found: srv_www
I have a little success:
This one work
but error is "Found more than one host for xxxx" what is true..
2 weeks ago
When deleting a host you need to give it the fully qualified hostname, including the domain.
Also if you have multiple dns views, you need to specify the view. In general, you shoulds always specify the view even if it's "default" as a good habit.