Remaining examples.

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-04-29 15:35:29 +02:00
parent 503855c53b
commit b0566e14a1
4 changed files with 90 additions and 9 deletions
+9 -9
View File
@@ -16,26 +16,26 @@
# limitations under the License.
#
kroute add '/list/files' -c 'ls -la $(request /param/path) | response /body'
kroute add /list/files -c 'ls -la $(request /param/path) | response /body'
kroute add '/list/processes' -c 'ps -aux | response /body'
kroute add /list/processes -c 'ps -aux | response /body'
kroute add '/show/cpuinfo' -c 'response /body < /proc/cpuinfo'
kroute add /show/cpuinfo -c 'response /body < /proc/cpuinfo'
kroute add '/show/memory' -c 'free -m | response /body'
kroute add /show/memory -c 'free -m | response /body'
kroute add '/show/disk' -c 'df -h | response /body'
kroute add /show/disk -c 'df -h | response /body'
kroute add '/show/connections' -c 'ss -pluton | response /body'
kroute add /show/connections -c 'ss -pluton | response /body'
kroute add '/show/mounts' -c 'mount | response /body'
kroute add /show/mounts -c 'mount | response /body'
kroute add '/tail/dmesg' - <<-'EOF'
kroute add /tail/dmesg - <<-'EOF'
response /header/Content-Type text/plain
dmesg -w | response /stream
EOF
kroute add '/tail/journal' - <<-'EOF'
kroute add /tail/journal - <<-'EOF'
response /header/Content-Type text/plain
journalctl -f | response /stream
EOF