473,387 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

script

77
Shell script requirements

When the “system status report” script is invoked the user should be presented with a menu. This will provide a list of options allowing the user to decide what the report should contain. The resultant text file report can be e-mailed or faxed to the technical support team.

Your system status report script should enable the following information to be output to the screen and/or a text file report plus any additional information that you consider useful:

General machine information

* The name of the machine and the date/time at which the report was produced.
* Licensing information such as the operating system revision level and license restrictions in terms of user numbers
* When was the system last rebooted.

Machine hardware/software information

* Current hardware
* Disk size, RAM size and utilisation
* Installed software
* The number of processes currently running on the machine and information about those processes.
* The configuration and usage of the UNIX file systems.

Network related information

* IP address
* Subnet mask
* Network Interface Card physical address
* The current status of the NIC.
* Details held in the /etc/hosts
* Is the machine able to connect to (i.e. ping) a specified list of IP addresses stored in a configuration file.

User related information

* Details of valid system users (e.g. their ID number and the group(s) that they belong to).
* The number of users currently “logged on” and information about those users.
* Details of those users who currently have an account but are not logged on.
* Details of when valid system users last logged on.

can anyone help
Mar 27 '07 #1
3 1981
Motoma
3,237 Expert 2GB
Create a shell script with a menu system that responds to options. Then query the /proc file structure to get the desired information. Use sed and awk, along wtih regular expressions to get the information you desire. Alternatively, you may be able to get away with grep. Once you have your data, parse/pipe it to a file.

Shell script requirements

When the “system status report” script is invoked the user should be presented with a menu. This will provide a list of options allowing the user to decide what the report should contain. The resultant text file report can be e-mailed or faxed to the technical support team.

Your system status report script should enable the following information to be output to the screen and/or a text file report plus any additional information that you consider useful:

General machine information

* The name of the machine and the date/time at which the report was produced.
* Licensing information such as the operating system revision level and license restrictions in terms of user numbers
* When was the system last rebooted.

Machine hardware/software information

* Current hardware
* Disk size, RAM size and utilisation
* Installed software
* The number of processes currently running on the machine and information about those processes.
* The configuration and usage of the UNIX file systems.

Network related information

* IP address
* Subnet mask
* Network Interface Card physical address
* The current status of the NIC.
* Details held in the /etc/hosts
* Is the machine able to connect to (i.e. ping) a specified list of IP addresses stored in a configuration file.

User related information

* Details of valid system users (e.g. their ID number and the group(s) that they belong to).
* The number of users currently “logged on” and information about those users.
* Details of those users who currently have an account but are not logged on.
* Details of when valid system users last logged on.

can anyone help
Mar 27 '07 #2
Mubs
77
Create a shell script with a menu system that responds to options. Then query the /proc file structure to get the desired information. Use sed and awk, along wtih regular expressions to get the information you desire. Alternatively, you may be able to get away with grep. Once you have your data, parse/pipe it to a file.

i do not knw where to start

i am new at linux
Mar 27 '07 #3
Motoma
3,237 Expert 2GB
A good start would be to Google some shell scripting tutorials.
Mar 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
1
by: bayouprophet | last post by:
Cant get menu script to to put linked page in the same frame. I am new to Java and I am wondering what am I doing wrong? below are my java applet file, frame.html file, and my text file and one...
1
by: Allen | last post by:
I am trying to add an additional photo/hyperlink to the company web site (I didn't create it) without any luck. The mouseover feature 'highlights' pics by swapping them with another pic using this...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.