Operating System - HP-UX
1833838 Members
2362 Online
110063 Solutions
New Discussion

Re: Swinstall doesn't work on vmguest after hostname change

 
SOLVED
Go to solution
Geoff Wild
Honored Contributor

Swinstall doesn't work on vmguest after hostname change

Here's what I did:

Created a guest called pcvm0103

Loaded 11.31 ENT-OE

Stopped the guest.

Removed the disk from the guest.

Created a new guest pcvm0105 and gave the disk to it instead.

Started pcvm0105

Booted fine (as host pcvm0103)

Ran set_parms hostname

Reboot

Came up as pcvm0105.

Swinstall fails with:

Could not start a management session for "pcvm0105:". The system
administrator for host "pcvm0105" may have disabled the swagentd
daemon or there may be a networking problem affecting the operation.
If the swagentd daemon has been disabled, it can be enabled by the
system administrator on "pcvm0105" by setting the
"SW_ENABLE_SWAGENTD" entry in /etc/rc.config.d/swconfig to "1" and
executing "/usr/sbin/swagentd -r".

Agent is running - can stop/start it at will.

Tried a swacl -l root

Got back:

#
# swacl Installed Software Access Control List
#
# For host: pcvm0105:/
#
# Date: Mon Oct 22 10:25:38 2007
#

ERROR: An unexpected error occurred while performing the requested
operation on the "root" ACL at "pcvm0105:/". The system
administrator for host "pcvm0105" may have disabled the daemon
or there may be a networking problem affecting the operation
or an ACL file may have been improperly removed. If the
swagentd daemon has been disabled, it can be enabled by the
system administrator on host "pcvm0105" by setting the
"SW_ENABLE_SWAGENTD" entry in /etc/rc.config.d/swconfig to "1"
and executing "/usr/sbin/swagentd -r".

All config files are okay (that I know of).

root@pcvm0105 [ / ]
# uname -a
HP-UX pcvm0105 B.11.31 U ia64 0756383664 unlimited-user license

root@pcvm0105 [ / ]
# hostname
pcvm0105

# ps -ef |grep swagent
root 2389 1 0 09:05:07 ? 0:00 /usr/sbin/swagentd -r


Question is, what do I have to change in the software distributer to get swinstall working?

Thanks...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Swinstall doesn't work on vmguest after hostname change

Shalom,

I imagine restarting the guest system would resolve the problem. But thats to easy so I'm guessing you don't want to do that.

Contents of /etc/nsswitch.conf ?

New installs don't put one in place.

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
Geoff Wild
Honored Contributor

Re: Swinstall doesn't work on vmguest after hostname change

yes - guest has been restarted -(from the set_parms command)

All networking is configured correctly:

# cat /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files winbind
group: files winbind
hosts: dns [NOTFOUND=CONTINUE] files


# cat /etc/resolv.conf
domain mydomain.net
nameserver 192.168.162.157
nameserver 192.168.162.6


Everything is okay - swlist, show_patches, works fine.

I just can't make any changes - swinstall, swacl, swverify - all fail.

cd /var/adm/sw/security

# strings *
# default_realm=pcvm0105
any_other:r----
# default_realm=pcvm0105
num_entries=2
user:root:0
group:sys:0
# default_realm=pcvm0105
user_obj:rwict
any_other:r----
# default_realm=pcvm0105
user_obj:rwict
any_other:r----
default -sdu-
-sdu-
default


That looks fine as well.

Somehow, I need to reintialize the software distributor?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Tim Nelson
Honored Contributor
Solution

Re: Swinstall doesn't work on vmguest after hostname change

I typically run into things like this when swagentd cannot figure out the hostname.

Check you /etc/hosts and restart swagentd
Geoff Wild
Honored Contributor

Re: Swinstall doesn't work on vmguest after hostname change

I think I need to re-install SD:

http://docs.hp.com/en/5992-2146/apcs02.html?btnNext=next%A0%BB

But I can't find install-sd anywhere on the OE dvd's.

Even tried the latest:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SD

install-sd just does not exist - yet why is it in the doc?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: Swinstall doesn't work on vmguest after hostname change

I may be on to something - this server - I can go outbound wherever I choose - but inbound - nothing....nada....ping/telnet/traceoroute/ssh you name it - can't get to it...

Yet, it doesn't look like bastille is setup...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: Swinstall doesn't work on vmguest after hostname change

Tell me why, I don't like Monday's....

Anyways - guess what - even though I thought the hosts file was correct - it wasn't!

And neither was netconf!

Both had the ip's of the old server!

I did a set_parms on hostname - I should have done network as well!

The reason I though they were okay was - the ip's are only off by 1 digit - so at first glance it looked okay...

Sigh......
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
James R. Ferguson
Acclaimed Contributor

Re: Swinstall doesn't work on vmguest after hostname change

Hi Geoff:

Occam's razor.

Regards! :-))

...JRF...