blob: 66c59f18a4195de55bbdaed6ad7b8c0137a13199 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# System dump script
Dump various system informations into base64 encoded values and print them as json.
# Usage
Run a dump:
> ./sysdump.sh > dump.json
Run a dump on a remote machine using ssh:
> cat sysdump.sh | ssh user@host /bin/bash > dump.json
Explore a dump (require `jq`):
> ./sysdump.sh dump.json
Explore specific entries of a dump:
> ./sysdump.sh dump.json uname timezone
# Notes
- To get available entries see into `sysdump.sh`
- Some commands require root permissions.
If `sysdump.sh` is not run as root, these commands will not be executed.
# Useful entries
| Entry | Description |
|---------|-----------------------------|
| compgen | List all available commands |
|