Operating System - HP-UX
1830936 Members
2076 Online
110017 Solutions
New Discussion

How to swinstall if LAN card not configured ?

 
Arne Hillestad
Occasional Contributor

How to swinstall if LAN card not configured ?

Configuration info:
HP-ux 10.2
HW HP 9000 800 G30

swagentd will not start. I have done the modification described in document id A4746002 concerning /etc/hosts and /etc/rc.config.d but alas swagentd do not start. No error message are found in the /var/adm/sw/swagentd.log

The purpose of running swinstall is to install the driver for LAN card 100VG-AnyLan 5022
6 REPLIES 6
Tom Geudens
Honored Contributor

Re: How to swinstall if LAN card not configured ?

Ah, the chicken and egg problem :-)
There's a thread about this with several options, http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa9701cc6003bd6118fff0090279cd0f9,00.html

Check it out ...

Hope this helps,
Tom
A life ? Cool ! Where can I download one of those from ?
Clemens van Everdingen
Honored Contributor

Re: How to swinstall if LAN card not configured ?

Hi,

Did you try the follwoing ?

1. Edit /etc/hosts

In this case: a. Add 127.0.0.1 hostname,
b. Comment out 127.0.0.1 loopback localhost,
c. Comment out 192.01.01.01 hostname.

2. Edit /etc/rc.config.d/netconf

In this case: a. Comment out all references to INTERFACE_NAME[0],
IP, MASK and all associated ROUTE[0] statements.

3. Stop swagentd

4. Restart swagentd

5. Run swinstall

Regards,
C.

The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Steven Sim Kok Leong
Honored Contributor

Re: How to swinstall if LAN card not configured ?

Hi,

There is at least a 10BT built-in NIC in most of the HP systems I know of.

Can you configure this LAN to be bind to your host name and IP address in /etc/hosts instead? Example (if lan0 is the default 10BT NIC):

# ifconfig lan0 1.2.3.4 netmask 255.255.255.0
# ifconfig lan0 up

# vi /etc/hosts
1.2.3.4 my_host_name

If /etc/resolv.conf exists, you must either remove it or set the following in /etc/nsswitch.conf so that your /etc/hosts file is read:

# vi /etc/nsswitch.conf
hosts: files [NOTFOUND=continue] dns

Hope this helps. Regards.

Steven Sim Kok Leong
David Burgess
Esteemed Contributor

Re: How to swinstall if LAN card not configured ?

Sounds like you need to configure the internal NIC.

I've had problems when the server has more than one hostname, ie one assigned to each NIC.

To fix the problem I went into the options and selected All targets to resolve the source locally.

HTH

Dave.
S.K. Chan
Honored Contributor

Re: How to swinstall if LAN card not configured ?

I remembered a year back I couldn't run swinstall in single user mode. Not sure about now. But if all doesn't work, there is a workaround for this ..
a) change the ip addr (/etc/hosts) to 127.0.0.1
b) if /etc/resolv.conf exist, rename it.
c) reboot
d) touch /var/adm/sw/standalone
e) restart the swagentd
# swagentd -r

Now try the swinstall ..
Printaporn_1
Esteemed Contributor

Re: How to swinstall if LAN card not configured ?

Hi,

Try this
edit /etc/hosts

make hostname to entry 127.0.0.1

127.0.0.1 localhost loopback

whereas hostname is hostname that return from
#uname -n
enjoy any little thing in my life