Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- copy/paste from perl-based backup script
- # all unix-like hosts
- @conf_commands_common = (
- 'dmesg',
- 'ifconfig -a',
- 'netstat -in',
- 'netstat -rn',
- 'uname -a',
- 'uptime'
- );
- # all linux regardless of distro
- @conf_commands_linux = (
- 'iptables --list -n',
- 'cat /proc/cpuinfo',
- 'cat /proc/meminfo',
- 'free -m',
- 'lsmod',
- 'ps -ef',
- 'journalctl -xn',
- 'sysctl -a',
- 'systemctl',
- 'top -b -n 1',
- 'who -r'
- );
- @conf_commands_debian = (
- 'dpkg -l'
- );
- @conf_commands_centos = (
- 'rpm -qa'
- );
- @conf_commands_openbsd = (
- 'pfctl -sr',
- 'sysctl',
- 'who',
- 'top -b',
- 'ps aux',
- 'pkg_info'
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement