{ "info": { "author": "Deepak Kumar", "author_email": "jamal.shahverdiev@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "**********************************************************************************\nIf MAC address table of Cisco switches is changed, then send email notification!!!\n**********************************************************************************\n\n.. image:: https://img.shields.io/codecov/c/github/codecov/example-python.svg\n\nPython script to send email about MAC address changes.\n\n* **switchnotificator.py** - Script authenticate with in Cisco switches and compare MAC address list from **StaticMacs** file with ``outdir/MAC.result`` file. If MAC address not found then, email will be send to defined Network Administrator for the security reason.\n* **createstaticmacs.py** - Script checks **StaticMacs** file. If file exists and empty or doesn't exists it will create it.\n* **iplist** - This file must contain IP address list of Cisco switches.\n* To configure gmail settings just edit **frommail**, **fromemailpass**, **tomail** variables in the ``lib/varsfuncs.py`` file.\n\n\n=====\nUsage\n=====\n\nRequirements:\n Python2.7 or Python3.4 with ``paramiko`` must be installed:\n\n\nReplace e-mail addresses and password indicated in the ``switchnotificator.py`` file with yours.\n\nSyntax:\n\n.. code-block:: bash\n\n # git clone https://github.com/jamalshahverdiev/python-general-codes.git\n # cd python-general-codes/switch-notificator\n # ./switchnotificator.py switchusername 'switch_long_password' vlanID\n..\n\n\n* If you want use ``switchnotificator.py`` script automatically every minute, just add the following line to your crontab file::\n\n * * * * * /root/switch-notificator/switchnotificator.py switchusername 'switch_long_password' vlanID\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jamalshahverdiev/python-general-codes.git", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "switchnotify", "package_url": "https://pypi.org/project/switchnotify/", "platform": "", "project_url": "https://pypi.org/project/switchnotify/", "project_urls": { "Homepage": "https://github.com/jamalshahverdiev/python-general-codes.git" }, "release_url": "https://pypi.org/project/switchnotify/0.1/", "requires_dist": null, "requires_python": "", "summary": "Package to find rogued person in the enterprise Cisco network", "version": "0.1" }, "last_serial": 5138164, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8f32a2519676ac44353bd92f36d9b5d2", "sha256": "5d558d314d88511418d4d5e3cf10df9266ca6c3331704a66b0616e2ec35dcc38" }, "downloads": -1, "filename": "switchnotify-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "8f32a2519676ac44353bd92f36d9b5d2", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3532, "upload_time": "2019-04-13T13:56:44", "url": "https://files.pythonhosted.org/packages/f8/17/9d492d12f821f5f9da83beb156a71d37f9f29fac43844955e1015b4856e0/switchnotify-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79c97e27fa2d478b41d3f573abd7538a", "sha256": "e25223f8ac99efb826f3c15faac25d7968ca7b32cb464ec90cb879e61bf24466" }, "downloads": -1, "filename": "switchnotify-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "79c97e27fa2d478b41d3f573abd7538a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5031, "upload_time": "2019-04-13T13:56:46", "url": "https://files.pythonhosted.org/packages/28/54/65121e68bc987684d2e94cf2831fff9f18493b72475b9f958cd1d5eb7ab9/switchnotify-0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8f32a2519676ac44353bd92f36d9b5d2", "sha256": "5d558d314d88511418d4d5e3cf10df9266ca6c3331704a66b0616e2ec35dcc38" }, "downloads": -1, "filename": "switchnotify-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "8f32a2519676ac44353bd92f36d9b5d2", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3532, "upload_time": "2019-04-13T13:56:44", "url": "https://files.pythonhosted.org/packages/f8/17/9d492d12f821f5f9da83beb156a71d37f9f29fac43844955e1015b4856e0/switchnotify-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79c97e27fa2d478b41d3f573abd7538a", "sha256": "e25223f8ac99efb826f3c15faac25d7968ca7b32cb464ec90cb879e61bf24466" }, "downloads": -1, "filename": "switchnotify-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "79c97e27fa2d478b41d3f573abd7538a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5031, "upload_time": "2019-04-13T13:56:46", "url": "https://files.pythonhosted.org/packages/28/54/65121e68bc987684d2e94cf2831fff9f18493b72475b9f958cd1d5eb7ab9/switchnotify-0.1-py3-none-any.whl" } ] }