-
Notifications
You must be signed in to change notification settings - Fork 0
/
sysinfo.sh
executable file
·128 lines (121 loc) · 5.85 KB
/
sysinfo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/bash
clear
# sysinfo.sh
# Test File To Pull Back System Data For Testing
#
# Created by LaVelton R. Carroway
#
bold=`tput bold`
normal=`tput sgr0`
echo "${bold}System Configuration v1.46"
echo ""
echo "${bold}Date: ${normal}" && date
echo ""
echo "${bold}System: ${normal}" && uname -a
echo ""
echo "${bold}Hostname: ${normal}" && hostname
echo ""
echo "${bold}Uptime: ${normal}" && uptime
echo ""
echo "${bold}Disk Space: ${normal}" && df -h
echo ""
echo "${bold}Disk Type: ${normal}" && mount
echo ""
echo "${bold}Active Processes: ${normal}" && ps -a
echo ""
echo "${bold}Pull My Finger: ${normal}" && finger -l
echo ""
echo "${bold}Networking Info: ${normal}" && ifconfig #| grep "inet"
echo ""
echo "${bold}Networking Hardware Ports Info: ${normal}" && networksetup -listallhardwareports
echo ""
#echo "${bold}NetBIOS Info: ${normal}" && nmblookup -V
#echo ""
echo "${bold}Apache Info: ${normal}" && httpd -v
echo ""
echo "${bold}MySQL Info: ${normal}" && mysql --version
echo ""
echo "${bold}SQLite Info: ${normal}" && sqlite3 -version
echo ""
echo "${bold}PostgreSQL Info (Postgres.app): ${normal}" && psql -V
echo ""
echo "${bold}Perl Info: ${normal}" && perl -v
echo ""
echo "${bold}Python Info: ${normal}" && python --version
echo ""
echo "${bold}Ruby Info: ${normal}" && ruby --version
echo ""
echo "${bold}Java Info: ${normal}" && java -version
echo ""
echo "${bold}PHP Info: ${normal}" && php -v
echo ""
echo "${bold}Mono Framework Info: ${normal}" && mono -V
echo ""
echo "${bold}Git Info: ${normal}" && git --version
echo ""
echo "${bold}MacPort Info: ${normal}" && port version
echo ""
#echo "${bold}MacRuby Info: ${normal}" && macruby --version
#echo ""
echo "${bold}Apple Xcode Info: ${normal}" && xcodebuild -version
echo ""
echo "${bold}Apple Xcode SDKs Info: ${normal}" && xcodebuild -showsdks
echo ""
echo "${bold}Apple Xcode Swift Info: ${normal}" && xcrun swift -version
echo ""
echo "${bold}LLVM (Low Level Virtual Machine) Compiler Info: ${normal}" && llvm-gcc --version
echo ""
#echo "${bold}Clang Compiler Info: ${normal}" && clang --version
#echo ""
#echo "${bold}NVIDIA Cuda Compiler Info: ${normal}" && nvcc -V
#echo ""
echo "${bold}GNU Project Debugger Info: ${normal}" && ggdb -version
echo ""
echo "${bold}Mono C# Compiler Info: ${normal}" && mcs --version
echo ""
echo "${bold}F# Interactive CLI Info: ${normal}" && fsharpi --help | grep "Interactive for"
echo ""
echo "${bold}Android Debug Bridge Info: ${normal}" && adb version
echo ""
echo "${bold}Node.js Info: ${normal}" && node -v
echo ""
echo "${bold}Npm (Node.js) Info: ${normal}" && npm --version
echo ""
#strAZUREVERSION=$(azure | grep "Tool version")
#echo "${bold}Windows Azure Info: ${normal}" && printf "${strAZUREVERSION:9}\n"
echo "${bold}Windows Azure Info: ${normal}" && azure -v
echo ""
#strDOTNETVERSION=$(dotnet --version | grep "Version :")
#echo "${bold}Microsoft .NET Core Shared Framework Host Info: ${normal}" && printf "${strDOTNETVERSION:2}\n"
echo "${bold}Microsoft .NET Core Shared Framework Host Info: ${normal}" && dotnet --version
echo ""
echo "${bold}GnuPG Info: ${normal}" && gpg2 --version
echo ""
echo "${bold}Scala Info: ${normal}" && scala -version
echo ""
echo "${bold}Rust Info: ${normal}" && rustc --version
echo ""
echo "${bold}Haskell Platform Info: ${normal}" && ghc --version; cabal --version; haddock --version
echo ""
echo "${bold}Docker Info: ${normal}" && docker -v
echo ""
echo "${bold}Docker Compose Info: ${normal}" && docker-compose version
echo ""
echo "${bold}Docker Machine Info: ${normal}" && docker-machine version
echo ""
echo "${bold}================================================= ${normal}"
echo "${bold}SQLite Info (System): ${normal}" && /usr/bin/sqlite3 -version
echo ""
echo "${bold}PostgreSQL Info (OS X Server): ${normal}" && /Applications/Server.app/Contents/ServerRoot/usr/bin/psql -V
echo ""
echo "${bold}Perl Info (System): ${normal}" && /usr/bin/perl -v
echo ""
echo "${bold}PHP Info (System): ${normal}" && /usr/bin/php -v
echo ""
echo "${bold}Python Info (System): ${normal}" && /usr/bin/python --version
echo ""
echo "${bold}Ruby Info (System): ${normal}" && /usr/bin/ruby --version
echo ""
echo "${bold}Java Info (System): ${normal}" && /Library/Java/Home/bin/java -version
echo ""
exit 0