PDA

View Full Version : SoB Taskbar Icon



PY 222
08-23-2006, 10:22 PM
Ok, this is what I've done. This is on a Win2k3 Server OS.

sobsvc -i
sobsvc -p:2
sobsvc -o
sobsvc -k

I made sure that -k flag was true. Both services started ok as shown in the Task Manager.

This is what I see on my sobsvc.log file:

[2006/08/23 18:13:11.468]: Parms retrieved: NumClients = 2, AffType = 0, WUQueue = 0, PeriodicRestart = 0, AutodialType = 0
[2006/08/23 18:13:11.468]: TrueIdle = FALSE, MonitorRestart = FALSE, StuckRestart = FALSE, KeepVisible = TRUE

I've also restarted the service and rebooted the machine.

I made sure that the SoB service was allowed to interact with the desktop.

Still I cannot get that Icon to show up.

Any ideas?

sTs950
08-23-2006, 10:31 PM
PY, i'v found that the icons wont show up in a remote desktop session yet if i log into the box at the console the icons show... i'm assuming it's a 'security' thing maybe? not sure....

Thanks,
Ryan

PCZ
08-23-2006, 10:49 PM
On XP the icons will show up in a remote desktop session.
On 2003 they will not normally.
They will if you run mstsc with the console switch to take over the console session.

For info
Allowing the service to interact with desktop can waste CPU POWER.
On my SMP boxes running XP allowing the service to interact with desktop causes explorer to take around 10% or more of the CPU time.
Doesn't seem to be a problem on UNI processor boxes.
This Bug doesn't seem to affect 2K3.

IronBits
08-23-2006, 11:30 PM
You should use these bolded values else when it aborts for unknown reasons, they will not restart automatically.

TrueIdle = FALSE, MonitorRestart = TRUE, StuckRestart = TRUE, KeepVisible = TRUE

Try using this script - sobint.bat
@echo off

:: (make sure the Service is not running)
net stop "Seventeen or Bust Service"

:: (uninstall the service handler)
sobsvc -u

:: (install the service handler)
sobsvc -i

:: (setup the service the way you want it)

:: sobsvc -p:4:0 :: (BEST - agressive: 4 clients)
sobsvc -p:2:0 :: (agressive: 2 clients)

sobsvc -m :: (TOGGLE - monitors for the client being closed and restarts it)

sobsvc -k :: (TOGGLE - keeps the icons in the tray, so that you can check them)

sobsvc -s :: (TOGGLE - monitors for a stuck client and restarts it if necessary)

sobsvc -d :: (Displays the current parameters, use the TOGGLEs above to set them the way you want.)
echo.
pause

:: (start up the Service)
net start "Seventeen or Bust Service"

You can create a .reg file - edit to taste for BOLD values, or not. ;)
----------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\LhDn]

[HKEY_LOCAL_MACHINE\SOFTWARE\LhDn\sob]

[HKEY_LOCAL_MACHINE\SOFTWARE\LhDn\sob\cache]
"n"=dword:
"k"=dword:
"cache"=dword:

[HKEY_LOCAL_MACHINE\SOFTWARE\LhDn\sob\cache2]
"n"=dword:
"k"=dword:
"cache"=dword:

[HKEY_LOCAL_MACHINE\SOFTWARE\LhDn\sob\config]
"dir"="C:\\dcprojects\\SB"
"max_rep_retries"=dword:00000000
"max_retries"=dword:00000000
"retry_wait"=dword:000004b0
"special_handling"=dword:00000000
"username"="IronBits"
"team"="60"
"serv_addr"="sb.pns.net"
"serv_port"=dword:000006b5
"logfile"="sb.log"
"max_log_size"=dword:0000000a
"priority"=dword:00000005
"transmit"=dword:00000001
"ClientKey"="Software\\LhDn\\sob\\cache2"

[HKEY_LOCAL_MACHINE\SOFTWARE\LhDn\sob\svcparms]
"NumClients"=dword:00000002
"AffType"=dword:00000000
"AutoRestart"=hex:00,00,00,00
"TrueIdle"=hex:00,00,00,00
"NormalizeXP"=hex:00,00,00,00
"MonitorRestart"=hex:01,00,00,00
"StuckRestart"=hex:01,00,00,00
"KeepVisible"=hex:01,00,00,00
"HourlyRestart"=hex:00,00,00,00
"WUQueue"=hex:00,00,00,00
"AutodialType"=hex:00,00,00,00

Hope it helps :)

IronBits
08-23-2006, 11:32 PM
On XP the icons will show up in a remote desktop session.
On 2003 they will not normally. They show up just fine using Real VNC ;)

Also, if you get SysInternals PSlist you can use this in a simple script I call status_sob.bat to keep an eye on your clients.

status_sob.bat
@echo off
cd \scripts
echo Name Pid Pri Thd Hnd Priv CPU Time Elapsed Time
FOR /F %%i IN (computers.txt) DO echo %%i & pslist \\%%i | findstr "sb"

computers.txt
computer1
computer2
computer3
computer4

:cheers:

PY 222
08-24-2006, 12:34 AM
Thanks guys for the info. It sure helps me out. :thumbs:

PCZ
08-24-2006, 10:08 AM
So IB you into SOB then :jester:

Nice info :thumbs:

IronBits
08-24-2006, 10:46 AM
Now we need someone to step up to the plate and give us something similar for *nix boxen.
Scripts to do a mass distribution via LAN :D
Auto startup to ;)

riptide
09-12-2006, 07:14 AM
On my SMP boxes running XP allowing the service to interact with desktop causes explorer to take around 10% or more of the CPU time.
Doesn't seem to be a problem on UNI processor boxes.
This Bug doesn't seem to affect 2K3.

GOTCHA! Had been doing my own little investigations into this! :thumbs: