Skip to content

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Clone the repository or download the script files.
git clone https://github.com/samuli100/Network-Control
  1. Navigate to the script directory.
cd Network-Control
  1. Run the installation script.
sudo bash install.sh

This script installs ncping and its dependencies, sets up cron jobs, and creates necessary directories and files.

  1. Verify the installation.
ncping -h

This should display the help message, indicating a successful installation.

Uninstallation

  1. Navigate to the script directory.
cd Network-Control
  1. Run the uninstallation script.
sudo bash uninstall.sh

This script removes ncping, its cron jobs, and associated files.

Usage

Configuration

To configure the parameters, edit the configuration file:

ncping config

View Log

To view the log file:

ncping log

Manage Hosts

  • Add a host:
ncping addhost <IP-ADDRESS>
  • Delete a host:
ncping delhost <IP-ADDRESS>
  • View saved hosts:
ncping -l

Cron Jobs

  • Create or update a cron job:
ncping ccron <MINUTES>
  • Delete a cron job:
ncping delcron

Man Pages

To view the man page:

man ncping

For the German man page:

man ncping_ger

Author

Written by Samuel Lindenfelser.

License

This script is open-source software licensed under the MIT license.

About

script that lets the user check if hosts are active

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages