Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surajx/ip-change-notifier
This script takes the global IP of BSNL teracom router and checks if it has changed or not, if changed the script sends it to the specified mail ID
https://github.com/surajx/ip-change-notifier
Last synced: 9 days ago
JSON representation
This script takes the global IP of BSNL teracom router and checks if it has changed or not, if changed the script sends it to the specified mail ID
- Host: GitHub
- URL: https://github.com/surajx/ip-change-notifier
- Owner: surajx
- Created: 2011-09-08T11:33:04.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-23T15:11:38.000Z (almost 13 years ago)
- Last Synced: 2024-10-11T23:26:02.595Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Introduction
------------
This script takes the global IP of WAN interface in BSNL(India) TERACOM router and checks if it has changed or not. If changed the script sends the new IP addr to a predefined mail ID.Usage
-----
1.Edit the configuration file script.cfg and provide details pertaining to your router.
2.Provide an entry in /etc/crontab for executing the script every 15 mins. The entry will look like:
*/15 * * * * bash /getIP.sh
Eg: */15 * * * * surajx bash /home/surajx/bin/sendIP/getIP.shFile List
---------
getIP.sh - scripts file to be called by crontab every 15 min.
script.cfg - config file containting details required for getIP.sh to run.Generated Files
---------------
telnet.log - o/p obtained from TERACOM router.
prev_ip.ip - stores the current ip.(IMP file, needed for comparison when ip changes)
err.log - Error log generated by script can be found in this file.Dependencies
------------
telnet - required to connect to your ADSL router
expect - required to query the ADSL kernal to retrieve the IP
mailx - sends out mail to gmail (require configuration of ~/.mailrc and ~/.msmtprc)
msmtp - required for sending mailKnown Issues
------------
When the system is botted up and has still not connected to the access point. This tool will send out an entry string mail.