powered by Jive Software

Session list - access from php script

How can i access to user sessions list form php script?

If its impossible can i get online users counter somehow?

Wildfire exporting any of those information’'s, or maybe i can do it from console?

Hi Michael,

if you like the admin console and have the password you may want to write a short PHP script to login there and fetch the “client sessions” list with a high “range” value like

http://server:9090/session-summary.jsp?range=1000

I did write a perl script to login and use the broadcast option, it should be easy to port http://www.jivesoftware.org/community/thread.jspa?messageID=116681&#116681 to PHP.

LG

Its not problem to do script like this (in php there is curl library) but i don’'t think its effective / professional solution.

Really no one know different answer ?

Hi,

Wildfire supports also ad-hoc commands so you could probably use a php-xmpp lib if one is available.

LG

Its not

Really nobody know how to export one simple variable??

well, this is not veryprofessional either, however if you are running this on Unix/Linux go to the command line and do a

netstat -a|grep 5222|wc -l this will give you a connection count on port 5222, change to 5223 for ssl connection I wrote a simple sh script and run it with a command to check connections. won;t give you names only connection count for each port. Hope this helps…

Jeff

Hello, Sorry to post there 8 years after.

I need to retrieve the names of the people connected, their IP adresses and their status (offline, online, away) in PHP language.

1 time a day an external SQL update.

Do you know how it would be possible to retrieve these datas ?

All the best.