BİLKENT UNIVERSITY
DEPARTMENT OF COMPUTER TECHNOLOGY AND PROGRAMMING
CTP203 Operating Systems Spring 2000 LAB ASSIGNMENT # 7 |
|
Instructor : Can Uğur AyferAssistant : Ece Yargı |
Date : 10-11April 2000Week : 10 |
1
The UNIX “ping” command is used to check whether a TCP/IP host is accessible on the network.e.g the command “ping 139.179.40.2” returns the message “139.179.40.2 is alive” if the host with IP number 139.179.40.2 is reachable on the TCP/IP network.
1
The UNIX “nslookup” performs a name server lookup (search) for the given IP number to find the name of the host (if there is such a host).These command files are both located in /usr/sbin directory on host gunes.ctp.bilkent.edu.tr.
Try these commands manually and see what kind of output they produce and write a Perl script to report status for the following critical hosts of Bilkent Network:
139.179.40.1
139.179.40.2
139.179.89.2
139.179.10.13
139.179.10.6
It MUST be easy to add/remove to/from the list of hosts in this script.
The report that your script produces should be like something :
Host Status Name ============= ============= ========== 139.179.40.1 Up/Running temel.ctp.bilkent.edu.tr 139.179.40.2 Down cisco7010.ctp.bilkent.edu.tr etc etc etc etc