ncping - Network Control
Overview
ncping is a Bash script designed for periodic pinging of specified hosts. It also provides functionality to manage host groups, cron jobs, and configuration.
Installation
Prerequisites
- Bash
- nano - used for configuring and viewing log files
Steps
- Clone the repository or download the script files.
git clone https://github.com/samuli100/Network-Control- Navigate to the script directory.
cd Network-Control- Run the installation script.
sudo bash install.shThis script installs ncping and its dependencies, sets up cron jobs, and creates necessary directories and files.
- Verify the installation.
ncping -hThis should display the help message, indicating a successful installation.
- Navigate to the script directory.
cd Network-Control- Run the uninstallation script.
sudo bash uninstall.shThis script removes ncping, its cron jobs, and associated files.
To configure the parameters, edit the configuration file:
ncping configTo view the log file:
ncping log- Add a host:
ncping addhost <IP-ADDRESS>- Delete a host:
ncping delhost <IP-ADDRESS>- View saved hosts:
ncping -l- Create or update a cron job:
ncping ccron <MINUTES>- Delete a cron job:
ncping delcronTo view the man page:
man ncpingFor the German man page:
man ncping_gerWritten by Samuel Lindenfelser.
This script is open-source software licensed under the MIT license.