Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Kali Virtual Machine - Build a more advanced server monitoring and menu script: . Create a function that will find out the number of

In Kali Virtual Machine

- Build a more advanced server monitoring and menu script:

. Create a function that will find out the number of users on each machine and send it to the same file nuser.txt having a short header for each of the machines

. Create a script function that will find out the disk space used of the root folder on each machine and send it to the same file dskspace.txt having a header for each of the machines

- Create a main bash script named server-monitor.sh that:

. Print a header displaying your name and id and the name of the script o Provide menu options to choose from.

. The menus are:

1) Display user info

2) Display disk space

3) Exit

. If the user chooses option 1, the script will run the function that creates and prints nuser.txt

. If the user chooses option 2, the script will run the function that creates and prints dskspace.txt

. If the user chooses option 3, display a thank you message and exit.

. Make sure that the menu is within a loop such that as long as the user enters 1, or 2, they will be asked to enter the option.

- Provide the screenshot of the execution of your script. It would be best if you also used redirection to suppress the error when executing your server monitor script

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

4. Ignore small differences between scores.

Answered: 1 week ago