Operating System - HP-UX
1832595 Members
2889 Online
110043 Solutions
New Discussion

hostname that begin with numerals

 
Sanjay Yugal Kishore Ha
Frequent Advisor

hostname that begin with numerals

Hello SysAdmins,

I plan to assign hostnames starting with numerals for my HP-UX machines viz. 11i-devel, 11o-test and so on.

Is this a correct thing to do? I couldn't find any documentation that says that the hostname must not begin with numerals.

Thanks,
Sanjay
Dying is the last thing that I will do.
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: hostname that begin with numerals

Sure, that's fine. In fact if you run "/sbin/set_parms hostname", it tells you that the name must "start with a letter or a number."


Pete

Pete
Charles McCary
Valued Contributor

Re: hostname that begin with numerals

Sanjay,

Technically it's fine. My only concern would be that if these boxes have the OS upgraded in the future you're names our now out of whack. As long as you're fine with that, I certainly am.

thanks,
c
S.Rider
Regular Advisor

Re: hostname that begin with numerals

I'm not sure I like the -'s in a filename though. I've never seen that.
Ride Boldly Ride, but watch out for El Dorado's
Pete Randall
Outstanding Contributor

Re: hostname that begin with numerals

OK - to continue with "/sbin/set_parms
hostname", then:

it must:

* Start with a letter or number.

* Contain no more than 63 characters.

* Contain only letters, numbers, underscore (_), or dash (-). The underscore (_) is not recommended.


Pete

Pete
Sanjay Yugal Kishore Ha
Frequent Advisor

Re: hostname that begin with numerals

Thanks for the inputs. They are big help now that I have seen the set_parms output as well.

Thanks,
Sanjay
Dying is the last thing that I will do.