Operating System - HP-UX
1748028 Members
4774 Online
108757 Solutions
New Discussion юеВ

Re: Error while running SMH

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

Error while running SMH

Hello Techies,

I am getting below mentioned error while running /usr/sbin/smh on HP-UX11.31 as it is not launching the command line interface for SMH.

# /usr/sbin/smh
Looking for a usable running browser...
/usr/contrib/bin/X11/xlsclients: unable to open display "WITSUSL3AH097.wks.jnj.com"
ERROR: Unable to open display "WITSUSL3AH097.wks.jnj.com"
Please paste the URL "http://omjap02p:2301/?chppath=Tools" into a browser window.

It is working fine when I paste the link into browser and use SMH but not at command line interface.

Thanks & regards,
Kavita
4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: Error while running SMH

It sounds like your DISPLAY variable is not properly set. The $DISPLAY is normally in the format "hostname:0.0". Try setting a valid $DISPLAY and then run smh again.


Pete

Pete
Suraj K Sankari
Honored Contributor

Re: Error while running SMH

Hi Kavita,

Are you using any third party utility for SMH ?
Right now which tool are you using ?

Suraj
Kavita Poonia
Regular Advisor

Re: Error while running SMH

Hello Pete,

I checked for my DISPLAY variable's value and it was set to DISPLAY=WITSUSL3AH097.wks.jnj.com where WITSUSL3AH097.wks.jnj.com is my local desktop machine's name. Then as suggested I exported DISPLAY=10.150.163.231:0.0 where 10.150.163.231 is my local desktop's IP address and ran SMH but got below error.

# export DISPLAY=10.150.163.231:0.0
# /usr/sbin/smh
Looking for a usable running browser...
No usable running browsers found.
Looking for a usable browser to start...
Attempting to start /opt/firefox/firefox...

Starting Firefox ...

No usable browsers found.
SECURITY WARNING: starting a browser in the current environment
may open you to security risks. This is the case when the
X Server and the browser are running on different systems, unless
the X traffic is being tunneled through SSH. Since samweb
cannot guarantee that a secure browser is available, you may:
. Paste the URL http://omjap02p:2301/?chppath=Tools into a browser.
. Close any non-local instances of your browser on WITSUSL3AH097.wks.jnj.com
and rerun samweb.
. Use SSH tunneling.
. Use samweb with the "-F" (force) option.

There are one or more instances of your browser running on
WITSUSL3AH097.wks.jnj.com that are not local, or a browser cannot
be started in a secure mode because the X Server is not on
the same machine as the display variable.


Thanks & regards,
Kavita
Mw_6
Occasional Advisor

Re: Error while running SMH

Kavita,

Can you launch /opt/firefox/firefox from the HPUX command line?

My guess is if DISPLAY is set correctly then it is your Xwindows app security blocking the launch (assuming your on a pc). Or if a UX workstation it's security settings (hosts.allow/deny etc) are preventing the launch.

Hope that helps.

Mike W.