Operating System - HP-UX
1824024 Members
3643 Online
109667 Solutions
New Discussion юеВ

[ need help on swacl realm changes ]

 
madhavabk
Regular Advisor

[ need help on swacl realm changes ]

Hi All,

WE have changed the hostname of a machine.
But still when i run swacl -l product \* command the default_realm and Realm are having old hostname itself what i have to do to change this?

thanks,
Madhava
12 REPLIES 12
Muthukumar_5
Honored Contributor

Re: [ need help on swacl realm changes ]

How did you change the hostname. Simply as,

# hostname

If you did change hostname then reboot is needed to get effect all related operations. Try as,

# /sbin/init_parms hostname

it will ask for new password. Or else change /etc/rc.config.d/netconf file for HOSTNAME variable.

It will make permanent changes.

--
Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: [ need help on swacl realm changes ]

How did you change the hostname. Simply as,

# hostname

It is temporary change.

If you did change hostname then reboot is needed to get effect all related operations. Try as,

# /sbin/init_parms hostname

it will ask for new password. Or else change /etc/rc.config.d/netconf file for HOSTNAME variable.

It will make permanent changes.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: [ need help on swacl realm changes ]

Hello,

Have you restarted swagentd ?

# /sbin/init.d/swagentd stop

# /sbin/init.d/swagentd start

should be helpful.

_Arun
"A ship in the harbor is safe, but that is not what ships are built for"
madhavabk
Regular Advisor

Re: [ need help on swacl realm changes ]

Hi all,

The file /etc/rc.config.d/netconf
file contains right name(i mean updated name of the machine) for HOSTNAME keyword.

And i have restarted swagentd also.

There is no file /sbin/init_parms

But still i am getting realm as wrong name.

Thanks,
MAdhava
Arunvijai_4
Honored Contributor

Re: [ need help on swacl realm changes ]

Try to restart swagentd. Have you done that ??

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
madhavabk
Regular Advisor

Re: [ need help on swacl realm changes ]

Yes i have resrted swaganet many times.
Arunvijai_4
Honored Contributor

Re: [ need help on swacl realm changes ]

Hi Madhava,

Exactly same problem

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=534916

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
madhavabk
Regular Advisor

Re: [ need help on swacl realm changes ]

Hi Arun,

Yes i could see all files listed in the mail thread you have given all files are in updated state.

But why still i am getting realm which is wrong.

Thanks,
Madhava
Arunvijai_4
Honored Contributor

Re: [ need help on swacl realm changes ]

Hi Madhava,

Did you check the contents of the files listed in that thread ? Can you paste here ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
madhavabk
Regular Advisor

Re: [ need help on swacl realm changes ]

swacl -l product \*
#
WARNING: An attempt to get the network host entry for
"product.hp.com" failed. This may result in denial
of access to users and agents at this host. Check the
spelling of this name, then your "/etc/hosts" file, or your
"/etc/resolv.conf" file and DNS resolver configuration. The
nslookup program may be helpful in isolating this problem.
# Object Ownership: User= root
# Group=sys
# Realm=product.xyz.com
#
# default_realm=product
object_owner:crwit
user:root:crwit
#
# For product: Jre14,r=4.0,a=HP-UX_B.11.11_32/64,v=SUN


cat /etc/resolve.conf
domain India.XYZ.COM
nameserver 129.158.227.31

cat /etc/hosts
# the format description.
#
129.158.227.31 divya.India.XYZ.COM divya
129.158.228.173 flower.India.XYZ.COM florin
127.0.0.1 localhost

The swacl displays product.xyz.com
not flower.India.XYZ.COM

Hence what could be the problem.

Thanks,
Madhava
Arunvijai_4
Honored Contributor

Re: [ need help on swacl realm changes ]

Hi Madhava,

May be problem with DNS servers where name is not updates yet. Can you change the order in /etc/resolv.conf and check ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: [ need help on swacl realm changes ]

See this:

WARNING: An attempt to get the network host entry for
"product.hp.com" failed. This may result in denial
of access to users and agents at this host. Check the
spelling of this name, then your "/etc/hosts" file, or your
"/etc/resolv.conf" file and DNS resolver configuration. The
nslookup program may be helpful in isolating this problem.

I hope the entry of network host has to be set in /etc/resolv.conf with search entry.

what is there in /etc/nsswitch.conf file hosts: entry. It is purely resolvation problem. Try to check the information with nslookup.

If you don't mind can you post /etc/resolv.conf origial contents and swacl execution without xxx. It is confusing :(

--
Muthu
Easy to suggest when don't know about the problem!