Operating System - HP-UX
1753776 Members
7368 Online
108799 Solutions
New Discussion юеВ

Hostname and other netconf parms corrupt

 
SOLVED
Go to solution
Jeff Schussele
Honored Contributor

Re: Hostname and other netconf parms corrupt

Hi Scott,

I've seen this before.
It's not the netconf that's causing this.
It's either another conf file or a startup script.
So do this

grep -l HOSTNAME /sbin/init.d
and
gerp -l HOSTNAME /etc/rc.config.d

Then check all the returned filename.
You'll find your culprit.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: Hostname and other netconf parms corrupt

Of course that should have been....

grep -l HOSTNAME /sbin/init.d/*
and
gerp -l HOSTNAME /etc/rc.config.d/*

Cheers,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James R. Ferguson
Acclaimed Contributor

Re: Hostname and other netconf parms corrupt

Hi Jeff:

"gerp" = dyslexic "grep" ? :-))

Regards!

...JRF...
Jeff Schussele
Honored Contributor

Re: Hostname and other netconf parms corrupt

Hi JRF,

LOL!!!!
Well at least I was consistent.
Actually, I was lazy.
I copy/pasted from my first post.
Funny thing is that's probably the most frequent typo I make.....

Cheers my friend,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sameer_Nirmal
Honored Contributor

Re: Hostname and other netconf parms corrupt

Hi,

As per the "uname" output you said, it seems that the hostname is "unknown" besides "-t" for OS name.
Set using
#setuname -s HP-UX -n

Ensure you have OPERATING_SYSTEM=HP-UX in
"netconf" file.

Start the net service using
# /sbin/init.d/net start
If you face problem starting net service, yo may have to reboot the system.

Be aware that only script /sbin/init.d/hostname assigns system names. Ensure you don't have any other script which alters these names.