NameL3ss

Info

May 15th, 2015
420
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo "*********************************************"
  3. ost=$(uname -o)
  4. echo -e "\nOS :" $ost
  5.  
  6. arq=$(uname -m)
  7. echo -e "\nArquitectura de CPU :" $arq
  8.  
  9.  
  10. OS=$(cat /etc/*release |grep "PRETTY_NAME" |cut -f2 -d\")
  11. echo -e "\nNombre de tu Distro: " $OS
  12.  
  13. kernelr=$(uname -r)
  14. echo -e "\nVersion del Kernel" $kernelr
  15.  
  16. host=$(cat /etc/hostname)
  17. echo -e "\nTu Hostname :" $host
  18.  
  19. ipi=$(ifconfig | grep 192 | awk '{print $2}')
  20. echo -e "\nIp Privada :" $ipi
  21.  
  22. ipe=$(curl -s http://ipwhats.appspot.com/ )
  23. echo -e "\nIp Publica :" $ipe
  24.  
  25.  
  26. name=$(cat /etc/resolv.conf|grep 'nameserver'| awk '{print $2}')
  27. echo -e "\nTu Nameserver :"
  28. echo "$name"
  29.  
  30. who=$(who)
  31. echo -e "\nUsuarios logeados :"
  32. echo "$who"
  33.  
  34. ram=$(free -t -m -o |grep "Mem"| awk '{print "total: "$2 "\nen uso :" $3}')
  35. echo -e "\nMemory Ram:"
  36. echo "$ram"
  37.  
  38. swap=$(free -m |grep Swap |awk '{print "total " $2 "\nusada " $3}')
  39. echo -e "\nSwap : "
  40. echo "$swap"
  41.  
  42. hdd=$(df -h |grep /dev/sd |awk '{print "\nparticion :" $1 " \ntotal " $2 "\nusados " $3 "\ndisponible " $4 "\nparticion montada en " $6}')
  43. echo -e "\n\nFylesystem:"
  44. echo "$hdd"
  45.  
  46.  
  47. repo=$(cat /etc/apt/sources.list |grep -v '#' >> repos.txt)
  48. echo -e "\nLos Repositorios que estas utilizando quedaron en : $PWD"/repos.txt""
  49. echo "$repo"
  50.  
  51. soft=$(dpkg --get-selections >> software.txt)
  52. echo -e "\nTu lista de software instalado esta en: $PWD"/software.txt""
  53.  
  54. dat=$(date |awk '{print "\nHoy es " $1 " "$3 " de " $2 " del año "$6 "\nson las: "$4 " hrs" }')
  55. echo -e "$dat" "\nSaludos "$USER "!!!!!"
  56.  
  57. echo -e "\n************************************************* ;)"
RAW Paste Data