View Full Version : sitewho.exe by ADDiCT
ADDiCT
11-02-2003, 01:55 PM
I got shared memory working in Visual Basic, using the new memory mapping technique and wanted to make something (useful?) with it...
I couldn't get it to crash, perhaps U can ?
This first version doesn't allow u to hide certain users, but that will be added by next version. As well as limiting output to uploaders/downloaders/idlers only.
Output completely customizable with templates.
Only use it on 5.2.11+ versions, older versions don't use memory mapping as interprocess communication technique.
phoenixfr
11-02-2003, 03:14 PM
thanx for sharing
ADDiCT
11-03-2003, 11:37 AM
updates in 1.0.1 :
- added cookie for servicename
- list all users, or only uploaders/downloaders/idlers
- hide users based on: flags, username, groupname, service, path
- fixed security issue: if last command was PASS abcd --> change it to PASS *****
Note: hidden users´ speed will also be hidden
MaistroX
11-03-2003, 11:51 AM
Only a change of .exe to update or ? ;)
ADDiCT
11-03-2003, 11:55 AM
rofl :)
long answer:
incase of doubt: update all. or atleast have a look around.
U might have noticed new separate template files for listing all users / uploaders / downloaders / idlers.
U might have also noticed some extra info in the .ini file about hiding certain users.
short answer: complete update
ADDiCT
11-03-2003, 12:35 PM
found a small 'bug' in the uploaders.foot.nfo template:
replace %(speeddown,7,R) with %(speedup,7,R) ... DUH :)
I like your site who script. But is there a way to get an average speed also?
EDIT: There is something strange with sitewho. Either Ive as usual configured something wrong or its sitewho. Ive edit the body in templets(onlineuser.body.idle) to this:
| USER:...%(user) GROUP:...%(group) IP:...%(ip)
and when a user outside my LAN connects his IP gets screwd.
[200-| USER:...test GROUP:...ioftpd IP:...-1505803819
When connection from my LAN it shows the right ip etc Internal IP. But It seams like the External Ip doesnt show correctly.
ADDiCT
11-10-2003, 07:48 AM
I've fixed the ip conversion thingie (VB only uses signed variables, the negative ones didn't get resolved)
What do u mean with average speed? ioFTPD only gives the current speed, there is no way for me to calculate average speed.
I mean that It would be nice to get an Average speed of a user Up/Down etc. But as you said ioFTPD doesnt support avg. speed so then there isnt much to do.
But thanks for the IP thingi
ADDiCT
11-10-2003, 07:59 AM
here we go... but if u only need a script to show info as a 'site who' command, u are probably better off with an iTCL script, since that doesn't require an exe to be loaded, and getting info trough shmem.
(for a bot, this tool may be usefull though, as the iTCL script can only be run from ioFTPD)
updates in 1.0.2
- fixed long IP to dotted IP conversion for certain IP's
- fixed the template file as described 2 posts above
EXE update only (+ 1 template file)
MaistroX
11-10-2003, 08:58 AM
THX !
ADDiCT
11-14-2003, 01:09 PM
updates in 1.0.5 :
- getting info from shmem instead of userfiles
- multiple template sets possible
- ability to show hidden users (for siteops)
- added 'speed <user>' and 'bw' (mainly for sitebot)
- separate countercookies for idlers, uploaders, downloaders, all transferring users, all users
(1.0.3 & 1.0.4 were 'internal' versions for Bounty :))
Very nice work, thanks.
If you would have time over sometime it would be nice if the new stuff had head, body, foot tamplets also beacuse its look very nice. But its not important.
ADDiCT
11-14-2003, 01:44 PM
'bw' doesn't need header & footer because it only returns 1 thing, so edit the only template there is.
'speed' per user has a footer, but indeed no header
(i have to loop through all online users to find out if a certain user is online AND is not hidden, so if i send the header first, it's possible that there won't be any following content)
Ok I understand.
And I think ive found a bug. Not sure yet you check it out. Look for Users, it doesnt announce the total users in every foot tamplet. As you can se ive got more then 1 user.
200-| |
200-+-------------+--------------------+----------------------+-------------------+
200-| Users: | Upload: 5 kBps | Download: 10 kBps | Total: 15 kBps |
200-+-------------+--------------------+----------------------+-------------------+
ADDiCT
11-15-2003, 04:27 AM
aah yes, forgot to update the old templates with the new cookies :
%(usercount) is now %(usercountall)
ADDiCT
11-15-2003, 05:38 PM
updates in 1.0.6
- extended time cookies (requested by Bounty :) ) --> readme.nfo for more details !
- fixed old cookies in default templates
ADDiCT
11-16-2003, 12:29 PM
updates in 1.0.7 :
- correct checking if (matching) users are online or not (previous version could output header + footer without body if hidden users were online)
- 'nobody' templates for uploaders/downloaders/idlers
MaistroX
11-16-2003, 12:36 PM
Nice . :)
bounty
11-16-2003, 01:53 PM
Originally posted by ADDiCT
updates in 1.0.7 :
- correct checking if (matching) users are online or not (previous version could output header + footer without body if hidden users were online)
- 'nobody' templates for uploaders/downloaders/idlers
W00T !! this one really roxx ;)
big thx
bounty
Test on previous version and this new verison. Logintime isnt correct. Check idle time against logintime, idletime shouldnt be a minut before logintime.
site swho idle
Right after login:
200-| Logintime: 0d 0h 0m -30s Idletime: 0d 0h 0m 0s
After 10 sec:
200-| Logintime: 0d 0h 0m -20s Idletime: 0d 0h 0m 10s
What ive used in tamplete's, Ive changed them to my desire but it should be working anyway.
| | Logintime: %(logintime_total_d)d %(logintime_h)h %(logintime_m)m %(logintime_s)s Idletime: %(idletime_total_d)d %(idletime_h)h %(idletime_m)m %(idletime_s)s (lastcmd)
Ive set time_offset = 3630 and that gives me exact idle time for the users. But the logintime is incorrect.
ADDiCT
11-16-2003, 03:18 PM
logintime is correct, idletime is wrong :)
please leave time_offset to a mulitple of 3600, as that's definately not going to help :)
so if you leave it to 3600, logintime = 0s and idletime = 30s ?
Hmm odd. Ive had problem before with the idle time was not correct and when ive change the time_offset to 3630 idletime was perfect.
Ive changed back as u said and login and idle is perfect. Hehe my misstake :>
romracer
11-16-2003, 08:16 PM
I get runtime error 6 as soon as I run site swho or !who from my sitebot. If I click ok on the error then the output will process and everything continues to run. But as long as the error is on the screen everything is frozen. Any ideas?
ADDiCT
11-17-2003, 01:15 AM
it's about time i add error catching :)
error 6 = overflow = nevere a good thing to happen
romracer
11-17-2003, 09:40 AM
Yea, its almost like it happens when its reading the templates or the ini but I'm not sure. I set the connect time thing it -28800 as that set my login time to zero. Everything else is untouched pretty much from the dZSbot 1.01 release. I even extracted the files through remote desktop instead of uploading them to see if that helped. Same thing. If you want me to test you can find me on irc.
ADDiCT
11-17-2003, 02:56 PM
updates in 1.0.8 :
- fixed bug: debug performance counter doesn't cause any error when the api calls fail. I believe it only happens on certain hardware (for example romracer has a dual amd setup).
- fixed bug: overflow could happen on logintime > changed integer (16bit) to long (32bit).
- added error logging to all 'large' functions
Remarks: for people who upgrade: only sitewho.exe changed
upgrade it on your dZSbot as well !
ADDiCT
11-19-2003, 09:49 AM
updates in 1.0.9 :
- added option to override default 'site who' command
There is a mistake in the readme.nfo :
replace
who = EXEC ..\scripts\sitewho.exe template=2 override_site_who
with
site = EXEC ..\scripts\sitewho.exe template=2 override_site_who
Here comes a stupied question.
You added an option to everride default site who. What does it do? I thought first it would use the templates_limited when doing a site who command so it would be like doing a site xwho, but it didnt work after ive tryed it.
ADDiCT
11-19-2003, 10:54 AM
the same as with ioGroups to replace 'site uinfo'
it outputs the info u would normally get from sitewho.exe, and then it blocks ioFTPD's internal 'who' function.
MaistroX
11-19-2003, 11:00 AM
I did all things that was required in readme.nfo about "If u want to override the default 'site who' command :" and rehashed, still the default site who´s showing, what can be wrong ?
Is readme.nfo missing any vital info to get it to work ?
ps. btw. great scripts u do :)
ADDiCT
11-19-2003, 11:05 AM
stupid mistake of me :)
who = EXEC ..\scripts\sitewho.exe template=2 override_site_who
-->
site = EXEC ..\scripts\sitewho.exe template=2 override_site_who
MaistroX
11-19-2003, 11:12 AM
That did it :) thx
Got it working now weee
But I get a debugg msg when useing site who.
200-DEBUG: overriding default 'site who' command.
200-DEBUG: [duration: 3 ms]
ADDiCT
11-19-2003, 11:45 AM
i'm always in debug mode so i didn't notice that, will fix it :/
another remark: overriding default 'site who' is NOT compatible with ioBanana's: the channel !bw announce won't get any info.
ADDiCT
11-19-2003, 01:36 PM
updates in 1.0.10 :
- fixed debug announces when overriding default 'site who'
- fixed readme.nfo
stLancer_2
11-21-2003, 02:20 AM
i edited the sitewho ini and placed it in my ioftpd\system directory.
[R] site who
[R] [error] couldn't find one of the required values in sitewho.ini: ip, port, user, pass, commandprefix. exiting...
...:(
ADDiCT
11-21-2003, 02:32 AM
U must be using some other sitewho.exe, because mine doesn't have that kind of output. And sitewho.ini should always be placed in the same dir as sitewho.exe
stLancer_2
11-21-2003, 02:35 AM
Originally posted by ADDiCT
U must be using some other sitewho.exe, because mine doesn't have that kind of output. And sitewho.ini should always be placed in the same dir as sitewho.exe
opps, sorry, i forget to change the path.
now it works fine, thank you.
:p
Im running 2 servers on the same machine. Ie 2 different /ioftpd. This sitewho shows the users of both servers.
ADDiCT
11-23-2003, 02:27 PM
different services on the same ioftpd.exe + ioftpd.ini setup ? no separate dirs with separate ioftpd.exe's in it ?
in that case: edit sitewho.ini -> hide_services = ...
where ... = all the services that u want to be hidden
ADDiCT
11-26-2003, 10:03 AM
updates in 1.0.11
- added %(cid) cookie for connection ID
- fixed bug: in some cases, ip was incorrect (*.*.*.161 instead of *.*.*.33 etc, always a difference of 128)
nice
One suggestion. Should look better if the new cookie %(cid) will start on 1 instead of 0.
ADDiCT
11-26-2003, 11:35 AM
the CID is an internal value of ioFTPD, if i show 1 instead of 0, and u use that to kick a user, u would kick the wrong user.
Tradah
11-29-2003, 04:18 PM
i always get this:
site xwho
200-+--------------------------------------------+
200-| There are no users online at the moment. |
200-+--------------------------------------------+
200 Command successful.
any idea ?
Is there any users online except yourself(admin) when you run the command? If your the only one online check hide options
hide_flags =
hide_groups =
hide_users =
hide_services =
hide_paths =
If theres users online except yourself, I dont know whats wrong.
Tradah
11-29-2003, 05:14 PM
hidding settings are correct, and im not the only one connected that's why is strange :S
Ive got some suggestion to new cookies. If you got time or think they should fit the script. Would be nice if there are more cookies comming, love em all :)
* sitename(display site name)
* users online(display number of users online)
* max users(display ftps max amount of users allowed to connect)
* clients host(optional to ips)
ADDiCT
11-29-2003, 10:11 PM
* sitename(display site name)
--> no problem
* users online(display number of users online)
--> %(usercountall) available in onlineuser.foot.nfo ... need it in downloaders/uploaders/idlers as well ?
* max users(display ftps max amount of users allowed to connect)
--> i *could* read this from system.ini, but i guess it's not changed that often, so 'hardcoding' it in a template file should not be a problem. however, i'll consider this one.
* clients host(optional to ips)
--> 'problem' : ip2hostname is a blocking function, if there are users online without a hostname, the call can hang for several seconds
solutions: 1. not use it. 2. multithreading. in VB, that means writing an unstable program. i'd rather write a program that won't crash, with a little less functionality.
but: i WILL implement ip2hostname in ioGui (caching the hostnames will reduce the hanging problem to a single time).
(i'm drunk, so ignore anything i've written :p)
ADDiCT
12-01-2003, 01:59 PM
updates in 1.0.12
- global cookie %(sitename)
- cookie for transfers: %(transfersize) : number of MB transferred on current file
- cookies for downloaders: %(filesize) + %(progress) : total filesize in MB + procent downloaded
- EDIT: forgot to mention: usercounter variables are now correct in all footer templates
in downloaders.* / uploaders.* / idlers.*
previous version: %(usercountall) showed only the selected users
this version: %(usercountall) shows all online users (that are not hidden), and %(usercountdn) shows downloaders, ...
Weee :) thank u
Just a few things.
would be nice if the %(progress) and %(filesize) worked everywhere ie onlineuser.body.transfer. I know that it cant be added in uploads, but everywhere else would be cool :)
btw filesize that is setup in your default onlineusers.body.transfer doenst work in "SITE SWHO", the user that are downloading
200-| test2@ioftpd - down - 9kBps - DIR/file.r01 - MB
| %(user)@%(group) - %(status) - %(speed)kBps - %(pwd)%(filename) - %(filesize)MB
%(maxusers) doesnt seem to work anywhere. Or my ioftpd.ini is setup wrong.
Btw would it be possible with how many MB a user has uploaded? Dunno if its impossible or hard to do but if it would be possible and if you got the spear time over :)
Originally posted by odd
would be nice if the %(progress) and %(filesize) worked everywhere ie onlineuser.body.transfer.
JEAH JEAH JEAH :)
anyway... thx a lot for this script ADDICT!!! :banana:
ADDiCT
12-02-2003, 03:39 AM
would be nice if the %(progress) and %(filesize) worked everywhere ie onlineuser.body.transfer.
i will split *.transfer.* cookies in *.upload.* and *.download.*
will be done in next version
btw filesize that is setup in your default onlineusers.body.transfer doenst work in "SITE SWHO", the user that are downloading
will be fixed in next version
%(maxusers) doesnt seem to work anywhere. Or my ioftpd.ini is setup wrong.
will be fixed in next version. it was supposed to be a sitewho.ini setting
Btw would it be possible with how many MB a user has uploaded? Dunno if its impossible or hard to do but if it would be possible and if you got the spear time over :)
ioftpd doesn't keep that information, so i can't read it, nothing i can do about that
next version will be posted sometime today
ADDiCT
12-02-2003, 04:26 AM
here we go
updates in 1.0.13
- transfer templates are now splitted into upload & download templates
- download cookies %(filesize) and %(progress) now working in all download templates
- %(maxusers) working in all templates
jeah great
small error:
in limited templates download:
| %(user)@%(group) - %(status) - %(speed)kBps - %(pwd)%(filename) - %(transfersize)/%(filesize)MB (%progress)
--> (%progress) hast to be %(progress)
but now i have 3 up 3 dn and 2 idle lines for every user with all important info AND fully configurable templates!!!
thx addict
ADDiCT
12-02-2003, 09:51 AM
lol, seems like i just stopped typing or something, i was gonna write (%(progress)%) like in the other templates... ah well, will be fixed in next release
There an error in your site who: I'm using your site who instead of site who of io. I made a site who but just after, I made site swho that told me the last action i made was PWD. That's not right. I made SITE WHO as last action.
[My PC] -Status- Connected.
[My PC] 220 ioFTPD 5 server ready.
... (Cut)
[My PC] PWD
[My PC] 257 "/" is current directory.
[My PC] SITE who
[My PC] 200-,--------------------------------------------.
[My PC] 200-| There are no users online at the moment. |
[My PC] 200-`--------------------------------------------`
[My PC] 200 Command succesful.
[My PC] SITE swho
[My PC] 200-+-----------------------------------------------------------------------------+
[My PC] 200-| |
[My PC] 200-| Admin0rz@Administrator - 127.0.0.1 - connected for 0h 0m 5s - idle for 0m 3s
[My PC] 200-| last action: "PWD" - path: /
[My PC] 200-|
[My PC] 200-| |
[My PC] 200-+-------------+--------------------+----------------------+-------------------+
[My PC] 200-| Users: 1 | Upload: 0 kBps | Download: 0 kBps | Total: 0 kBps |
[My PC] 200-+-------------+--------------------+----------------------+-------------------+
[My PC] 200 Command successful.
[My PC] SITE swho
[My PC] 200-+-----------------------------------------------------------------------------+
[My PC] 200-| |
[My PC] 200-| Admin0rz@Administrator - 127.0.0.1 - connected for 0h 0m 9s - idle for 0m 4s
[My PC] 200-| last action: "SITE swho" - path: /
[My PC] 200-|
[My PC] 200-| |
[My PC] 200-+-------------+--------------------+----------------------+-------------------+
[My PC] 200-| Users: 1 | Upload: 0 kBps | Download: 0 kBps | Total: 0 kBps |
[My PC] 200-+-------------+--------------------+----------------------+-------------------+
[My PC] 200 Command successful.
I can confirm it.
LIST
150 Opening ASCII mode data connection for directory listing.
226 [PWD: / ]-[Section: Default]-[Credits: 2.9M]-[Ratio: Unlimited]-[Speed: 0.0kb/s]
site who
200-,--------------------------------------------.
200-| There are no users online at the moment. |
200-`--------------------------------------------`
200 Command succesful.
site swho
200-| ioFTPD@SiTEOP - 192.168.0.102 - connected for 0h 0m 9s - idle for 0m 7s
200-| last action: "LIST" - path: /
200 Command successful.
But it think its only site who that doesnt shows in the last action.
ADDiCT
12-04-2003, 12:50 PM
this also happens with my ioGuiExt for ioGui, showing NOOP as last command.
i think it's some delay in ioftpd... my programs are showing the data as it comes from ioftpd
Pichento
12-04-2003, 02:00 PM
Addict:
Would be neat if you could add suppport for a progress counter and not only percentage.
ie:
########## - 100 %
######### - 90 %
etc.
darkone
12-21-2003, 11:46 PM
Propably has something to do with script's return value.. (if you exit with non-zero, command isn't updated by io - as it thinks that it was invalid)
darkone
12-22-2003, 12:22 AM
Works great with b5.4 & new message threads :)
Pichento
12-23-2003, 02:28 PM
Hiya Addict.
I really like your site who, but in oder to be able to skin it to my needs i really need and option to be able to specify max length. Let me explain:
%(filename,20,L) <-- i want to be able to force that part max. 20 chars. Filenames above 20 screw up site who listing completely. Normally ioFTPD cookies support that.
Cant that be done here too?
bounty
12-23-2003, 02:52 PM
Originally posted by Pichento
Hiya Addict.
I really like your site who, but in oder to be able to skin it to my needs i really need and option to be able to specify max length. Let me explain:
%(filename,20,L) <-- i want to be able to force that part max. 20 chars. Filenames above 20 screw up site who listing completely. Normally ioFTPD cookies support that.
Cant that be done here too?
did you tried ? : %(filename,20,,,1) or %(filename,20,L,,1)
ADDiCT
12-23-2003, 03:29 PM
indeed. i never included the way i handle cookies, it's the same as in ioGroups:
syntax:
-------
%(<variablename>,<length>,<alignment>,<fillchar>,<cap>)
explanation:
------------
- variablename: ...
- length: formatted length of the variable
- alignment: left, right or centered (L/R/C)
- fillchar: character that will be used to fill up empty spaces
- cap: variable will be capped at the given lenght (0/1)
default settings:
-----------------
- length = 0 (means total lenght of variable)
- alignment = L (left)
- fillchar = ' ' (a space)
- cap = 0 (no capping)
Pichento
12-23-2003, 05:20 PM
Thanks both of you for the swift reply.
Much appreciated.
Pichento
12-23-2003, 05:35 PM
Addict:
did you see my progress-meter request? :)
Would be awsome..
Merry X-mas
zENOn
12-23-2003, 06:01 PM
ioFTPD: 5.4.2r
SiteWho: 1.0.13
dzsbot: 1.05
When ever i do !who in my chan i get a message saying ERROR: initialization failed (is ioFTPD running?), and on !bw i get the same message + Uploaders: initialization@[B]ERROR:kb/sec - Leechers: (is@failedkb/sec - Idlers: ioFTPD - Total: @running?)kb/sec. And yes, the server is running (as a service via IOFTPD-Service).
ADDiCT
12-24-2003, 02:16 AM
do one of the following things:
- start the bot from within ioFTPD (with a site command for example)
- install the bot as a NTService as well
- turn this option ON in the ioFTPD service settings: "allow to interact with desktop when running as a user"
alturismo
12-24-2003, 11:55 PM
or when installed as service, let them both
"interact with desktop" in service settings
works fine here using firedaemon ;)
Any1 wanna help me out getting sitewho to work with 5.4.xr ?
Ive get command successfully only when Ive tryed to get the script to work.
ADDiCT
12-29-2003, 05:18 AM
try using the full path in
who = EXEC D:\ioftpd\scripts\sitewho\sitewho.exe blabla
omg plz leal... didnt even had the script in the ioftpd :D Seams to be working now, odd isnt it? ;)
Just a quick question on how to get swho that follows ioftpd 5.4x to not be excuted at the same(ever) time as sitewhos swho?
alturismo
12-30-2003, 02:42 AM
what i did prolly is the "hard" way,
i just removed all /txt/ftp files wich where related to
buildin swho, userlist, grouplist
this way now all i see on groups, users, who, swho
are the outputs from addicts sitewho, ioGroups
i didnt see any failures here "yet" by removing those files ;)
St0rm
01-01-2004, 05:53 PM
Hmm the sitewho on one of my ftp's just stopped working :confused:
It says that noone is online. I tried running sitewho from a cmd prompt, and got the same result. Weird cause it worked before. Using ioftpd 5.4.3r. Anyone got a suggestion?
ADDiCT
01-01-2004, 06:00 PM
is it by any chance possible that u are running multiple instances of ioFTPD ?
St0rm
01-01-2004, 06:05 PM
Ah, there were 2 ioftpd.exe's running for some reason. Prolly because of the removed tray icon ;p
Thx for the fast reply
site swho up
200-,-----------------------------------------.
200-| There are no uploaders at the moment. |
200-`-----------------------------------------`
500-Invalid argument: up.
500 Command failed.
site swho dn
200-,-------------------------------------------.
200-| There are no downloaders at the moment. |
200-`-------------------------------------------`
500-Invalid argument: dn.
500 Command failed.
There isnt any users online atm except me(Master), but why do I get Invalied argument: dn/up.
site swho
200-+ --- ---------------------------------------------------------------- --- - +
200-| S i T E S W H O |
200-+ --- ---------------------------------------------------------------- --- - +
200-|
200-+- 0 ----------------------.----------------------.-------------------- -- - +
200-| User: ioFTPD @ ioftpd | Satus: idle | Ip: *@192.168.0.102 |
200-| Online: 1h 56m | Idletime: 0m 3s | Cmd: site swho |
200-| PWD: /_pre/ |
200-+- -- -- ------------------------------------------------------------ -- -- - +
200-|
200-+---------------+------------------+--------------------+---------------------+
200-| Users: 1/10 | Up: 0 kBps | Down: 0 kBps | Total: 0 kBps |
200-+---------------+------------------+--------------------+---------------------+
200 swho Command successful.
SITE SWHO seems to get no errors ie invalied command.
I guess it has to do with the new swho in io5.4.3r.
I got cookie request again :)
* total users downloading(show numbers only)
* total users uploading(show numbers only)
* total users Idle(show numbers only)
I came up with a new feature that maybe could be added. New feature that will only show user info on 1 user on site useing his cid or username. Ex If u got many ppl on site and I just want to check what A certian user is doing.
Use
Site swho <cid> or <username>
Which will only show this users swho-info and it will be more detailed. And needs separte templates so it can be costumize after each siteops needs. Just a suggestion, dont expect it to be added.
EX on how it would look for me.
.-------------------------------.-------------------------------.-------------------------------.
| ID : 1 | Status: IDLE | Service : FTP_Service |
| User : test | Online: 00h 39m | Last CMD: NOOP |
| Group: group1 | Idle : 00m 53s | |
| IP : * @ 192.168.0.102 | PWD : /ARCHIVE/ |
'-----------------------------------------------------------------------------------------------'
ADDiCT
01-22-2004, 01:40 PM
* total users downloading(show numbers only)
* total users uploading(show numbers only)
* total users Idle(show numbers only)
what exactly do u mean with 'show numbers only' ?
u can use these values in all footer templates:
%(usercountup) number of uploading users
%(usercountdn) number of downloading users
%(usercounttransfer) number of transferring (up+dn) users
%(usercountidle) number of all idle users
%(usercountall) number of all online users
New feature that will only show user info on 1 user on site useing his cid or username. Ex If u got many ppl on site and I just want to check what A certian user is doing.
Use
Site swho <cid> or <username> site who speed ADDiCT
uses the bot.speed.* templates, was made for dZSbot: !speed ADDiCT
or is this not what u needed?
That was what I was trying to get but hehe its already there. thx :D
Bratell
01-23-2004, 07:40 AM
Anyone got some nice templates to share? :)
sorry went wrong. look in post below.
You can try my new template for xwho. But its a little diffrent then others. Iam not useing this template for sitebots as it would flood it pretty good :) But Iam still useing the bots_templates but for other purpose(you will find out in the included sample).
Use original swho for sitebots.
use
site xwho speed <user>
for detailed info of a user online, see sample.
sitewho.ini
template_path_3 = C:\ioFTPD\scripts\SiteWho\templates_admin_xwho
ioftpd.ini
xwho = EXEC ..\scripts\sitewho\sitewho.exe template=3 show_hidden_users
xwho = 1MG
Bratell
01-25-2004, 11:07 AM
Tnx! I'll try it out
TigerWutz
02-24-2004, 12:50 AM
the 1.0.13 will not work with the new ioftpd version like ioFTPD-beta5-8-0r.zip
my ftp client shows :
site who
200-ERROR: initialization failed (is ioFTPD running?)
200 Command successful.
but with ioftpd 5-6-3 exe, works!
can you fix it?
i love this script!
ADDiCT
02-24-2004, 03:27 AM
1. darkone used sitewho.exe for debugging on 5.7 and 5.8
2.
9:25:30 > site version
9:25:30 200-Running ioFTPD version 5-8-0r
9:25:30 200 Command successful.
9:25:32 > site who show_hidden_users
9:25:32 200- ___________ ________
9:25:32 200- _______\_ _/__\ /________
9:25:32 200- \ / | | | _ /
9:25:32 200- | /\ | | | |
9:25:32 200-+-------------------|______________\___|_____|_______|------------------------+
9:25:32 200-| |
9:25:32 200-| ioFTPD@ioftpd - 127.0.0.1 - connected for 0h 2m 30s - idle for 0m 0s
9:25:32 200-| last action: "SITE ioGuiExt who" - path: /
9:25:32 200-|
9:25:32 200-| |
9:25:32 200-+---------------+------------------+--------------------+---------------------+
9:25:32 200-| Users: 1/20 | Up: 0 kBps | Down: 0 kBps | Total: 0 kBps |
9:25:32 200-+---------------+------------------+--------------------+---------------------+
9:25:32 200 Command successful.
There are no changes that would stop sitewho from working.
BUT! I hope u are not using this new 5.8 feature:
- New: ioFTPD message window class is renamable. To rename it, add WindowName='new name' to [threads]
TigerWutz
02-24-2004, 06:51 AM
k
i disabled the windowname in my ini
;WindowName = 'ioFTPD' # Window Name (for scripts to send messages to ioFTPD)
and than it works fine!
hmms jeah but needed restart instead of rehash here...
k... when someone dl it crashed on 5.8.1r
now 5.8.2r works but takes 2-4 seconds more time for output.
-=DoBBeR=-
02-24-2004, 05:46 PM
Originally posted by TigerWutz
k
i disabled the windowname in my ini
;WindowName = 'ioFTPD' # Window Name (for scripts to send messages to ioFTPD)
and than it works fine!
in what ini did u find that line? cant seem to find it anywhere in my ioftpd dir
Mouton
02-24-2004, 06:22 PM
Originally posted by TigerWutz
k
i disabled the windowname in my ini
;WindowName = 'ioFTPD' # Window Name (for scripts to send messages to ioFTPD)
and than it works fine! That's the wrong line... That's why.
The good one is now in the upgrade thread.
My sitewho just stoped working I think.
Ive tryed with M flag and none M flag but still always show following:
[20:33:46] site xwho
[20:33:46] 200-,--------------------------------------------.
[20:33:46] 200-| There are no users online at the moment. |
[20:33:46] 200-`--------------------------------------------`
[20:33:46] 200 Command successful.
[20:33:49] site who
[20:33:49] 200-,--------------------------------------------.
[20:33:49] 200-| There are no users online at the moment. |
[20:33:49] 200-`--------------------------------------------`
[20:33:49] 200 Command succesful.
[20:33:51] site swho
[20:33:51] 200-,--------------------------------------------.
[20:33:51] 200-| There are no users online at the moment. |
[20:33:51] 200-`--------------------------------------------`
[20:33:51] 200 swho Command successful.
[20:33:53] site xwho
[20:33:53] 200-,--------------------------------------------.
[20:33:53] 200-| There are no users online at the moment. |
[20:33:53] 200-`--------------------------------------------`
[20:33:53] 200 Command successful.
[20:33:54] site who
[20:33:54] 200-,--------------------------------------------.
[20:33:54] 200-| There are no users online at the moment. |
[20:33:54] 200-`--------------------------------------------`
[20:33:54] 200 Command succesful.
I havent even touch my ioFTPD since the last time my sitewho worked. This happend over the night.
After I restarted ioFTPD.exe it worked again, strange :confused:
ioFTPD 5.8.4r
sitewho 1.0.13
Unique
04-05-2004, 06:28 PM
Mm looing for latest version of this script.
Its not on ioftpd scripts section, its not in this thread..
I saw some files on addicts www
http://home.no.net/addict99/files/
but its 1.0.9... theres an exe too, dunno which version.
Either way i was looking for this feature:
"ability to show hidden users (for siteops)"
Where can i set which users may see hidden users using normal site who?
I could use the showhidden addon, but then i need to make a new site command again :/
ADDiCT
04-06-2004, 02:53 AM
My apologies, I haven't posted SiteWho in the scripts sections yet, because i wanted to fix all the broken thingies, but it has been dragging on for a while.
In the meantime, i uploaded 1.0.13 on my webspace again, but use it at own risk :)
Showing or hiding hidden users is done by commandline argument "show_hidden_users" as first parameter. At the moment, i don't see any way to do this without a second sitecommand. I'll might add a feature for your needs in 1.0.14 as well.
Unique
05-20-2004, 08:04 AM
The unregged version of ioftpd still doesnt work at all with sitewho, or any script using that method. Its either mayor slow and half working, or not working at all.
Ive had this on several boxes :(
now its gaying about
[L] site who
[L] 200-.-------------------------------------------------------------------.
[L] 200-| There are no users connected at the moment. |
[L] 200-`-------------------------------------------------------------------'
[L] 200 Command successful.
again.
While there're certainly people on.. swho tells it right.
I just upgraded (my previous slow working which suddenly stopped working version) sitewho to latest, and its the same.
Config seems right, so i guess its still a bug from ioftpd (seeing it hasnt been updated in months)
ADDiCT
05-20-2004, 09:02 AM
Any problems u had before won't be fixed in 1.0.15 since none of the SHMEM code changed. There seemed to be some problem with my translated-from-c-to-vb SHMEM code, which caused earlier version of ioFTPD to crash, and 5.8.4 to hang. Since ioFTPD 5.8.5r, there are no more crashes or hanging scripts.
Current solutions:
- upgrade to 5.8.5r (hours/days)
- wait for a public 5.8.5u (or newer) version (weeks?months?)
- wait until i make a C++ version (months.)
Unique
05-20-2004, 09:12 AM
Ok thanks for the info :)
maX1mus_2
03-20-2005, 03:23 PM
Hi!
I have a problem:
I´ve sucesfully hidden dirs from showing in !bw but user Uploading in that dir is shown when i do SITE WHO.
Have i missed someting? :\
Regards - max
EwarWoo
03-20-2005, 09:36 PM
Are you a siteop onsite and do you have it set to show hidden users to siteops? (I think thats the default set-up)
maX1mus_2
03-21-2005, 12:40 AM
I have both siteop and non-siteop accounts.
The problems is when someone Upload in pre-dir, it should be hidden
/GROUPS/*
Cause i dont want to hide user or group, cause then we cant se when they upload outside pre-dir.
i have add these to ioftpd.ini:
[Scripts]
who = EXEC ..\scripts\sitewho.exe template=2 all
xwho = EXEC ..\scripts\sitewho.exe show_hidden_users
but i diddn´t have the [Scripts] in my ini, so i put it on the bottom
i always get Command not understood
i also override the default 'site swho' command and here it works
any ideas?
ADDiCT
09-13-2005, 11:16 AM
the old [Scripts] section got renamed to [ftp_custom_commands] a few io versions back
putting it at the bottom will only place it in the last ini subsection, [Http_Permissions]
Chico
09-25-2005, 02:53 AM
i have 2 instances of ioftpd running, is there a way to force sitewho.exe to get the bw/uploaders/leechers info from 1 site and not the other?
ADDiCT
09-25-2005, 02:58 AM
My suggestion would be to run each instance in a separate user environment, for example: one as LocalSystem service, the other in the Administrator desktop (or as Administrator service). When using sitewho for the bot, you would need 2 bots in this example, each one started through io to make sure they are in the same environment as the ioFTPD about which they need to show information.
_panic_
09-25-2005, 01:30 PM
My suggestion would be to run each instance in a separate user environment, for example: one as LocalSystem service, the other in the Administrator desktop (or as Administrator service). When using sitewho for the bot, you would need 2 bots in this example, each one started through io to make sure they are in the same environment as the ioFTPD about which they need to show information.
i'll go ahead and repeat this post (http://www.inicom.net/forum/showpost.php?p=124750&postcount=7) here:
there is an undocumented name/value pair in the [Threads] section of ioftpd.ini. it is called WindowName, and defaults to "ioFTPD::MessageWindow". you can change this in one of your running ioftpd configurations, which will take care of the problem from ioftpd's side. you'll also of course, need to fix sitewho.exe to look for another window name. not sure how to do this part.
can sitewho be made to behave the same way? i.e. look in the ioftpd.ini file for this resource name and use it if it exists? that might be a simpler way of fixing this problem.
Chico
09-25-2005, 01:38 PM
site1 has eggdrop. site2 doesn't need eggdrop.
is there a way to tell sitewho.exe to look for another window name?
i just did the "WindowName = ioFTPD::MessageWindow" on site2. so at least they don't get confused wit each other. but when you do site xwho both sites reply who info from site1.
_panic_
09-25-2005, 01:59 PM
site1 has eggdrop. site2 doesn't need eggdrop.
is there a way to tell sitewho.exe to look for another window name?
i just did the "WindowName = ioFTPD::MessageWindow" on site2. so at least they don't get confused wit each other. but when you do site xwho both sites reply who info from site1.
just to be clear, "ioFTPD::MessageWindow" is the default value for the message window. you'll need to change it to something else (anything else), if and when you can also change sitewho.
ADDiCT
09-27-2005, 02:18 PM
http://www.inicom.net/pages/en.ioftpd-scripts.php?id=112
Small recompile with new ini setting to specify windowname for SiteWho.exe, completely untested :)
_panic_
09-27-2005, 08:50 PM
http://www.inicom.net/pages/en.ioftpd-scripts.php?id=112
Small recompile with new ini setting to specify windowname for SiteWho.exe, completely untested :)
sweet! thanks for the quick turnaround.
aktizol
09-30-2005, 06:15 AM
sometimes after running the site who command the SiteWho.exe for no reason uses 50% CPU...
hello.
first of all thx for the nice script.
I do all the steps by the readme.nfo, and updated steps that i found on this topic, like
stupid mistake of me :)
who = EXEC ..\scripts\sitewho.exe template=2 override_site_who
-->
site = EXEC ..\scripts\sitewho.exe template=2 override_site_who
and
the old [Scripts] section got renamed to [ftp_custom_commands] a few io versions back
putting it at the bottom will only place it in the last ini subsection, [Http_Permissions]
So
site swho works fine, BUT when i try use site who or site xwho i got this errors:
[R] site who
[R] 200-ERROR: unknown command: "override_site_who"
[R] 200 Command successful.
[R] site xwho
[R] 500 SITE xwho: Command not understood.
Any idea how can i fix it ??
Thx a lot ;) ;)
ADDiCT
11-01-2005, 04:09 PM
site swho is working, so i assume u already have these lines in your ioFTPD.ini file:[FTP_Pre-Command_Events]
site = EXEC ..\scripts\sitewho.exe template=2 show_hidden_users override_site_swho
[Ftp-SITE-Permissions]
swho = 1M
Now, that's only for overriding the internal SWHO command, if u want extra site commands like WHO and XWHO, you also need these lines in ioFTPD.ini :
[FTP_Custom_Commands]
who = EXEC ..\scripts\sitewho.exe template=2 all
xwho = EXEC ..\scripts\sitewho.exe show_hidden_users
[Ftp-SITE-Permissions]
xwho = 1M
ADDiCT
man, many thx. Now it's all working as i expected.
:D :D :D
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2025, vBulletin Solutions, Inc.