wlan-ap-Telecominfraproject/feeds/wlan-ap/opensync/files/bin/wlan_ap_crashlog.sh
John Crispin 1b168a811e opensync: add kernel crash detection
This feature makes use of the crashlog driver in the kernel. If we experience
an oops, the kernel will store the stack trace inside /sys/kernel/debug/crashlog.
OpenSync will then add an entry to the Alarms table. The could can then retrieve
the crashlog via the Command_config table.

A crash can be simulated with
   echo c > /proc/sysrq-trigger

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00

4 lines
170 B
Bash
Executable File

#!/bin/sh
/usr/opensync/tools/ovsh insert Command_Config command:="crashlog" delay:=5 timestamp:=123 payload:="[\"map\",[[\"ul_url\",\"http://192.168.178.9/upload\"]]]"