dcm.pl host_add
emccormick
20-05-2009 12:51:15
Right now I am trying things out on a test VirtualBox, but to go live I would need to be able to add several hosts. I am trying the dcm.pl host_add, and having no luck.
I know dcm.pl is working because I used commands like this one to add several reverse zones:
But when I try this command, I get the help info:
I have even added -v -v -v to see if I could get something out of verbose responses, but it does not show me why it fails. I have tied it with and without the domain name, assorted things in and out of quotes, with and without the optional notes and location, long version of the type, and type ID as it shows with a mouse rollover through the user interface. Nothing made a difference.
Because it does not actually say what part it does not like, I am not sure where to check next. Hints, anyone?
--Eric
I know dcm.pl is working because I used commands like this one to add several reverse zones:
./dcm.pl -l admin -p admin -r domain_add name=84.10.10.in-addr.arpa
But when I try this command, I get the help info:
debian:/opt/ona/bin# ./dcm.pl -l admin -p admin -r host_add name=10.10.84.194.example.com ip=10.10.84.194 type=12
I have even added -v -v -v to see if I could get something out of verbose responses, but it does not show me why it fails. I have tied it with and without the domain name, assorted things in and out of quotes, with and without the optional notes and location, long version of the type, and type ID as it shows with a mouse rollover through the user interface. Nothing made a difference.
Because it does not actually say what part it does not like, I am not sure where to check next. Hints, anyone?
--Eric
Matt
20-05-2009 13:18:39
I believe this is a bug in some new logic I added for the GUI side of things. I didnt do great testing on the CLI side of this and it bit me.
I'll see what I can find on this bug. I'm pretty sure I have an idea of what I changed that broke it.
The -vvv stuff of dcm.pl is good to see how dcm.pl is working under the covers but it might be better to bump up the debug level in the system configuration settings and then watch the /var/log/ona.log file.
I'm off to do just that................
I'll see what I can find on this bug. I'm pretty sure I have an idea of what I changed that broke it.
The -vvv stuff of dcm.pl is good to see how dcm.pl is working under the covers but it might be better to bump up the debug level in the system configuration settings and then watch the /var/log/ona.log file.
I'm off to do just that................
Matt
20-05-2009 13:36:01
I did however just notice in your example that you used "name=10.10.84.194.example.com".. it should be host=
The bug I thought it might be was related to something someone else pointed out to me, but that I can not re-create.
Try it with host= instead of name= and we'll see if it goes.. if not.. more bug hunting.
The bug I thought it might be was related to something someone else pointed out to me, but that I can not re-create.
Try it with host= instead of name= and we'll see if it goes.. if not.. more bug hunting.
emccormick
20-05-2009 14:25:55
Ah ha! The simple solution. Yes, after doing domain_add and vlan_campus_add I had coppied and pasted the name= key, and changing to host= fixes that.
Too bad it does not give an error result for host missing, because that would have told me what to fix. A host without a domain does not do the default domain, and it did warn about that after I changed name= to host=. But a completely missing host= key is error free.
--Eric
Too bad it does not give an error result for host missing, because that would have told me what to fix. A host without a domain does not do the default domain, and it did warn about that after I changed name= to host=. But a completely missing host= key is error free.
--Eric
Matt
22-05-2009 17:51:34
FYI -- If you get the usage screen that implies you have not supplied all the required options (at least thats whats supposed to happen I may have missed this one).. I dont have the code get to the nitty gritty on telling you what specific option may be missing, it should just throw the usage messages.. I believe the exit status is non 0 on that as well.
tmyoungjr
26-05-2009 07:21:06
yeah i notice that re: the usage info showin on an error.
once i realized thats what it meant - i generally learned to look a little close for something missing
once i realized thats what it meant - i generally learned to look a little close for something missing