Operating System - HP-UX
1847340 Members
2538 Online
110264 Solutions
New Discussion

swremove not working with DISPLAY variable

 
SOLVED
Go to solution
GK_5
Regular Advisor

swremove not working with DISPLAY variable

Hi!

I have set DISPLAY variable on my server. The xhost command is run on remote server so this server can use DISPLAY variable. When I run swremove it complains like this
'The DISPLAY environment variable is set to "hostname:0.0", but the current configuration won't allow swremove to run on that display.'
wherer hostname is the remote hostname.
But if I run sam it works just fine. Where is swremove configuration that is not allowing swremove to run on that DISPLAY varible.

Thanks.
IT is great!
5 REPLIES 5
T G Manikandan
Honored Contributor

Re: swremove not working with DISPLAY variable

Just check that the resolution works fine.

#nslookup
#nslookup

check the entries in /etc/hosts.


Try doing a /usr/sbin/swagentd -r
after any change made in hosts file.


Revert
Stefan Farrelly
Honored Contributor
Solution

Re: swremove not working with DISPLAY variable

Try using an IP address instead of hostname.

Are you using ssh to connnect ? in which case the display variable format is different.

Are you using an X emulator, again this can cause a different format needed for DISPLAY ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
GK_5
Regular Advisor

Re: swremove not working with DISPLAY variable

Manikchandan,

The forward and reverse nslookup works fine.
The DISPLAY variable works with sam. It does not work with swremove.
IT is great!
GK_5
Regular Advisor

Re: swremove not working with DISPLAY variable

Thanks Stephen. It worked when I used IP address. It is strange. nslookup was resolving the same IP address. And it was working with hostname for sam.

Thanks a lot. I'm happy camper :-)
IT is great!
Patrick Wallek
Honored Contributor

Re: swremove not working with DISPLAY variable

I ran into this exact same issue not long ago. SAM, gpm, etc. worked great. nslookup resolved both ways, but swinstall / swremvoe did not work. The end problem was my /etc/nsswitch.conf file. When swinstall/swremove were NOT working the hosts entry looked like:

hosts: files dns

In order to get swinstall / swremove to work I had to change the hosts entry to be:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns

If you don't have an nsswitch.conf, create one and make sure the hosts entry looks like the above.