Listing Live System Status

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Listing Live System Status
# 1  
Old 10-30-2012
Error Listing Live System Status

1. Edit a script named update.sh that generates status.html in your web directory: ~/public_html/.
I need to write specific commands to show each specific item
2. The generated webpage should include information related to:
UNIX : kernel version of ed-lab server
USER : number of users on the server and who they are
PROCESS : what is the first (oldest) root's process, and when it started
NETWORK : IP address of eth0 interface and its MAC address
ROUTE : what is the default route of ed-lab server
LAN : how many other machines are there in ed-lab server's local area network (LAN)? what are their IP/MAC mappings?
CONNECTION : how many TCP connections
UPDATE : when is the system information last updated


Relevant:
uname, who, route, ifconfig, hostname, and more



I've already completed the kernel version and the number of users, but I am having a lot of difficulty figuring out what switches to use with the certain commands.



UMass Amherst, Amherst, MA, United States, Robert Walls and Yung Chih Chen, CS197U
# 2  
Old 10-31-2012
Some of the commands are proprietary or have special options - based on what Unix/Linux you have. So- before anyone can help:

1. What OS?
2. What shell are you using to write your code?
# 3  
Old 10-31-2012
I'm using Windows 7 as my OS but I'm accessing Unix through ssh onto a remote server. I'm using tcsh as the shell
# 4  
Old 10-31-2012
What UNIX? Linux, Solaris, HPUX, BSD, FreeBSD, SCO ....?
When connected to the UNIX box please post the output of:

Code:
uname -a

Thanks.
# 5  
Old 10-31-2012
Oh hahaha sorry about that I should have known, I'm getting way too stressed over this assignment but I'm using Linux

---------- Post updated at 11:00 PM ---------- Previous update was at 10:33 PM ----------

Sorry it was Linux
# 6  
Old 10-31-2012
OK.
What specifcally do you have a problem with? You said you have done some steps, so there must be others that are a problem.
# 7  
Old 10-31-2012
The problems as of right now that I am having difficulty with are:
1. finding the first process and the date it started( i know it has to do with init but i can't find out how to find a command that only prints the name of the process and another command that prints out the date)
2. Using a command that shows only the MAC address as the output
3. Using a command that shows the default route of the server I am on
4. Using a command that finds the number of LAN connections on the server
5. And a command showing the IP/MAC mappings of each of the LAN connected computers
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

Status of Badging System - Beta 1

Dear All, Here is the current status of the badging system: The Beta 1 phase of the new badging system is close to completion. 42 prototype badges have been "allocated" 6 prototype badge slots are held in reserve The "alert you have new badges" prototype is running and is currently... (4 Replies)
Discussion started by: Neo
4 Replies

2. Shell Programming and Scripting

file system status mail notifications

HI I want to get an e-mail @ my yahoo address when the file system used space gets more than 89% , & the message contents must be the outputs of df -g errpt netstat -i ??????? (3 Replies)
Discussion started by: majd_ece
3 Replies

3. Solaris

svc:/system/filesystem/local is always in maintenance status

Hello Friends, I need to change network filesystem status as online but it always seems in maintenance mode, I appreciate your any suggestion to change its state as online. shell>svcadm enable svc:/system/filesystem/local shell>svcs -l svc:/system/filesystem/local fmri ... (4 Replies)
Discussion started by: EAGL€
4 Replies

4. Shell Programming and Scripting

Hide status value from awk system command

Hi, When i use the system( ) function inside a awk, i am getting the ouput with a 0 appended in a new line. Can someone guide me to eliminate the extra line containing 0. Ex : awk -F"|" '{print system("convert.sh" $1}' The output is displayed with 0 in a new line. ... (8 Replies)
Discussion started by: muruganksk
8 Replies

5. Infrastructure Monitoring

SNMP OID for System Status LED's

I am trying to locate the proper MIB and OID location, to determine if the system attention light is on IBM-702x servers running 5.x. Currently, we get this on our Blade Centers Management Modules at location: 1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.7.xx were xx is the actual Blade number. A value of 1... (0 Replies)
Discussion started by: stamfdf
0 Replies

6. Shell Programming and Scripting

System status query script

Hi, I am trying to access and read certain lines from a configuration XML file on multiple servers (within the LAN). Fortunately the file name and path is always the same for all servers. An example extract of the file is as follows: <DUMMY-SMSC>false</DUMMY-SMSC> ... (2 Replies)
Discussion started by: jaz8212
2 Replies

7. AIX

listing the whole system by filesize

Hi, Just wondered what command you would use to list all the files on Aix by filesize? I've tried a few but none of which seem to do the trick! Currently running du -m -a . | sort -rn | more as root Thanks, Matt. (1 Reply)
Discussion started by: elmesy
1 Replies

8. Shell Programming and Scripting

system status report script

hi i m new to this forum as well as UNIX. I've got an assignment but i don't know how can I start it. can anyone please help to tell me how can I start it? I added here few lines from my assignment. In industry, it is common for a single organisation to provide technical support for a... (0 Replies)
Discussion started by: moco
0 Replies

9. UNIX for Dummies Questions & Answers

Listing all links in a file system

How would one find and list all links in a file system? My situation is that I built several servers for disaster recovery, mirror images of several servers in our main location. Instead of doing a "ls -l" on every file system down the /usr structor to verify that I have all the necessary links... (3 Replies)
Discussion started by: ruger14
3 Replies
Login or Register to Ask a Question