Skip to content
Fran0616 edited this page Jul 26, 2020 · 2 revisions

Welcome to the LAN-monitoring wiki!

Summary

A host monitoring is a great tool to help monitor a Local Area Network (LAN). It works by sending an ICMP echo request to the network host. It automates the network troubleshooting process and makes it more efficient for a user.

Goal

  1. Automate the pinging process by adding every printer hostname into the script.
  2. Help to make network troubleshooting more efficient.

How it works?

  1. The computer will send an Internet Control Message Protocol (ICMP) echo request on the network to the host and this will be picked up by the router.
  2. The router will route the ICMP to the host, and wait for a reply.
  3. If the host is available it will respond to the request and let the router know that it's available. a. If the host isn’t available the router will acknowledge that it received no packet back.
  4. The router will send the result back to the computer letting it know if the host is up or down.

Specification

Below are some specifications that help to develop this script.

Python is a powerful and fast high level computer language. It is friendly and easy to learn. It can be used for everything from web development to software development and scientific applications.

IDLE

IDLE is python’s integrated development and learning environment. Its main features are multi-window text editor with syntax highlighting, auto completion, smart indent and more. It also has an integrated debugger with stepping, persistent breakpoints, and call stack visibility.

Ping

Ping is a command line utility that allows a user to verify a host's availability. It works by sending an Internet Control Message Protocol (ICMP) echo request to a specified interface on a network, it then waits for a reply. Ping can also be used for troubleshooting to test connectivity and determine response time.
The command ping can be used with syntax to help filter out results. One syntax that works with ping is ‘-c’. This syntax specifies the amount of echo requests to send. Example of a ping: ‘ping -c1 google.com’ The example above will ping the hostname google.com one time. If the syntax does not specify the amount of echo request then the request will echo an infinite amount of ICMP.

Shell Script

A shell script is a text file that contains one or more UNIX commands. This is useful because you can combine many tasks in a script, this will help a user save a ton of time.

Terminal

The terminal application allows you to control the Mac using command prompt. It can be used to run shell scripts.

Clone this wiki locally