Package to find rogued person in the enterprise Cisco network
Project description
If MAC address table of Cisco switches is changed, then send email notification!!!
.. image:: https://img.shields.io/codecov/c/github/codecov/example-python.svg
Python script to send email about MAC address changes.
- switchnotificator.py - Script authenticate with in Cisco switches and compare MAC address list from StaticMacs file with
outdir/MAC.resultfile. If MAC address not found then, email will be send to defined Network Administrator for the security reason. - createstaticmacs.py - Script checks StaticMacs file. If file exists and empty or doesn't exists it will create it.
- iplist - This file must contain IP address list of Cisco switches.
- To configure gmail settings just edit frommail, fromemailpass, tomail variables in the
lib/varsfuncs.pyfile.
===== Usage
Requirements:
Python2.7 or Python3.4 with paramiko must be installed:
Replace e-mail addresses and password indicated in the switchnotificator.py file with yours.
Syntax:
.. code-block:: bash
# git clone https://github.com/jamalshahverdiev/python-general-codes.git
# cd python-general-codes/switch-notificator
# ./switchnotificator.py switchusername 'switch_long_password' vlanID
..
-
If you want use
switchnotificator.pyscript automatically every minute, just add the following line to your crontab file::-
-
-
-
- /root/switch-notificator/switchnotificator.py switchusername 'switch_long_password' vlanID
-
-
-
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file switchnotify-0.1-py3-none-any.whl.
File metadata
- Download URL: switchnotify-0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e25223f8ac99efb826f3c15faac25d7968ca7b32cb464ec90cb879e61bf24466
|
|
| MD5 |
79c97e27fa2d478b41d3f573abd7538a
|
|
| BLAKE2b-256 |
285465121e68bc987684d2e94cf2831fff9f18493b72475b9f958cd1d5eb7ab9
|
File details
Details for the file switchnotify-0.1-py2-none-any.whl.
File metadata
- Download URL: switchnotify-0.1-py2-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d558d314d88511418d4d5e3cf10df9266ca6c3331704a66b0616e2ec35dcc38
|
|
| MD5 |
8f32a2519676ac44353bd92f36d9b5d2
|
|
| BLAKE2b-256 |
f8179d492d12f821f5f9da83beb156a71d37f9f29fac43844955e1015b4856e0
|