{ "info": { "author": "Toshikatsu Murakoshi", "author_email": "mtoshi.g@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System :: Networking", "Topic :: System :: Networking :: Monitoring", "Topic :: Utilities" ], "description": "===================================================\nrancidcmd\n===================================================\n\nRancidcmd is a utility tool for network operators.\nThis module is wrapper of RANCID login commands.(like cloing, jlogin ...)\nSo if you use this module, then you have to install RANCID in some way.\nWhy did I make this module? I wanted to do using without password of \".cloginrc\".\nThis Rancidcmd makes temporary \".clgoinrc\" from python code with each excecution.\nIf already \".clgoinrc\" is present, use \".clgoinrc\" with priority.\n\n.. image:: https://secure.travis-ci.org/mtoshi/rancidcmd.svg?branch=master\n :target: http://travis-ci.org/mtoshi/rancidcmd\n.. image:: https://coveralls.io/repos/mtoshi/rancidcmd/badge.svg?branch=coverall\n :target: https://coveralls.io/r/mtoshi/rancidcmd?branch=coverall\n.. image:: https://badge.fury.io/py/rancidcmd.svg\n :target: https://pypi.python.org/pypi/rancidcmd/\n :alt: Latest Version\n\nRequirements\n=============\n\n- Python 2.7, 3.4, 3.5, PyPy\n\n\nInstallation\n=============\n#. Please install the RANCID in advance.\n\n For CentOS ::\n\n $ yum install rancid\n\n For Debian, Ubuntu ::\n\n $ apt-get install rancid\n\n For MacOS X(Port) ::\n\n $ port install rancid\n\n#. After RANCID, please install Rancidcmd ::\n\n $ pip install rancidcmd\n \n or\n \n $ git clone https://github.com/mtoshi/rancidcmd\n $ cd rancidcmd\n $ sudo python setup.py install\n\n* Care of \"~/.cloginrc\" existence is not necessary.\n If executed user doesn't have \"~/.cloginrc\", then Rancidcmd makes temporary \".cloginrc\".\n If already \".clgoinrc\" is present, use \".clgoinrc\" with priority.\n\nUsing example\n==============\nExample for cisco(clogin). ::\n\n >>> from rancidcmd import RancidCmd\n >>> rancidcmd = RancidCmd(login='/usr/libexec/rancid/clogin',\n ... user='username',\n ... password='xxxx',\n ... enable_password='xxxx',\n ... address='192.168.1.1')\n >>> rancidcmd.execute(\"show version\")\n\nExample for junos(jlogin). ::\n\n >>> from rancidcmd import RancidCmd\n >>> rancidcmd = RancidCmd(login='/usr/libexec/rancid/jlogin',\n ... user='username',\n ... password='xxxx',\n ... address='192.168.1.2')\n >>> rancidcmd.execute(\"show version\")\n\nExample for Option (\"-d\" is enable debug mode and \"-t 45\" is timeout 45 seconds.). ::\n\n >>> from rancidcmd import RancidCmd\n >>> rancidcmd = RancidCmd(login='/usr/libexec/rancid/jlogin',\n ... user='username',\n ... password='xxxx',\n ... option='-d -t 45',\n ... address='192.168.1.2')\n >>> rancidcmd.execute(\"show version\")\n\nExample for command confirmation (you can use \"show\" method). ::\n\n >>> rancidcmd.show(\"show version\")\n /usr/libexec/rancid/clogin -u \"username\" -p \"xxxx\" -e \"xxxx\" -c \"show version\" 192.168.1.1\n \n # This show method will be useful for debug by hands.\n\nRancidCmd() init args. ::\n\n login (str): Login command is xlogin. (such as \"clogin, jlogin\")\n address (str): Host name or ip address.\n user (str): Login user name.\n password (str): Login user password.\n enable_password (str): Login user enable password.\n Default is None.(**clogin is must.**)\n option (str): Option is not must.\n Deafult is None.\n If you set this value to pass directly to clogin.\n encoding (str): Encoding type.\n Default is 'utf-8'.\n\nOutput format. ::\n\n {'rtn_code': int, 'std_err': str, 'std_out': str}\n\nOutput sucess sample. ::\n\n {'rtn_code': 0,\n 'std_err': '',\n 'std_out': '... Copyright (c) 2002-2013, Cisco Systems, Inc. All ...'}\n\nOutput error sample. (Not found \"clogin\") ::\n\n {'rtn_code': 1,\n 'std_err': '/bin/sh: clogin: command not fond\\n',\n 'std_out': ''}\n\nPlease see sample code.\n\n* https://github.com/mtoshi/rancidcmd/blob/master/samples/sample.py\n\n\nIf you want to use another settings(prompt, method, etc), please edit \".cloginrc\" same with previus.\n\nRecently almost network devices can use ssh login. If you use ssh to priority, then you should write below into \".cloginrc\". ::\n\n # All targets first action is ssh.\n add method * ssh telnet\n \n or\n \n # For specific targets.\n add method 192.168.1.* ssh telnet\n\nSee also\n=========\n* http://www.shrubbery.net/rancid/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mtoshi/rancidcmd", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "rancidcmd", "package_url": "https://pypi.org/project/rancidcmd/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rancidcmd/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mtoshi/rancidcmd" }, "release_url": "https://pypi.org/project/rancidcmd/0.1.12/", "requires_dist": null, "requires_python": null, "summary": "RANCID Command Wrapper.", "version": "0.1.12" }, "last_serial": 2685011, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "f5bd34c583d36d4eb39c03ab317cfba3", "sha256": "52c00844b662b6fb0ae14b919d4da9323e099091e484aba89fe7c79f271be07c" }, "downloads": -1, "filename": "rancidcmd-0.1.10.tar.gz", "has_sig": false, "md5_digest": "f5bd34c583d36d4eb39c03ab317cfba3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 104511, "upload_time": "2015-06-12T06:03:57", "url": "https://files.pythonhosted.org/packages/98/38/e71b7385bdf24839c71fcaff681d2529a8e783b9d3de63e53c7de479db31/rancidcmd-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "687f024b219072b52d3d5ae7a09dd3f3", "sha256": "b91b654099322091bf8c9d194ca271dda39104641ffbf4a0f5dba755eff16ad7" }, "downloads": -1, "filename": "rancidcmd-0.1.11.tar.gz", "has_sig": false, "md5_digest": "687f024b219072b52d3d5ae7a09dd3f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 67631, "upload_time": "2017-03-06T05:11:02", "url": "https://files.pythonhosted.org/packages/c3/ec/9895577141f5fa00c0c578be3eb653900922c29977435a046049021ecc36/rancidcmd-0.1.11.tar.gz" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "26c7bfd1d8192616f71edd55dd3bdcde", "sha256": "4e16fffe3637622de667220a2b82c99b14ed631ee6d494bf34d83791d6fbbe62" }, "downloads": -1, "filename": "rancidcmd-0.1.12.tar.gz", "has_sig": false, "md5_digest": "26c7bfd1d8192616f71edd55dd3bdcde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 67641, "upload_time": "2017-03-06T05:55:13", "url": "https://files.pythonhosted.org/packages/7e/2f/26def45b9ce29e980cbc99853e23a539177e23dbde88e3a02ce1a3e23922/rancidcmd-0.1.12.tar.gz" } ], "0.1.3": [], "0.1.4": [ { "comment_text": "", "digests": { "md5": "7abceec4e9da771b501d0b21c6ffe5b7", "sha256": "8f95a2a723f108617698536e8ef99f21c5dd0f494083d3ca68d559abfa2e360b" }, "downloads": -1, "filename": "rancidcmd-0.1.4-py3.4.egg", "has_sig": false, "md5_digest": "7abceec4e9da771b501d0b21c6ffe5b7", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 9239, "upload_time": "2015-04-16T02:53:17", "url": "https://files.pythonhosted.org/packages/98/0f/5b47b2943b743e57c681fa646c86b3209df676749dd4df61a77c3be6db04/rancidcmd-0.1.4-py3.4.egg" }, { "comment_text": "", "digests": { "md5": "58e6fda24708639b043d19c523165d42", "sha256": "b07a6afa412d10509a6664df6eafd1855e1d31e2300159bc47cd0fb0e15ca674" }, "downloads": -1, "filename": "rancidcmd-0.1.4.tar.gz", "has_sig": false, "md5_digest": "58e6fda24708639b043d19c523165d42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51918, "upload_time": "2015-04-16T02:53:10", "url": "https://files.pythonhosted.org/packages/8b/01/b21c6cad211ec119f58937722a29f4d63fc71673dd2d9903883a042e3a7a/rancidcmd-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "6da5ef84c165e634d17f7e7195fc0bc1", "sha256": "b6c3332679726bf51d880836016389eff0228aa1add1c6a1d963c2b3492a61c5" }, "downloads": -1, "filename": "rancidcmd-0.1.5-py3.4.egg", "has_sig": false, "md5_digest": "6da5ef84c165e634d17f7e7195fc0bc1", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 9242, "upload_time": "2015-04-18T06:03:00", "url": "https://files.pythonhosted.org/packages/5b/24/579ff115b96f4540060e2e181f0086fcc3ee29f3e71155ba730d59cbe598/rancidcmd-0.1.5-py3.4.egg" }, { "comment_text": "", "digests": { "md5": "4a896355ba0212090a35e88ed9ee91e6", "sha256": "6e1cf8f18dad151b6b58e175f443a378d590dd6abf7b4f521cc1a3e42937ae28" }, "downloads": -1, "filename": "rancidcmd-0.1.5.tar.gz", "has_sig": false, "md5_digest": "4a896355ba0212090a35e88ed9ee91e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52025, "upload_time": "2015-04-18T06:02:50", "url": "https://files.pythonhosted.org/packages/ad/14/959d7eab20b1eea27a51c0d7df837eddf541595ef723ea49143d6af0c4f9/rancidcmd-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "fe5772a2824724bc734efbcfc29679de", "sha256": "45e1947555ebd37ad54eca7b2b6eadd9fc476708649cceaf413c063dccaa6025" }, "downloads": -1, "filename": "rancidcmd-0.1.6.tar.gz", "has_sig": false, "md5_digest": "fe5772a2824724bc734efbcfc29679de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51705, "upload_time": "2015-04-20T23:39:47", "url": "https://files.pythonhosted.org/packages/36/e2/21204e4c15fc34c58267df16524e31da5c3221a3e1128e7764cc3cdc6720/rancidcmd-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "03e8773c866b2b489fd467283828b32e", "sha256": "13d62bd39ee3334f400f92f5a8b1f30dcfe0cdd7a75bd83c245713d1d96fc9dd" }, "downloads": -1, "filename": "rancidcmd-0.1.7.tar.gz", "has_sig": false, "md5_digest": "03e8773c866b2b489fd467283828b32e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 55206, "upload_time": "2015-04-25T02:20:07", "url": "https://files.pythonhosted.org/packages/f8/5a/877a053dd78f5c9ecb0dd48fb412d6769f2fbfb0e4464eea9419758613af/rancidcmd-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "b882d8fdd0c16ab688de86c91b0b59d8", "sha256": "90c4b52d534e7d682e399e7401fc9e6d75d1e243f10545bcfa0b42725a49b4b0" }, "downloads": -1, "filename": "rancidcmd-0.1.8.tar.gz", "has_sig": false, "md5_digest": "b882d8fdd0c16ab688de86c91b0b59d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 57394, "upload_time": "2015-05-16T13:06:54", "url": "https://files.pythonhosted.org/packages/75/ac/783810477c5ef03ac3f70f8a15277b94e4010e48e8a376b88fbb225f3614/rancidcmd-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "3bbbf58d45dfdab359e10da86a60f8ed", "sha256": "c393490de4f8ac6ba588969ee316f271c53189bca5a61bc98050924382106c45" }, "downloads": -1, "filename": "rancidcmd-0.1.9.tar.gz", "has_sig": false, "md5_digest": "3bbbf58d45dfdab359e10da86a60f8ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 104494, "upload_time": "2015-06-12T05:27:47", "url": "https://files.pythonhosted.org/packages/6c/bc/6f80fc0bb45a1e57fde0dd2d485f81907380e96f7323102f356229a4963b/rancidcmd-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "26c7bfd1d8192616f71edd55dd3bdcde", "sha256": "4e16fffe3637622de667220a2b82c99b14ed631ee6d494bf34d83791d6fbbe62" }, "downloads": -1, "filename": "rancidcmd-0.1.12.tar.gz", "has_sig": false, "md5_digest": "26c7bfd1d8192616f71edd55dd3bdcde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 67641, "upload_time": "2017-03-06T05:55:13", "url": "https://files.pythonhosted.org/packages/7e/2f/26def45b9ce29e980cbc99853e23a539177e23dbde88e3a02ce1a3e23922/rancidcmd-0.1.12.tar.gz" } ] }