Hi, i use the "smbstatus -b" command to check the users connected to my network (the clients are windows XP, and they connect to a samba PDC). but i notice thar often, even if a user logs-off from windows xp, using smbstatus i see that he is connected yet. this is very annoying because i cant obtain raliable informations from smbstatus! is there a way to set a sort of "lifetime" for samba processes? a wayo to check "this user is REALLY connected? yes? ok, no? kill the process!" here is a sample output: 25943 inttarog users bellini_d (157.138.67.118) 8784 lauram presidenza lauram (157.138.67.202) 15480 norsk users savonarola_d (157.138.67.117) (FALSE!!!) 6641 demone laboratorio 157.138.67.150 (157.138.67.150) 13308 valecerbtv users tiziano_d (157.138.67.108) 8609 federica_p presidenza ibm-7d481071513 (157.138.67.209) 15170 onscolit users tiepolo_d (157.138.67.115) 10898 venone users carpaccio_d (157.138.67.120) (FALSE!!!) 6587 demone laboratorio gardenia (157.138.67.151) 13308 fatina users tiziano_d (157.138.67.108) 13269 giacomo users guardi_d (157.138.67.116) 6639 demone laboratorio 157.138.67.150 (157.138.67.150) 6474 lallo presidenza claudio_o (157.138.67.200) 6466 francescac presidenza presidenza2 (157.138.67.208) 13070 norsk users brunelleschi_d (157.138.67.113) 6640 demone laboratorio 157.138.67.150 (157.138.67.150) 10898 lucky users carpaccio_d (157.138.67.120) 8795 norsk users mantegna_d (157.138.67.104) (FALSE!!!) 25943 cannipede users bellini_d (157.138.67.118) 6642 demone laboratorio 157.138.67.150 (157.138.67.150) 12884 francescac presidenza eleonora1 (157.138.67.203) 4361 demone laboratorio cavalcanti (157.138.67.152) 8795 morgana users mantegna_d (157.138.67.104) 25525 etnos users tintoretto_d (157.138.67.109) the entries with "FALSE" are users thar are not connected, so is a pending process... thanks everybody -- Matteo Rosati Web: http://wwwstud.dsi.unive.it/~mrosati PGP: http://wwwstud.dsi.unive.it/~mrosati/pgp.html GNU/Linux registered user #398557
> i use the "smbstatus -b" command to check the users connected to my > network (the clients are windows XP, and they connect to a samba PDC). > but i notice thar often, even if a user logs-off from windows xp, > using smbstatus i see that he is connected yet. this is very annoyingIt is also normal behavior.> because i cant obtain raliable informations from smbstatus!Nope, smbstatus is not useful for that purpose. The status of a CIFS connection cannot be used as presence.> is there a way to set a sort of "lifetime" for samba processes?deadtime = ?> a wayo > to check "this user is REALLY connected? yes? ok, no? kill the > process!"Perform an RPC/WMI request to the workstation. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org
Adam Tauno Williams said the following on 11/06/2007 13:49:>> a wayo >> to check "this user is REALLY connected? yes? ok, no? kill the >> process!" > > Perform an RPC/WMI request to the workstation.can you be more specific? i have tried to have a look to all the commands i can call with an RPC, but no one seems to be suitable for that work... thanks, see you -- Matteo Rosati Web: http://wwwstud.dsi.unive.it/~mrosati PGP: http://wwwstud.dsi.unive.it/~mrosati/pgp.html GNU/Linux registered user #398557
> >> to check "this user is REALLY connected? yes? ok, no? kill the > >> process!" > > Perform an RPC/WMI request to the workstation. > can you be more specific?That is an entirely 100% Windows specific question/issue; nothing to do with Samba. Any Windows related forum or user group will be able to provide specifics. And you almost certainly need a Windows machine to do any of that kind of stuff.> i have tried to have a look to all the commands i can call with an RPC, > but no one seems to be suitable for that work...-- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org