|
@@ -58,35 +58,36 @@ Ovidiu Sas
|
|
4.3. core.echo
|
|
4.3. core.echo
|
|
4.4. core.flags
|
|
4.4. core.flags
|
|
4.5. core.info
|
|
4.5. core.info
|
|
- 4.6. core.kill
|
|
|
|
- 4.7. core.printi
|
|
|
|
- 4.8. core.prints
|
|
|
|
- 4.9. core.ps
|
|
|
|
- 4.10. core.psx
|
|
|
|
- 4.11. core.pwd
|
|
|
|
- 4.12. core.shmmem
|
|
|
|
- 4.13. core.sockets_list
|
|
|
|
- 4.14. core.tcp_info
|
|
|
|
- 4.15. core.tcp_list
|
|
|
|
- 4.16. core.tcp_options
|
|
|
|
- 4.17. core.udp4_raw_info
|
|
|
|
- 4.18. core.uptime
|
|
|
|
- 4.19. core.version
|
|
|
|
- 4.20. core.ppdefines
|
|
|
|
- 4.21. core.modules
|
|
|
|
- 4.22. pkg.stats
|
|
|
|
- 4.23. pkg.info
|
|
|
|
- 4.24. stats.get_statistics
|
|
|
|
- 4.25. stats.fetch
|
|
|
|
- 4.26. stats.fetchn
|
|
|
|
- 4.27. stats.reset_statistics
|
|
|
|
- 4.28. stats.clear_statistics
|
|
|
|
- 4.29. system.listMethods
|
|
|
|
- 4.30. system.methodHelp
|
|
|
|
- 4.31. system.methodSignature
|
|
|
|
- 4.32. mod.mem_stats
|
|
|
|
- 4.33. mod.stats
|
|
|
|
- 4.34. mod.mem_statsx
|
|
|
|
|
|
+ 4.6. core.runinfo
|
|
|
|
+ 4.7. core.kill
|
|
|
|
+ 4.8. core.printi
|
|
|
|
+ 4.9. core.prints
|
|
|
|
+ 4.10. core.ps
|
|
|
|
+ 4.11. core.psx
|
|
|
|
+ 4.12. core.pwd
|
|
|
|
+ 4.13. core.shmmem
|
|
|
|
+ 4.14. core.sockets_list
|
|
|
|
+ 4.15. core.tcp_info
|
|
|
|
+ 4.16. core.tcp_list
|
|
|
|
+ 4.17. core.tcp_options
|
|
|
|
+ 4.18. core.udp4_raw_info
|
|
|
|
+ 4.19. core.uptime
|
|
|
|
+ 4.20. core.version
|
|
|
|
+ 4.21. core.ppdefines
|
|
|
|
+ 4.22. core.modules
|
|
|
|
+ 4.23. pkg.stats
|
|
|
|
+ 4.24. pkg.info
|
|
|
|
+ 4.25. stats.get_statistics
|
|
|
|
+ 4.26. stats.fetch
|
|
|
|
+ 4.27. stats.fetchn
|
|
|
|
+ 4.28. stats.reset_statistics
|
|
|
|
+ 4.29. stats.clear_statistics
|
|
|
|
+ 4.30. system.listMethods
|
|
|
|
+ 4.31. system.methodHelp
|
|
|
|
+ 4.32. system.methodSignature
|
|
|
|
+ 4.33. mod.mem_stats
|
|
|
|
+ 4.34. mod.stats
|
|
|
|
+ 4.35. mod.mem_statsx
|
|
|
|
|
|
List of Examples
|
|
List of Examples
|
|
|
|
|
|
@@ -138,35 +139,36 @@ Chapter 1. Admin Guide
|
|
4.3. core.echo
|
|
4.3. core.echo
|
|
4.4. core.flags
|
|
4.4. core.flags
|
|
4.5. core.info
|
|
4.5. core.info
|
|
- 4.6. core.kill
|
|
|
|
- 4.7. core.printi
|
|
|
|
- 4.8. core.prints
|
|
|
|
- 4.9. core.ps
|
|
|
|
- 4.10. core.psx
|
|
|
|
- 4.11. core.pwd
|
|
|
|
- 4.12. core.shmmem
|
|
|
|
- 4.13. core.sockets_list
|
|
|
|
- 4.14. core.tcp_info
|
|
|
|
- 4.15. core.tcp_list
|
|
|
|
- 4.16. core.tcp_options
|
|
|
|
- 4.17. core.udp4_raw_info
|
|
|
|
- 4.18. core.uptime
|
|
|
|
- 4.19. core.version
|
|
|
|
- 4.20. core.ppdefines
|
|
|
|
- 4.21. core.modules
|
|
|
|
- 4.22. pkg.stats
|
|
|
|
- 4.23. pkg.info
|
|
|
|
- 4.24. stats.get_statistics
|
|
|
|
- 4.25. stats.fetch
|
|
|
|
- 4.26. stats.fetchn
|
|
|
|
- 4.27. stats.reset_statistics
|
|
|
|
- 4.28. stats.clear_statistics
|
|
|
|
- 4.29. system.listMethods
|
|
|
|
- 4.30. system.methodHelp
|
|
|
|
- 4.31. system.methodSignature
|
|
|
|
- 4.32. mod.mem_stats
|
|
|
|
- 4.33. mod.stats
|
|
|
|
- 4.34. mod.mem_statsx
|
|
|
|
|
|
+ 4.6. core.runinfo
|
|
|
|
+ 4.7. core.kill
|
|
|
|
+ 4.8. core.printi
|
|
|
|
+ 4.9. core.prints
|
|
|
|
+ 4.10. core.ps
|
|
|
|
+ 4.11. core.psx
|
|
|
|
+ 4.12. core.pwd
|
|
|
|
+ 4.13. core.shmmem
|
|
|
|
+ 4.14. core.sockets_list
|
|
|
|
+ 4.15. core.tcp_info
|
|
|
|
+ 4.16. core.tcp_list
|
|
|
|
+ 4.17. core.tcp_options
|
|
|
|
+ 4.18. core.udp4_raw_info
|
|
|
|
+ 4.19. core.uptime
|
|
|
|
+ 4.20. core.version
|
|
|
|
+ 4.21. core.ppdefines
|
|
|
|
+ 4.22. core.modules
|
|
|
|
+ 4.23. pkg.stats
|
|
|
|
+ 4.24. pkg.info
|
|
|
|
+ 4.25. stats.get_statistics
|
|
|
|
+ 4.26. stats.fetch
|
|
|
|
+ 4.27. stats.fetchn
|
|
|
|
+ 4.28. stats.reset_statistics
|
|
|
|
+ 4.29. stats.clear_statistics
|
|
|
|
+ 4.30. system.listMethods
|
|
|
|
+ 4.31. system.methodHelp
|
|
|
|
+ 4.32. system.methodSignature
|
|
|
|
+ 4.33. mod.mem_stats
|
|
|
|
+ 4.34. mod.stats
|
|
|
|
+ 4.35. mod.mem_statsx
|
|
|
|
|
|
1. Overview
|
|
1. Overview
|
|
|
|
|
|
@@ -442,35 +444,36 @@ resetdebug();
|
|
4.3. core.echo
|
|
4.3. core.echo
|
|
4.4. core.flags
|
|
4.4. core.flags
|
|
4.5. core.info
|
|
4.5. core.info
|
|
- 4.6. core.kill
|
|
|
|
- 4.7. core.printi
|
|
|
|
- 4.8. core.prints
|
|
|
|
- 4.9. core.ps
|
|
|
|
- 4.10. core.psx
|
|
|
|
- 4.11. core.pwd
|
|
|
|
- 4.12. core.shmmem
|
|
|
|
- 4.13. core.sockets_list
|
|
|
|
- 4.14. core.tcp_info
|
|
|
|
- 4.15. core.tcp_list
|
|
|
|
- 4.16. core.tcp_options
|
|
|
|
- 4.17. core.udp4_raw_info
|
|
|
|
- 4.18. core.uptime
|
|
|
|
- 4.19. core.version
|
|
|
|
- 4.20. core.ppdefines
|
|
|
|
- 4.21. core.modules
|
|
|
|
- 4.22. pkg.stats
|
|
|
|
- 4.23. pkg.info
|
|
|
|
- 4.24. stats.get_statistics
|
|
|
|
- 4.25. stats.fetch
|
|
|
|
- 4.26. stats.fetchn
|
|
|
|
- 4.27. stats.reset_statistics
|
|
|
|
- 4.28. stats.clear_statistics
|
|
|
|
- 4.29. system.listMethods
|
|
|
|
- 4.30. system.methodHelp
|
|
|
|
- 4.31. system.methodSignature
|
|
|
|
- 4.32. mod.mem_stats
|
|
|
|
- 4.33. mod.stats
|
|
|
|
- 4.34. mod.mem_statsx
|
|
|
|
|
|
+ 4.6. core.runinfo
|
|
|
|
+ 4.7. core.kill
|
|
|
|
+ 4.8. core.printi
|
|
|
|
+ 4.9. core.prints
|
|
|
|
+ 4.10. core.ps
|
|
|
|
+ 4.11. core.psx
|
|
|
|
+ 4.12. core.pwd
|
|
|
|
+ 4.13. core.shmmem
|
|
|
|
+ 4.14. core.sockets_list
|
|
|
|
+ 4.15. core.tcp_info
|
|
|
|
+ 4.16. core.tcp_list
|
|
|
|
+ 4.17. core.tcp_options
|
|
|
|
+ 4.18. core.udp4_raw_info
|
|
|
|
+ 4.19. core.uptime
|
|
|
|
+ 4.20. core.version
|
|
|
|
+ 4.21. core.ppdefines
|
|
|
|
+ 4.22. core.modules
|
|
|
|
+ 4.23. pkg.stats
|
|
|
|
+ 4.24. pkg.info
|
|
|
|
+ 4.25. stats.get_statistics
|
|
|
|
+ 4.26. stats.fetch
|
|
|
|
+ 4.27. stats.fetchn
|
|
|
|
+ 4.28. stats.reset_statistics
|
|
|
|
+ 4.29. stats.clear_statistics
|
|
|
|
+ 4.30. system.listMethods
|
|
|
|
+ 4.31. system.methodHelp
|
|
|
|
+ 4.32. system.methodSignature
|
|
|
|
+ 4.33. mod.mem_stats
|
|
|
|
+ 4.34. mod.stats
|
|
|
|
+ 4.35. mod.mem_statsx
|
|
|
|
|
|
4.1. core.aliases_list
|
|
4.1. core.aliases_list
|
|
|
|
|
|
@@ -502,7 +505,11 @@ kamcmd core.arg
|
|
Verbose info, including version number, compile flags, compiler,
|
|
Verbose info, including version number, compile flags, compiler,
|
|
repository, hash
|
|
repository, hash
|
|
|
|
|
|
-4.6. core.kill
|
|
|
|
|
|
+4.6. core.runinfo
|
|
|
|
+
|
|
|
|
+ Runtime details like running version, uptime, ...
|
|
|
|
+
|
|
|
|
+4.7. core.kill
|
|
|
|
|
|
Kill the application.
|
|
Kill the application.
|
|
|
|
|
|
@@ -515,23 +522,23 @@ kamcmd core.arg
|
|
kamcmd core.kill
|
|
kamcmd core.kill
|
|
...
|
|
...
|
|
|
|
|
|
-4.7. core.printi
|
|
|
|
|
|
+4.8. core.printi
|
|
|
|
|
|
Returns the integers given as parameters.
|
|
Returns the integers given as parameters.
|
|
|
|
|
|
-4.8. core.prints
|
|
|
|
|
|
+4.9. core.prints
|
|
|
|
|
|
Returns the strings given as parameters.
|
|
Returns the strings given as parameters.
|
|
|
|
|
|
-4.9. core.ps
|
|
|
|
|
|
+4.10. core.ps
|
|
|
|
|
|
Returns the description of running processes.
|
|
Returns the description of running processes.
|
|
|
|
|
|
-4.10. core.psx
|
|
|
|
|
|
+4.11. core.psx
|
|
|
|
|
|
Returns the detailed description of running processes.
|
|
Returns the detailed description of running processes.
|
|
|
|
|
|
-4.11. core.pwd
|
|
|
|
|
|
+4.12. core.pwd
|
|
|
|
|
|
Print working directory.
|
|
Print working directory.
|
|
|
|
|
|
@@ -544,34 +551,34 @@ kamcmd core.kill
|
|
kamcmd core.pwd
|
|
kamcmd core.pwd
|
|
...
|
|
...
|
|
|
|
|
|
-4.12. core.shmmem
|
|
|
|
|
|
+4.13. core.shmmem
|
|
|
|
|
|
Returns shared memory info. It has an optional parameter that specifies
|
|
Returns shared memory info. It has an optional parameter that specifies
|
|
the measuring unit: b - bytes (default), k or kb, m or mb, g or gb.
|
|
the measuring unit: b - bytes (default), k or kb, m or mb, g or gb.
|
|
Note: when using something different from bytes, the value is
|
|
Note: when using something different from bytes, the value is
|
|
truncated.
|
|
truncated.
|
|
|
|
|
|
-4.13. core.sockets_list
|
|
|
|
|
|
+4.14. core.sockets_list
|
|
|
|
|
|
Returns the list of local SIP server listen sockets.
|
|
Returns the list of local SIP server listen sockets.
|
|
|
|
|
|
-4.14. core.tcp_info
|
|
|
|
|
|
+4.15. core.tcp_info
|
|
|
|
|
|
Returns TCP related info.
|
|
Returns TCP related info.
|
|
|
|
|
|
-4.15. core.tcp_list
|
|
|
|
|
|
+4.16. core.tcp_list
|
|
|
|
|
|
Returns TCP connections details.
|
|
Returns TCP connections details.
|
|
|
|
|
|
-4.16. core.tcp_options
|
|
|
|
|
|
+4.17. core.tcp_options
|
|
|
|
|
|
Returns active TCP options.
|
|
Returns active TCP options.
|
|
|
|
|
|
-4.17. core.udp4_raw_info
|
|
|
|
|
|
+4.18. core.udp4_raw_info
|
|
|
|
|
|
Returns udp4_raw mode related info.
|
|
Returns udp4_raw mode related info.
|
|
|
|
|
|
-4.18. core.uptime
|
|
|
|
|
|
+4.19. core.uptime
|
|
|
|
|
|
Print uptime.
|
|
Print uptime.
|
|
|
|
|
|
@@ -584,7 +591,7 @@ kamcmd core.pwd
|
|
kamcmd core.uptime
|
|
kamcmd core.uptime
|
|
...
|
|
...
|
|
|
|
|
|
-4.19. core.version
|
|
|
|
|
|
+4.20. core.version
|
|
|
|
|
|
Print version information.
|
|
Print version information.
|
|
|
|
|
|
@@ -597,7 +604,7 @@ kamcmd core.uptime
|
|
kamcmd core.version
|
|
kamcmd core.version
|
|
...
|
|
...
|
|
|
|
|
|
-4.20. core.ppdefines
|
|
|
|
|
|
+4.21. core.ppdefines
|
|
|
|
|
|
List preprocessor defines enabled in config.
|
|
List preprocessor defines enabled in config.
|
|
|
|
|
|
@@ -610,7 +617,7 @@ kamcmd core.version
|
|
kamcmd core.ppdefines
|
|
kamcmd core.ppdefines
|
|
...
|
|
...
|
|
|
|
|
|
-4.21. core.modules
|
|
|
|
|
|
+4.22. core.modules
|
|
|
|
|
|
List loaded modules in config.
|
|
List loaded modules in config.
|
|
|
|
|
|
@@ -623,7 +630,7 @@ kamcmd core.ppdefines
|
|
kamcmd core.modules
|
|
kamcmd core.modules
|
|
...
|
|
...
|
|
|
|
|
|
-4.22. pkg.stats
|
|
|
|
|
|
+4.23. pkg.stats
|
|
|
|
|
|
Print private memory (pkg) usage statistics per process. It can take
|
|
Print private memory (pkg) usage statistics per process. It can take
|
|
optionally a filter to print statistics only for a specific process or
|
|
optionally a filter to print statistics only for a specific process or
|
|
@@ -641,14 +648,14 @@ kamcmd core.modules
|
|
kamcmd pkg.stats rank 1
|
|
kamcmd pkg.stats rank 1
|
|
kamcmd pkg.stats index 10
|
|
kamcmd pkg.stats index 10
|
|
|
|
|
|
-4.23. pkg.info
|
|
|
|
|
|
+4.24. pkg.info
|
|
|
|
|
|
Get pkg manager details.
|
|
Get pkg manager details.
|
|
|
|
|
|
Example:
|
|
Example:
|
|
kamcli rpc pkg.info
|
|
kamcli rpc pkg.info
|
|
|
|
|
|
-4.24. stats.get_statistics
|
|
|
|
|
|
+4.25. stats.get_statistics
|
|
|
|
|
|
Print the list of available internal statistics.
|
|
Print the list of available internal statistics.
|
|
|
|
|
|
@@ -668,7 +675,7 @@ kamcmd core.modules
|
|
kamcmd stats.get_statistics unsupported_methods
|
|
kamcmd stats.get_statistics unsupported_methods
|
|
kamcmd stats.get_statistics shmem: fwd_requests fwd_replies
|
|
kamcmd stats.get_statistics shmem: fwd_requests fwd_replies
|
|
|
|
|
|
-4.25. stats.fetch
|
|
|
|
|
|
+4.26. stats.fetch
|
|
|
|
|
|
Print the list of available internal statistics with a more json
|
|
Print the list of available internal statistics with a more json
|
|
friendly output. Each printed statistic is a field in the output
|
|
friendly output. Each printed statistic is a field in the output
|
|
@@ -688,7 +695,7 @@ kamcmd core.modules
|
|
kamcmd stats.fetch shmem.free_size
|
|
kamcmd stats.fetch shmem.free_size
|
|
kamcmd stats.fetch shmem: fwd_requests fwd_replies
|
|
kamcmd stats.fetch shmem: fwd_requests fwd_replies
|
|
|
|
|
|
-4.26. stats.fetchn
|
|
|
|
|
|
+4.27. stats.fetchn
|
|
|
|
|
|
Print the list of available internal statistics with a more json
|
|
Print the list of available internal statistics with a more json
|
|
friendly output. Each printed statistic is a field in the output
|
|
friendly output. Each printed statistic is a field in the output
|
|
@@ -708,7 +715,7 @@ kamcmd core.modules
|
|
kamcmd stats.fetchn shmem.free_size
|
|
kamcmd stats.fetchn shmem.free_size
|
|
kamcmd stats.fetchn shmem: fwd_requests fwd_replies
|
|
kamcmd stats.fetchn shmem: fwd_requests fwd_replies
|
|
|
|
|
|
-4.27. stats.reset_statistics
|
|
|
|
|
|
+4.28. stats.reset_statistics
|
|
|
|
|
|
Reset internal statistics.
|
|
Reset internal statistics.
|
|
|
|
|
|
@@ -720,7 +727,7 @@ kamcmd core.modules
|
|
kamcmd stats.reset_statistics unsupported_methods
|
|
kamcmd stats.reset_statistics unsupported_methods
|
|
kamcmd stats.reset_statistics shmem: fwd_requests fwd_replies
|
|
kamcmd stats.reset_statistics shmem: fwd_requests fwd_replies
|
|
|
|
|
|
-4.28. stats.clear_statistics
|
|
|
|
|
|
+4.29. stats.clear_statistics
|
|
|
|
|
|
Return statistics and reset their value in one command.
|
|
Return statistics and reset their value in one command.
|
|
|
|
|
|
@@ -732,7 +739,7 @@ kamcmd core.modules
|
|
kamcmd stats.reset_statistics unsupported_methods
|
|
kamcmd stats.reset_statistics unsupported_methods
|
|
kamcmd stats.reset_statistics shmem: fwd_requests fwd_replies
|
|
kamcmd stats.reset_statistics shmem: fwd_requests fwd_replies
|
|
|
|
|
|
-4.29. system.listMethods
|
|
|
|
|
|
+4.30. system.listMethods
|
|
|
|
|
|
Print list of available RPC commands.
|
|
Print list of available RPC commands.
|
|
|
|
|
|
@@ -745,15 +752,15 @@ kamcmd core.modules
|
|
kamcmd system.listMethods
|
|
kamcmd system.listMethods
|
|
...
|
|
...
|
|
|
|
|
|
-4.30. system.methodHelp
|
|
|
|
|
|
+4.31. system.methodHelp
|
|
|
|
|
|
Print the help string for given method.
|
|
Print the help string for given method.
|
|
|
|
|
|
-4.31. system.methodSignature
|
|
|
|
|
|
+4.32. system.methodSignature
|
|
|
|
|
|
Returns signature of given method.
|
|
Returns signature of given method.
|
|
|
|
|
|
-4.32. mod.mem_stats
|
|
|
|
|
|
+4.33. mod.mem_stats
|
|
|
|
|
|
Print private(pkg) or shared(shm) memory currently allocated a given
|
|
Print private(pkg) or shared(shm) memory currently allocated a given
|
|
module or by all modules.
|
|
module or by all modules.
|
|
@@ -798,12 +805,12 @@ loc
|
|
Total: 864
|
|
Total: 864
|
|
}
|
|
}
|
|
|
|
|
|
-4.33. mod.stats
|
|
|
|
|
|
+4.34. mod.stats
|
|
|
|
|
|
Same as RPC command "mod.mem_stats", this is an alias command to
|
|
Same as RPC command "mod.mem_stats", this is an alias command to
|
|
preserve backward compatibility.
|
|
preserve backward compatibility.
|
|
|
|
|
|
-4.34. mod.mem_statsx
|
|
|
|
|
|
+4.35. mod.mem_statsx
|
|
|
|
|
|
Similar to RPC command "mod.mem_stats", but the output has an extended
|
|
Similar to RPC command "mod.mem_stats", but the output has an extended
|
|
format, printing info that includes the allocated size and the count of
|
|
format, printing info that includes the allocated size and the count of
|