vaporup / ssh-tools

Making SSH more convenient
GNU General Public License v3.0
889 stars 27 forks source link

Added uptime and last_reboot to ssh-facts. #3

Closed vwugd97 closed 6 years ago

vwugd97 commented 6 years ago

Output will look like this:

$ ./ssh-facts dmeiswinkel@192.168.0.109
dmeiswinkel@192.168.0.109's password: 
OS=debian
OS_VERSION=9.2
UPTIME=0 days, 0 hours, 17 minutes
LAST_REBOOT=Nov 8 18:39:46 2017
CPU_CORES=1
CPU_SOCKETS=1
HOSTNAME=debian-server
KERNEL_NAME=Linux
MACHINE=x86_64
MACHINE_TYPE=virtual_by_virtualbox
MEMORY=4051048
INIT=systemd
LSB_CODENAME=stretch
LSB_DESCRIPTION=Debian GNU/Linux 9.2 (stretch)
LSB_ID=Debian
LSB_RELEASE=9.2
vaporup commented 6 years ago

Thanks