sshFRIEND


NamesshFRIEND JSON
Version 0.0.11 PyPI version JSON
download
home_page
SummaryA generic and platform agnostic SSH module to access and send commands to remote devices that support OpenSSH
upload_time2023-10-05 10:49:53
maintainer
docs_urlNone
authorDavid Johnnes
requires_python
licenseBSD
keywords ssh access ssh remote command execution
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Project description

SSH Client Package


#Simple, Fast and Secure method to:

- Create automated tools to back-up Routers, Switches and Access-Points
- Create automated tools for dynamic network configuration generation
- Create automated tools for configurations roll-out
- Create automated tools for network devices audit
- Create automated tools for network devices inventory generation
- Create automated tools for network devices troubleshooting

##How to use the Package.

###How to send a single command to a remote host 'in global config mode'

#####Download the package in your computer

pip install sshFRIEND

#####Inside your script, do the following:

- from sshFRIEND.ssh_connector import *

- hostname = "your hostname here"

- username = "your username here"

- password = "your password here"

- cmd = "show running-config"

- channel = ssh_connector(hostname, username, password)

- output = send_cmd(cmd, channel)

- print(output)


###How to send a single command to a remote host 'in config mode'

#####Inside your script, do the following:

- from sshFRIEND.ssh_connector import *

- hostname = "your hostname here"

- username = "your username here"

- password = "your password here"

- cmd = "show running-config"

- channel = ssh_connector(hostname, username, password)

- output = send_config_cmd(cmd, channel)

- print(output)


###How to send multiple commands to a remote host 'in global config mode'

#####Inside your script, do the following:

- from sshFRIEND.ssh_connector import *

- hostname = "your hostname here"

- username = "your username here"

- password = "your password here"

- list_of_commands = ["show running-config", "show running-config"]

- channel = ssh_connector(hostname, username, password)

- output = send_cmds(list_of_commands, channel)

- print(output)


###How to send multiple commands to a remote host 'in config mode'

##### Inside your script, do the following:

- from sshFRIEND.ssh_connector import *

- hostname = "your hostname here"

- username = "your username here"

- password = "your password here"

- list_of_commands = ["show running-config", "show running-config"]

- channel = ssh_connector(hostname, username, password)

- output = send_config_cmds(list_of_commands, channel)

- print(output)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "sshFRIEND",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "ssh access,ssh remote command execution",
    "author": "David Johnnes",
    "author_email": "david.johnnes@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/38/3f/3b2e1ba5b35f96b8efec4417153a0c5259f338dc0f66e0372ad6a1e439e0/sshFRIEND-0.0.11.tar.gz",
    "platform": null,
    "description": "Project description\n\nSSH Client Package\n\n\n#Simple, Fast and Secure method to:\n\n- Create automated tools to back-up Routers, Switches and Access-Points\n- Create automated tools for dynamic network configuration generation\n- Create automated tools for configurations roll-out\n- Create automated tools for network devices audit\n- Create automated tools for network devices inventory generation\n- Create automated tools for network devices troubleshooting\n\n##How to use the Package.\n\n###How to send a single command to a remote host 'in global config mode'\n\n#####Download the package in your computer\n\npip install sshFRIEND\n\n#####Inside your script, do the following:\n\n- from sshFRIEND.ssh_connector import *\n\n- hostname = \"your hostname here\"\n\n- username = \"your username here\"\n\n- password = \"your password here\"\n\n- cmd = \"show running-config\"\n\n- channel = ssh_connector(hostname, username, password)\n\n- output = send_cmd(cmd, channel)\n\n- print(output)\n\n\n###How to send a single command to a remote host 'in config mode'\n\n#####Inside your script, do the following:\n\n- from sshFRIEND.ssh_connector import *\n\n- hostname = \"your hostname here\"\n\n- username = \"your username here\"\n\n- password = \"your password here\"\n\n- cmd = \"show running-config\"\n\n- channel = ssh_connector(hostname, username, password)\n\n- output = send_config_cmd(cmd, channel)\n\n- print(output)\n\n\n###How to send multiple commands to a remote host 'in global config mode'\n\n#####Inside your script, do the following:\n\n- from sshFRIEND.ssh_connector import *\n\n- hostname = \"your hostname here\"\n\n- username = \"your username here\"\n\n- password = \"your password here\"\n\n- list_of_commands = [\"show running-config\", \"show running-config\"]\n\n- channel = ssh_connector(hostname, username, password)\n\n- output = send_cmds(list_of_commands, channel)\n\n- print(output)\n\n\n###How to send multiple commands to a remote host 'in config mode'\n\n##### Inside your script, do the following:\n\n- from sshFRIEND.ssh_connector import *\n\n- hostname = \"your hostname here\"\n\n- username = \"your username here\"\n\n- password = \"your password here\"\n\n- list_of_commands = [\"show running-config\", \"show running-config\"]\n\n- channel = ssh_connector(hostname, username, password)\n\n- output = send_config_cmds(list_of_commands, channel)\n\n- print(output)\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "A generic and platform agnostic SSH module to access and send commands to remote devices that support OpenSSH",
    "version": "0.0.11",
    "project_urls": null,
    "split_keywords": [
        "ssh access",
        "ssh remote command execution"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f237a86009271c4f6d771e619e2336e46923aa4b1781dcb077ea77198fbf57cc",
                "md5": "00fba9df780ec2aa370ca97cdb390812",
                "sha256": "d2b971bc887a057b32dd0e5d67cbf75842886725128efd720de0bb7d31acba60"
            },
            "downloads": -1,
            "filename": "sshFRIEND-0.0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "00fba9df780ec2aa370ca97cdb390812",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4188,
            "upload_time": "2023-10-05T10:49:52",
            "upload_time_iso_8601": "2023-10-05T10:49:52.317315Z",
            "url": "https://files.pythonhosted.org/packages/f2/37/a86009271c4f6d771e619e2336e46923aa4b1781dcb077ea77198fbf57cc/sshFRIEND-0.0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "383f3b2e1ba5b35f96b8efec4417153a0c5259f338dc0f66e0372ad6a1e439e0",
                "md5": "04b4d03ace83dedaafa96dab3a464426",
                "sha256": "ecd4469b6d55d9420d32c8604d959e3fa0d4d3454b676efb50fead2d03d7bcbf"
            },
            "downloads": -1,
            "filename": "sshFRIEND-0.0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "04b4d03ace83dedaafa96dab3a464426",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3638,
            "upload_time": "2023-10-05T10:49:53",
            "upload_time_iso_8601": "2023-10-05T10:49:53.932400Z",
            "url": "https://files.pythonhosted.org/packages/38/3f/3b2e1ba5b35f96b8efec4417153a0c5259f338dc0f66e0372ad6a1e439e0/sshFRIEND-0.0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-05 10:49:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "sshfriend"
}
        
Elapsed time: 0.14236s