Current Version: 0.1.4
This tool can ben scheduled to run daily with cron or Windows Task Scheduler to send notfications in case there's any network serivce port stopped working. Work proactively to ensure the fulfillment of your SLA!
It would reduce work load significantly when doing UAT test after a major network change or power outage!
git clone https://github.com/AutomationAI/nshreport.git
Click here to download Window executable file
Tested on Windows 10. Other versions of Windows especially Windows Servers haven't been tested! Let me know if you have issues on other versions of Windows.
Click here to download debian executable file
Tested on Debian 10 & Ubuntu 20. Other versions of Linux haven't been tested! Let me know if you have issues on other versions of Linux.
Currently don't have a mac to generate the Mac executables.
Step 2: Open a command window, run nshreport.py (developer), ./nshreport (linux) or nshreport.exe (windows) first time
A configured file will be create under your user home foler. Below is the screenshot from linux machine, for the windows, the location is different, you can find it on screen when you run it.
You can ignore this step if you don't need to send notifications or want to use command line arguments
Sample configuration file:
Step 4: (Optional) Create an address file to test with the format as below. In this example we call it ip_port_list
You can ignore this step if you don't need to use -f argument to scan all the addresses all at once
./nshreport -a www.google.com:443
result:
./nshreport -f ip_port_list -n
result:
nshreport -h
nshreport -a <ip>:<port>
Above Step 4 is required to continue from here
nshreport -f <file> -v
nshreport -f <file> -n -r <recipient> -s <sender> -m <smtp_server>
Above Step 3 is required to continue from here
nshreport -f <file> -n
- Allow empty lines in ip_port_list file
- Allow comments start with # or // in ip_port_list file
- Allow both space and : in ip_port_list file
- Add flag -V as the short option of --version
- Allow hythen '-' in the domain name
- Add flag -v for verbose