Get grep.exe and wc.exe for windows at unxutils.sourceforge.net. Create two batch files as below and setup a scheduled task for count.bat.
list.bat
quser /server:citrixaquser /server:citrixbquser /server:citrixc(add more servers)
count.bat
list.bat | grep Active | wc -l > tempcopy a+temp+b /b count.htmlcopy count.html /b c:\inetpub\www
The files a and b are just some simple html. I now have a simple banner like below that is updated every five minutes.
Citrix Active 34
No comments:
Post a Comment