Operating System - HP-UX
1823392 Members
2329 Online
109654 Solutions
New Discussion юеВ

SAM - found problem , need a fix for it

 
mike worrell
Regular Advisor

SAM - found problem , need a fix for it

after 11.0 install, when I am at single user
state sam is slow...takes 25 minutes to get
to choices and another 20 after you make it.
also swlist bombs saying can't find hostname.

As a test I moved my resolv.conf and nsswitch
file out of the way and put my hostname and IP
address in the /etc/hosts file.
(In our etc/hosts we only have loopback addr
and dns servers address.)
SAM worked like a charm and so did swlist.
Moved the files back and everything messes
up again.
Popped my 10.2OS disk back in and when that
is in su state sam and swlist work fine...
What am I missing somewhere????
Mike
7 REPLIES 7
John Poff
Honored Contributor

Re: SAM - found problem , need a fix for it

Hello,

In single user mode you don't have any networking daemons running so your DNS won't work. Without your hostname being in the local /etc/hosts file, SAM can't resolve the hostname when DNS is down. Unless there is a real good reason for it, I'd at least put your hostname/IP address entry in the /etc/hosts file.

JP
Eileen Millen
Trusted Contributor

Re: SAM - found problem , need a fix for it

I think there is another file where the hostname is stored. You could try
set_parms hostname
to set it
set_parms
will show a list of things that can be set, like IP address and network info.
My gateway IP was the same as the system for
some unknown reason after I did an install.
A. Clay Stephenson
Acclaimed Contributor

Re: SAM - found problem , need a fix for it

Hi Mike,

John is correct. At a very minimum I always put the loopback address and the host name in /etc/hosts for just this reason.

Clay
If it ain't broke, I can fix that.
Ulf Lipski
Advisor

Re: SAM - found problem , need a fix for it

Hi,

I suggest do not use SAM or swlist/swinstall in single user mode because you need to mount all filesystems and start all necessary daemons to get them going. So it's easyier to be in multi user mode. So you get in single user mode in trouble with all networking topics.

Optimization is the root of all evil.
Shahul
Esteemed Contributor

Re: SAM - found problem , need a fix for it


Hi

If U want to run SAM in single usermode, first set IP and hostname details thru set_parms. Otherwise come to runlevel 3 and run SAM.


shahul
Juha Eklund
Occasional Advisor

Re: SAM - found problem , need a fix for it

Hi,
have You tried to do "hostname localhost" in
single user mode before trying to use SAM ?! I also noticed that if You make any changes to /etc/hosts and try to use swlist/swinstall -toos after that You should stop/start the swagentd-daemon ?!?!

-- Juha --

PS: there are also in swinstall-options a possibility to take the "mount all filesystem" oftion off .. Makes life much easier if the situation where You run the swinstall is not the standard one ... I also agree thet usually running sw-tools is much easier in multiuser mode because the tools are "designed" so that they assumes that lan is up and running ...
-- hopefully lost in kernel-space --
KapilRaj
Honored Contributor

Re: SAM - found problem , need a fix for it

hi,

Running sam in single user mode ???.. Naaa !! not possible !! As shahul said , once you set host name & ipaddress also ,it will not . As sam will look for the official host name of your machine , which is not present as no networking services are started.

I have a solution for you.

at single user mode do the following

#/sbin/init.d/net start

Basicaly i am starting the network services from the script.

So let's give a try

okay

best of luck

kaps (not for caps off)
Nothing is impossible