Re: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/03/2010 22:06:30, Peter Steele wrote: Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname

Re: Generating a random hostname

2010-03-18 Thread Olivier Nicole
Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname I have somewhere a Perl script that can be used/adapted to generate pseudo English words. You

Re: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/03/2010 08:32:31, Matthew Seaman wrote: On 17/03/2010 22:06:30, Peter Steele wrote: Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template

RE: Generating a random hostname

2010-03-18 Thread Peter Steele
Thinking about this some more, a good trick would be to generate a hostname from the MAC address of the host, since that is guaranteed to be unique. In fact, this is what we are currently using. Unfortunately I guess I wasn't entirely clear. I was looking for a facility that actually *assigns*

Re: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/03/2010 11:57:56, Peter Steele wrote: Thinking about this some more, a good trick would be to generate a hostname from the MAC address of the host, since that is guaranteed to be unique. In fact, this is what we are currently using.

RE: Generating a random hostname

2010-03-18 Thread Peter Steele
I've ended up writing a service that runs after netif is complete and sets the hostname based on the MAC address and also updates /etc/hosts. It does what I need... Thanks for all the replies on this... ___ freebsd-questions@freebsd.org mailing list

Generating a random hostname

2010-03-17 Thread Peter Steele
Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. ___ freebsd-questions

Re: Generating a random hostname

2010-03-17 Thread Erik Norgaard
On 17/03/10 23:06, Peter Steele wrote: Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. uuidgen? this command may be used

Re: Generating a random hostname

2010-03-17 Thread Erik Norgaard
On 17/03/10 23:06, Peter Steele wrote: Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. uuidgen may do the job for you

Re: Generating a random hostname

2010-03-17 Thread Roland Smith
On Wed, Mar 17, 2010 at 05:06:30PM -0500, Peter Steele wrote: Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. For random

Re: Generating a random hostname

2010-03-17 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Steele wrote: Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. Hi

Re: Generating a random hostname

2010-03-17 Thread Peter van der Linden
On Mar 17, 2010, at 3:50 PM, Roland Smith wrote: openssl rand -base64 18| sed 's|[^[:alpha:]]||g' That works very well. My first run included an impressive anglo-saxon observation. To diminish agitating the night shift, I suppose you could filter out all the vowels. Peter, emailing from