Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ History and Statistics tuptime use tools to view Linux server system boot time     - MySQL and MariaDB traditional master-slave cluster configuration (Database)

- Arronax allows you to easily create desktop startup file (Linux)

- J2EE Example of Filter (Programming)

- Build ASP.NET 5 development environment in Ubuntu (Server)

- error no.2013 lost connection Tom with SQLServer during query (Database)

- Diagnose and resolve the SSH connection slow (Linux)

- Install and configure GO 1.2.1 under CentOS 6.5 (Linux)

- Java Annotation Comments (Programming)

- 30 minutes with your Quick Start MySQL Tutorial (Database)

- Create several practical points of high security PHP site (Linux)

- Realization of Linux operating system illegal IP censorship (Linux)

- SSH port forwarding application (Server)

- History of the most complex validation e-mail address regular expression (Linux)

- On event processing browser compatibility notes (Programming)

- Android project and coding specifications (Programming)

- Installation and configuration to compile MySQL 5.6.10 under CentOS 5.9 (Database)

- Eight kinds of techniques to solve hard problems Linux (Linux)

- HashMap in Android and Java different implementations (Programming)

- Linux 4.0+ kernel support for hardware switching module (HW Switch Offload) (Linux)

- Use smem visual display Linux memory usage (Linux)

 
         
  History and Statistics tuptime use tools to view Linux server system boot time
     
  Add Date : 2018-11-21      
         
         
         
  You can use the following tools to view Linux or Unix-like systems running how long:

uptime: Tell your server running a long time.
lastt: Display the reboot and shutdown times.
tuptime: run-time and historical reporting system run-time statistics, which means that the running time between restart. And uptime command is similar, but the output is more interesting.
Find the last restart the system time and date

You can use the following command to get the Linux operating system, restart and shut down the last time and date (on OSX / Unix-like system can also be used):

### Display system restart and shutdown time
who-b
lastreboot
lastshutdown
### Power Information
uptime
cat / proc / uptime
awk '{print "up" $ 1/60 "minutes"}' / proc / uptime
w

Server boot time for finding multiple Linux commands

With tuptime asked to say hello

tuptime command-line tool can report the following information based on the Linux system:

Starts statistical system
Register first start time (ie installation time)
Normal shutdown and accidental shutdown statistics
The average boot time and downtime
Current boot time
Start-up and downtime rate for the first time since the start
Accumulation system uptime, downtime and total
Report every time you start, boot time, shutdown and downtime
installation

Enter the following command to clone the git repository to a Linux system:

$ Cd / tmp
$ Gitclone https://github.com/rfrail3/tuptime.git
$ Ls
$ Cd tuptime
$ Ls

Clone git repository

Make sure you install Python v2.7 with sys, optparse, os, re, string, sqlite3, datetime, disutils and locale module.

You can be installed like this:

$ Sudo tuptime-install.sh
Alternatively, you can manually install (or based on systemd systemd):

$ Sudocp / tmp / tuptime / latest / cron.d / tuptime /etc/cron.d/tuptime
If the system is systemd, copying files and enable the service:

$ Sudocp / tmp / tuptime / latest / systemd / tuptime.service / lib / systemd / system /
$ Sudosystemctl enable tuptime.service
If the system is not systemd, copying the initialization file:

$ Sudocp / tmp / tuptime / latest / init.d / tuptime.init.d-debian7 /etc/init.d/tuptime
$ Sudo update-rc.d tuptime defaults
run

Simply enter the following command:

$ Sudo tuptime

tuptime work

After a kernel update, I restart the system, and then enter the same command again:

$ Sudo tuptime
System startups: 2 since 03:52:16 PM 08/21/2015
System shutdowns: 1 ok -0 bad
Averageuptime: 7 days, 16 hours, 48 minutes and3 seconds
Average downtime: 2 hours, 30 minutes and5 seconds
Currentuptime: 5 minutes and28 seconds since 06:23:06 AM 09/06/2015
Uptime rate: 98.66%
Downtime rate: 1.34%
Systemuptime: 15 days, 9 hours, 36 minutes and7 seconds
System downtime: 5 hours, 0 minutes and11 seconds
System life: 15 days, 14 hours, 36 minutes and18 seconds
You may like this modification date and time format:

$ Sudo tuptime -d '% H:% M:% S% m-% d-% Y'
Sample output:

System startups: 1 since 15: 52: 1608-21-2015
System shutdowns: 0 ok -0 bad
Averageuptime: 15 days, 9 hours, 21 minutes and19 seconds
Average downtime: 0 seconds
Currentuptime: 15 days, 9 hours, 21 minutes and19 seconds since 15: 52: 1608-21-2015
Uptime rate: 100.0%
Downtime rate: 0.0%
Systemuptime: 15 days, 9 hours, 21 minutes and19 seconds
System downtime: 0 seconds
System life: 15 days, 9 hours, 21 minutes and19 seconds
Count each boot, boot time, shutdown and downtime:

$ Sudo tuptime -e
Sample output:

Startup: 1 at 03:52:16 PM 08/21/2015
Uptime: 15 days, 9 hours, 22 minutes and33 seconds
System startups: 1 since 03:52:16 PM 08/21/2015
System shutdowns: 0 ok -0 bad
Averageuptime: 15 days, 9 hours, 22 minutes and33 seconds
Average downtime: 0 seconds
Currentuptime: 15 days, 9 hours, 22 minutes and33 seconds since 03:52:16 PM 08/21/2015
Uptime rate: 100.0%
Downtime rate: 0.0%
Systemuptime: 15 days, 9 hours, 22 minutes and33 seconds
System downtime: 0 seconds
System life: 15 days, 9 hours, 22 minutes and33 seconds
     
         
         
         
  More:      
 
- Linux compiler installation Redis (Database)
- Fedora 22 how to play rmvb mp4 mkv video files (Linux)
- Java deserialization test (Programming)
- Build their own recursive DNS server (Server)
- Oracle database on the hit rate of query summary (Database)
- The array of C language (Programming)
- Linux installation notes under GAMIT (Linux)
- Ubuntu 14.04 solved using MyEclipse 10.7 flash back (Linux)
- To solve the Mac in question invalid BASH under configuration environment variable (Linux)
- There is sort of a directed acyclic graph topology (Programming)
- Linux memory management -free learning experience (Linux)
- Linux system security audit tools scan nessus installation tutorial (Linux)
- Use Aptik Battery Monitor monitoring Ubuntu laptop battery usage (Linux)
- Getting CentOS Learning Notes (Linux)
- PHP CURL get cookies simulated login (Database)
- 12 novice Linux command must learn (Linux)
- Ubuntu iptables prevent IP attacks (Linux)
- Ubuntu 12.04 installed OpenCV 2.3.1, binary image (Linux)
- Vi (Vim) keyboard map and its basic commands (Linux)
- Linux tar compressed exclude a folder (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.