Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ffbs
ffbs-packages
Commits
7419e02c
Commit
7419e02c
authored
10 months ago
by
Jan Luebbe
Browse files
Options
Downloads
Patches
Plain Diff
nodeconfig: add collect-debug-info script
parent
ab47f0d7
No related branches found
No related tags found
1 merge request
!2
add script to collect debug information
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gluon-ffbsnext-nodeconfig/files/usr/bin/collect-debug-info
+53
-0
53 additions, 0 deletions
gluon-ffbsnext-nodeconfig/files/usr/bin/collect-debug-info
with
53 additions
and
0 deletions
gluon-ffbsnext-nodeconfig/files/usr/bin/collect-debug-info
0 → 100755
+
53
−
0
View file @
7419e02c
#!/bin/sh
export
WG_COLOR_MODE
=
never
run_command
()
{
echo
">>>>>
$1
@
$(
date
-Iseconds
)
: Start >>>>>"
eval
"
$1
"
2>&1
echo
"<<<<<
$1
@
$(
date
-Iseconds
)
: Stop (exit=
$?
) <<<<<"
}
run_command
"uci get system.@system[0].pretty_hostname"
run_command
"status"
run_command
"ps w"
run_command
"ip addr"
run_command
"ip -4 route show"
run_command
"ip -6 route show"
run_command
"wg show"
run_command
"cat /tmp/gluon/wan-dnsmasq/resolv.conf"
run_command
"cat /tmp/state/network"
run_command
"dmesg"
run_command
"logread"
run_command
"uci show"
run_command
"free -h"
run_command
"df -h"
run_command
"cat /proc/version"
run_command
"cat /proc/meminfo"
run_command
"cat /proc/vmstat"
run_command
"cat /proc/cpuinfo"
run_command
"iptables -t filter -vnL"
run_command
"iptables -t mangle -vnL"
run_command
"iptables -t nat -vnL"
run_command
"ebtables-tiny -t filter -L"
run_command
"ebtables-tiny -t broute -L"
run_command
"ebtables-tiny -t nat -L"
run_command
"ip neigh"
run_command
"cat /proc/net/dev"
run_command
"cat /proc/interrupts"
for
cmd
in
interface backbonetable claimtable dat_cache gateways mcast_flags neighbors originators transglobal translocal
;
do
run_command
"batctl
$cmd
"
done
run_command
"iw phy"
run_command
"iw dev"
run_command
"iw reg get"
for
dev
in
client0 client1
;
do
run_command
"iw dev
$dev
survey dump"
run_command
"iw dev
$dev
station dump -v"
done
for
mesh
in
mesh0 mesh1
;
do
run_command
"iw dev
$mesh
station dump -v"
run_command
"iw dev
$mesh
mpath dump"
run_command
"iw dev
$mesh
mpp dump"
done
run_command
"cat /sys/kernel/debug/crashlog"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment