Since 2.0.5
dubbo starts supporting to use telnet command to govern services.
telnet localhost 20880
Or:
echo status | nc -i 1 localhost 20880
It is possible to extend command status
to check more resources, pls. refer to extension references for more details.
The built-in telnet commands are listed below. Furthermore, it is possible to extend telnet commands, pls. refer to extend telnet command for more details.
ls
ls
: list servicesls -l
: list services in more detailsls XxxService
: list methods for the particular servicels -l XxxService
: list methods for the particular service in more dtailsps
ps
: list service portsps -l
: list service addressesps 20880
: show connection info for the particular portps -l 20880
: show connection info for the particular port in more detailscd
cd XxxService
: switch default service. When default service is set, service parameter can be ignored in all commands when it's neededcd /
: reset default servicepwd
pwd
: show what current default service is
trace
trace XxxService
: trace method invocation once for the given servicetrace XxxService 10
: trace method invocations 10 times for the given servicetrace XxxService xxxMethod
: trace particular method invocation once for the given servicetrace XxxService xxxMethod 10
: trace particular method invocations 10 times for the given servicecount
count XxxService
: count method invocation once for the given servicecount XxxService 10
: count method invocations 10 times for the given servicecount XxxService xxxMethod
: count particular method invocation once for the given servicecount XxxService xxxMethod 10
: count particular method invocation 10 times for the given serviceinvoke
invoke XxxService.xxxMethod({"prop": "value"})
: invoke particular method for the given serviceinvoke xxxMethod({"prop": "value"})
: invoke particular method for the default servicestatus
status
: show summarized status. This status summarizes statuses from all resources, and it shows OK when all resources are OK, shows ERROR when any resource has ERROR, and WARN when any has WARN.status -l
: show status listlog
[^1]log debug
: modify logger level to debuglog 100
: examine the last 100 characters from the file loggerhelp
help
: show help for telnet commandshelp xxx
: 显示xxx命令的详细帮助信息help xxx
: show help for particular telnet commandclear
clear
: clear screenclear 100
: only clear particular lines on the screenexit
exit
: exit current telnet session
[^1]: support since 2.0.6