From dcaa5f5c4e910acfd692a654b8c8f3eb641a8bbd Mon Sep 17 00:00:00 2001 From: LiamHarding <129413403+LiamHarding@users.noreply.github.com> Date: Thu, 30 Mar 2023 09:44:33 -0600 Subject: [PATCH 01/11] Update sys_stats.sh --- sys_stats.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys_stats.sh b/sys_stats.sh index 66dc9c7..0ec0e4a 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -8,6 +8,9 @@ # Try to make the output for each file look as neat and organized as you can. # Output the following information to a file called kernel + +#uname + # 1. Kernel Name # 2. Kernel Release # 3. Kernel Version From ff684d531a70392faf25ac1bef3ff797967403a2 Mon Sep 17 00:00:00 2001 From: LiamHarding <129413403+LiamHarding@users.noreply.github.com> Date: Thu, 30 Mar 2023 09:59:23 -0600 Subject: [PATCH 02/11] Update sys_stats.sh --- sys_stats.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys_stats.sh b/sys_stats.sh index 0ec0e4a..a2d1ec4 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -11,6 +11,12 @@ #uname +# 1. uname +# 2. uname -r +# 3. uname -v +# 4. uname -o + + # 1. Kernel Name # 2. Kernel Release # 3. Kernel Version From 93551f9bf307a2706d0824d9345957084aeb82b4 Mon Sep 17 00:00:00 2001 From: Cupresssoides <129413651+Cupresssoides@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:03:08 -0600 Subject: [PATCH 03/11] Update sys_stats.sh added numbered tasks and divided up the work --- sys_stats.sh | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/sys_stats.sh b/sys_stats.sh index 0ec0e4a..7694da8 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -3,13 +3,20 @@ #************************************# #******* OUTPUT SYSTEM STATS ********# #************************************# +# part 1 and 2 will be Liam +# part 3 and 4 will be Joseph +# part 5 and 6 will be Tom + +# All output will be stored in ~/Documents/System_Stats # Make a directory called System_Stats and change directories to that directory # Try to make the output for each file look as neat and organized as you can. -# Output the following information to a file called kernel +# 1 Output the following information to a file called kernel + + -#uname +# uname # 1. Kernel Name # 2. Kernel Release @@ -17,27 +24,27 @@ # 4. The operating system -# Output the following information to a file called network +# 2 Output the following information to a file called network # 1. Do not print any serial numbers or sensitive information related to the system # 2. All network interfaces -# Output the following information to a file called disk.html +# 3 Output the following information to a file called disk.html # 1. All disks # 2. The output should include html tags, i.e. -# Output the following information to a file called cpu +# 4 Output the following information to a file called cpu # 1. The first five lines of the command lscpu # 2. The last 12 lines of the command lscpu -# Output the following information to a file called block_dev +# 5 Output the following information to a file called block_dev # 1. Only the name, size, and type of the block devices # 2. The output should use ascii characters for any tree formatting -# Output the following information to a file called sata +# 6 Output the following information to a file called sata # 1. Any Sata devices connected to the machine along with human readable sizes of the devices # 2. More specific information about each device that is connected to the machine From ca953e370f063cd5983fbe972291bfaa1c0a6c99 Mon Sep 17 00:00:00 2001 From: Cupresssoides <129413651+Cupresssoides@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:04:03 -0600 Subject: [PATCH 04/11] Update sys_stats.sh --- sys_stats.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_stats.sh b/sys_stats.sh index 7694da8..2ad4aec 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -16,7 +16,7 @@ -# uname + # uname # 1. Kernel Name # 2. Kernel Release From 80eaf7bf9670d94e63358f7f6ad9365519714739 Mon Sep 17 00:00:00 2001 From: Cupresssoides <129413651+Cupresssoides@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:05:58 -0600 Subject: [PATCH 05/11] Update sys_stats.sh --- sys_stats.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys_stats.sh b/sys_stats.sh index 4d8f437..7b1c459 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -18,10 +18,10 @@ # uname -# 1. uname -# 2. uname -r -# 3. uname -v -# 4. uname -o + # 1. uname + # 2. uname -r + # 3. uname -v + # 4. uname -o # 1. Kernel Name From f91ece2efc90719ad4d18a467b1512bf9c8cf3e0 Mon Sep 17 00:00:00 2001 From: LiamHarding <129413403+LiamHarding@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:10:31 -0600 Subject: [PATCH 06/11] Update sys_stats.sh --- sys_stats.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys_stats.sh b/sys_stats.sh index 7b1c459..c5669ea 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -18,10 +18,10 @@ # uname - # 1. uname - # 2. uname -r - # 3. uname -v - # 4. uname -o + # 1. uname = Shows kernel name + # 2. uname -r Shows current kernel release date + # 3. uname -v Shows current kernel Version + # 4. uname -o Shows kernel operating system # 1. Kernel Name From 9035f2910aa502de2c44df60a5143a15c4b8e115 Mon Sep 17 00:00:00 2001 From: Cupresssoides <129413651+Cupresssoides@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:54:59 -0600 Subject: [PATCH 07/11] Update sys_stats.sh more formatting and part 5 done --- sys_stats.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys_stats.sh b/sys_stats.sh index 7b1c459..01dabe5 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -8,6 +8,8 @@ # part 5 and 6 will be Tom # All output will be stored in ~/Documents/System_Stats +mkdir -p ~/Documents/System_Stats # if system stats +cd ~/Documents/System_Stats # Make a directory called System_Stats and change directories to that directory # Try to make the output for each file look as neat and organized as you can. @@ -48,9 +50,14 @@ # 5 Output the following information to a file called block_dev # 1. Only the name, size, and type of the block devices # 2. The output should use ascii characters for any tree formatting +touch block_dev +lsblk -i -o 'SIZE,NAME,TYPE' > block_dev # 6 Output the following information to a file called sata # 1. Any Sata devices connected to the machine along with human readable sizes of the devices # 2. More specific information about each device that is connected to the machine + + + From c4d7a643e227cd2466857d62529b41627a138168 Mon Sep 17 00:00:00 2001 From: Cupresssoides <129413651+Cupresssoides@users.noreply.github.com> Date: Mon, 3 Apr 2023 14:23:47 -0600 Subject: [PATCH 08/11] Update sys_stats.sh --- sys_stats.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sys_stats.sh b/sys_stats.sh index b5e928b..eedab25 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -56,6 +56,7 @@ lsblk -i -o 'SIZE,NAME,TYPE' > block_dev # 6 Output the following information to a file called sata # 1. Any Sata devices connected to the machine along with human readable sizes of the devices +lsscsi -s | grep -i sata > sata # 2. More specific information about each device that is connected to the machine From 2d0ec1a0d3a9229f80de004111dbe84173f1b5a8 Mon Sep 17 00:00:00 2001 From: Cupresssoides <129413651+Cupresssoides@users.noreply.github.com> Date: Thu, 6 Apr 2023 09:08:39 -0600 Subject: [PATCH 09/11] Update sys_stats.sh --- sys_stats.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys_stats.sh b/sys_stats.sh index eedab25..53163ac 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -50,13 +50,17 @@ cd ~/Documents/System_Stats # 5 Output the following information to a file called block_dev # 1. Only the name, size, and type of the block devices # 2. The output should use ascii characters for any tree formatting + touch block_dev lsblk -i -o 'SIZE,NAME,TYPE' > block_dev # 6 Output the following information to a file called sata # 1. Any Sata devices connected to the machine along with human readable sizes of the devices + +touch sata lsscsi -s | grep -i sata > sata + # 2. More specific information about each device that is connected to the machine From 50bb22050836c360b9e7d1efda529217bf7ddbe3 Mon Sep 17 00:00:00 2001 From: Cupresssoides <129413651+Cupresssoides@users.noreply.github.com> Date: Thu, 6 Apr 2023 09:39:06 -0600 Subject: [PATCH 10/11] Update sys_stats.sh --- sys_stats.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys_stats.sh b/sys_stats.sh index 53163ac..4dcd29f 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -62,6 +62,8 @@ touch sata lsscsi -s | grep -i sata > sata # 2. More specific information about each device that is connected to the machine + +sudo hdparm /dev/sda* >> sata From 7cad37240cd4f0feff67b86a6d3ce045dd60c501 Mon Sep 17 00:00:00 2001 From: LiamHarding <129413403+LiamHarding@users.noreply.github.com> Date: Thu, 6 Apr 2023 10:03:12 -0600 Subject: [PATCH 11/11] Update sys_stats.sh --- sys_stats.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/sys_stats.sh b/sys_stats.sh index 4dcd29f..60504ff 100644 --- a/sys_stats.sh +++ b/sys_stats.sh @@ -17,13 +17,14 @@ cd ~/Documents/System_Stats # 1 Output the following information to a file called kernel +touch kernel - # uname - - # 1. uname = Shows kernel name - # 2. uname -r Shows current kernel release date - # 3. uname -v Shows current kernel Version - # 4. uname -o Shows kernel operating system +uname # Shows kernel name +uname # Shows current kernel release date +uname > kernel # Shows current kernel Version +uname -r >> kernel +uname -v >> kernel +uname -o >> kernel # 1. Kernel Name @@ -35,6 +36,7 @@ cd ~/Documents/System_Stats # 2 Output the following information to a file called network # 1. Do not print any serial numbers or sensitive information related to the system # 2. All network interfaces +ifconfig -s > network # 3 Output the following information to a file called disk.html @@ -50,20 +52,14 @@ cd ~/Documents/System_Stats # 5 Output the following information to a file called block_dev # 1. Only the name, size, and type of the block devices # 2. The output should use ascii characters for any tree formatting - touch block_dev lsblk -i -o 'SIZE,NAME,TYPE' > block_dev # 6 Output the following information to a file called sata # 1. Any Sata devices connected to the machine along with human readable sizes of the devices - -touch sata lsscsi -s | grep -i sata > sata - # 2. More specific information about each device that is connected to the machine - -sudo hdparm /dev/sda* >> sata