SHARE
TWEET

Untitled

a guest Mar 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##DESCARGA NTP
  2. sudo apt install ntp
  3. sudo apt install ntpstat
  4.  
  5. ##LEVANTA EL SERVICIO
  6. service ntp start -x
  7. /etc/init.d/ntp start
  8.  
  9. ##CHEQUEA RESULTADO DE CONEXION
  10. result=$(ntpstat);
  11. conected=$( echo $result | awk '{print $1}')
  12. if [ $conected = "synchronised" ]
  13. then
  14.   echo "Conectado correctamente"
  15. else
  16.   echo "Fallo la conexión"
  17. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top