Advertisement
Guest User

Untitled

a guest
Feb 13th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. copy/paste from perl-based backup script
  2.  
  3. # all unix-like hosts
  4. @conf_commands_common = (
  5. 'dmesg',
  6. 'ifconfig -a',
  7. 'netstat -in',
  8. 'netstat -rn',
  9. 'uname -a',
  10. 'uptime'
  11. );
  12.  
  13. # all linux regardless of distro
  14. @conf_commands_linux = (
  15. 'iptables --list -n',
  16. 'cat /proc/cpuinfo',
  17. 'cat /proc/meminfo',
  18. 'free -m',
  19. 'lsmod',
  20. 'ps -ef',
  21. 'journalctl -xn',
  22. 'sysctl -a',
  23. 'systemctl',
  24. 'top -b -n 1',
  25. 'who -r'
  26. );
  27.  
  28. @conf_commands_debian = (
  29. 'dpkg -l'
  30. );
  31.  
  32. @conf_commands_centos = (
  33. 'rpm -qa'
  34. );
  35.  
  36. @conf_commands_openbsd = (
  37. 'pfctl -sr',
  38. 'sysctl',
  39. 'who',
  40. 'top -b',
  41. 'ps aux',
  42. 'pkg_info'
  43. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement