SRDB ID   Synopsis   Date
40360   SUNRAY: Finding Xsun process for particular appliance   24 Oct 2001

Status Issued

Description

Customer has a green newt on a SunRay appliance. In order to kill the Xsun process for that SunRay appliance, you need to determine which Xsun process is from that appliance. The last user on that appliance is unknown.

SOLUTION SUMMARY:

Use the SunRay appliance MAC address to find the Xsun process.

On the SunRay appliance with the green newt on the screen, hit the 3 audio buttons in upper right hand corner of keyboard. This will give the 6 digit MAC address for that appliance (i.e. b58ffc). Write down the number.

To find the display number for the session that was running on this appliance, do the following:

cd /tmp/SUNWut/config/displays

This has all the SunRay displays by number . For example:

	sr1-unwk14-01:/tmp/SUNWut/config/displays 7 % ls -l
	total 1712
	drwxr-xr-x 2 root root 6321 Sep 28 09:53 ./
	drwxr-xr-x 9 root root 561 Sep 9 00:00 ../
	-rw-r----- 2 root root 151 Sep 27 17:49 10
	-rw-r----- 2 root root 152 Sep 26 15:00 103
	-rw-r----- 2 root root 152 Sep 26 12:26 108
	-rw-r----- 2 root root 151 Sep 26 12:12 11
	-rw-r----- 2 root root 152 Sep 20 18:23 110
	-rw-r----- 2 root root 173 Sep 26 12:24 113
	-rw-r----- 2 root root 152 Sep 26 12:25 119
	-rw-r----- 2 root root 149 Sep 23 03:26 12
	-rw-r----- 2 root root 152 Sep 28 08:10 124
	-rw-r----- 2 root root 152 Sep 28 09:49 125            

As root, grep the SunRay appliance mac address from all files in this directory. For example:

grep b58ffc*

This will return the display file number for the SunRay appliance with this mac address. For example, it might find the mac address in file "110" - which is the display number of the session for that SunRay appliance.

Now find the Xsun process for this display number

sr1-unwk14-01:/tmp/SUNWut/config/displays 8 % ps -ef|grep Xsun|grep ":110"

bhari 7855 610 0 Sep 09 ? 106:43 /usr/openwin/bin/Xsun :110 -nobanner -auth /var/dt/A:110-NIaqmb

7855 is the Xsun process id.

INTERNAL SUMMARY:

terry.kintz@sun.com

SUBMITTER: Terry Kintz APPLIES TO: AFO Vertical Team Docs/Network1 ATTACHMENTS:


Copyright (c) 1997-2003 Sun Microsystems, Inc.