Rubycon is a CLI for managing Source dedicated game servers (TF2, CS:S...). Think of it as a HSLW clone, but terminal-based.
Features:
Follow this gem on Twitter.
Make sure you're on Ruby 2.0 or later (ruby --version
).
You'll also need readline:
yum install readline-devel
apt-get install libreadline-dev
Install rubycon with the following command:
$ gem install rubycon
First of all, add a game server to rubycon:
$ rubycon add my_server \
--address=192.168.0.1 \
--rcon=foobar
Time to check out how your server is doing:
$ rubycon list
Server Map Players Ping
my_server ctf_2fort 4/25 42
Hop into a rcon session:
$ rubycon console my_server
Use CTRL+D to exit.
> sta
star_memory startdemos startmovie startupmenu stats status
> status
hostname: MyServer
version : 1797820/24 5331 secure
udp/ip : 192.168.0.1:27015 (public ip: 192.168.0.1)
account : not logged in (No account specified)
map : ctf_2fort at: 0 x, 0 y, 0 z
sourcetv: port 27020, delay 90.0s
players : 0 (25 max)
# userid name uniqueid connected ping loss state adr
>
Need stats from all your servers? Yes sir:
$ rubycon execute --command=stats --all
my_server:
CPU In (KB/s) Out (KB/s) Uptime Map changes FPS Players Connects
0.00 0.00 0.00 5093 7 62.44 0 1
---------------------------------
Need further help?
$ rubycon help
$ rubycon help execute
$ rubycon help rm
...
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)rubycon is released under the MIT License.