Operating System - HP-UX
1753880 Members
7593 Online
108809 Solutions
New Discussion юеВ

Hostname and other netconf parms corrupt

 
SOLVED
Go to solution
Scott McDade
Frequent Advisor

Hostname and other netconf parms corrupt

Hello:

I am trying to get a 11.11 system onto a network and I am running into some strange behavior.
I have validated all the network setting are correct (ie. hostname, ip, gw, ..). I have tried using
sam, set_parms and even copying the netconf, hosts and resolv.conf files over from another machine.

The end result is I can't get CDE to load. Trying to see if hostname loaded from the netconf file
I tried the $hostname command and in comes back unknown. I then noticed that the OPERATING_SYSTEM parm
in the netconf file was set to -t. I am not sure how that got changes. So I changed it back to
HP-UX. I then reboot and it gets set back to -t again.

I am not sure what could be causing this but it is preventing me from getting the workstation onto the
network.

I have included the /etc/rc.log file as well.

One other thing I noticed when comparing the HOSTNAME accorss several of my 11.11 systems is some have the hostname parm
in "" and some don't. I am not sure if that makes any differnce.


# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

HOSTNAME="mtvhp08"
OPERATING_SYSTEM=-t
LOOPBACK_ADDRESS=127.0.0.1

Any help you can provide I would appreiate.

-Scott

Keep it Simple!~
14 REPLIES 14
Steven E. Protter
Exalted Contributor

Re: Hostname and other netconf parms corrupt

Shalom Scott,

1) Make sure the root fs is not near or at capacity. If this is teh case it can cause problems with the configuration files.

2) If the files are really corrupt, they probably should be restored from backup or set_parms scripts should be used to re-create them.

3) Note that hostnames can not exceed 8 characters unless you are running 11.23 with a special enhancement installed.

I don't think the quotes make any difference.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Scott McDade
Frequent Advisor

Re: Hostname and other netconf parms corrupt

SEP:

I have restored them from both backup via set_parms. The problem is once I restore them and reboot something is is overwritting the netconf file. I am not sure if it is kept in memory and overwritten up reboot.

I have even gone in single user mode and replaced the netconf, resolv.conf and hosts files via and then rebooted and the OPERATING_SYSTEM parm still gets changed back to -t.

Has anyone ever seen this happen?
Keep it Simple!~
Scott McDade
Frequent Advisor

Re: Hostname and other netconf parms corrupt

Hey all, I have included the rc.log file as well just in case there is something in there that I missed.

-Scott
Keep it Simple!~
RAC_1
Honored Contributor
Solution

Re: Hostname and other netconf parms corrupt

Check if you any multiple files for netconf, such as netconf.bak, netconf.orig etc. The /etc/rc.config.d/ directory shoyld have only the configuration files and nothing else.
There is no substitute to HARDWORK
Scott McDade
Frequent Advisor

Re: Hostname and other netconf parms corrupt

RAC:

Thanks, I will take a look, I know I have a home.netconf file in the /etc/rc.config.d/ path.

Keep it Simple!~
Scott McDade
Frequent Advisor

Re: Hostname and other netconf parms corrupt

Cleaned out /etc/rc.config.d of all reduntant files (ie. .. home.hosts or bkup.netconf).

Made sure that the netconf file setting for OPERATING_SYSTEM=HP-UX and rebooted.

Came up in single user mode and checked it. Everything looked fine,

Init level 1 the OPERATING_SYSTEM parmeter was overwritten to -t in the netconf file.

Can anyone explain this or has anyone seen this? PLEASE?????

Where could it be getting this parm from?
Keep it Simple!~
Sameer_Nirmal
Honored Contributor

Re: Hostname and other netconf parms corrupt

Hi,

Can you check if this command shows HP-UX ?
# uname -s

Also check # uname -a
Scott McDade
Frequent Advisor

Re: Hostname and other netconf parms corrupt

Thanks...for the reply.

When I do the uname -s gives me the -t. And the uname -a returns -t unknown then some lic info...

Atleast it is consistant.
Keep it Simple!~
James R. Ferguson
Acclaimed Contributor

Re: Hostname and other netconf parms corrupt

Scott:

One thing to try is to 'vi' the '/etc/rc.config.d/netconf' file. Make sure that 'vi' doesn't "complain" about the file format in any way.

You can also start with a virgin copy of the file and manually configure your hostname and network:

# cp -p /usr/newconfig/etc/rc.config.d/netconf /etc/rc.config.d/netconf

Having done this copy, either manually edit the file or try running '/sbin/set_parms' again.

Regards!

...JRF...