For the host-ranges, I was thinking of using an escape character like '\'.
Another solution would be to specify a common host prefix (--host-prefix)
which could then contain something like 'client-'. Or you could use some
form of quoting ("client-01"-"client-99"). Or you could require spaces
around the '-' and use the current syntax only as a fallback if no ' - ' is
found (e.g. client-01 - client-99).

I already changed the HostRange-script on my PC to use '\' as an escape
character (simply because it was the easiest to implement). So I can now use
'client\\-01-client\\-99' on the command line (double escape needed, because
of the shell). I can send you the patch, if you want (probably better in the
-devel list).

Thanks,
Thomas Krause

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Andrea
Righi
Gesendet: Freitag, 10. August 2007 09:47
An: [email protected]
Betreff: Re: [sisuite-users] Calling si_addclients without '--ip-range'

Thomas Krause wrote:
> Hey,
> 
> Is there a reason why can't you call si_addclients non-interactive without
> specifying the '--ip-range'-Parameter? The help for this parameter says
that
> it is not necessary as long as you have a correctly configured DNS server
> running, which I do. So I believe this is simply a bug...
> 
> Applying the patch below to remove the ip-range requirement worked fine on
> my system, with no error messages, etc. 
> 
> --- /usr/sbin/si_addclients.org 2007-08-09 21:48:37.000000000 +0200
> +++ /usr/sbin/si_addclients     2007-08-09 21:49:19.000000000 +0200
> @@ -145,7 +145,7 @@
>  $domain_name = lc $domain_name;
> 
>  my $all_parameters_set = 0;
> -if (defined($hosts) and defined($ip_range) and defined($script)) {
> +if (defined($hosts) and defined($script)) {
>      $all_parameters_set = 1;
>  }

Applied. Thanks!

> 
> 
> If this is indeed a bug, feel free to forward this to the appropriate list
> or person.
> 
> I'm using version 3.9.2 btw.
> 
> Also, is there a way to use host ranges with si_addclients if your
> hostname-prefix has an '-' in it (e.g. client-01 to client-99)?

The character '-' is used as the meta-character delimiter to specify ranges,
so
you can't use it in your hostnames. Anyway I don't see a clean solution for
this... maybe adding a --delimiter option?

-Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to