Skip to main content

A ssh library for CLI/root shell on Nokia 1830-PSS Network Elements

Install

pip install nokia1830pss

Usage

CLI interaction

from pss1830ssh.pss1830cli import PSS1830Cli

cli = PSS1830Cli('10.0.0.1', 22, 'admin', 'admin')
cli.open()
cli.execute('show version')
cli.execute('show card inv *')
cli.close()

Root interaction

from pss1830ssh.pss1830root import PSS1830Root

# Execute command on the master shelf, active EC
root = PSS1830Root('10.0.0.1', 22, 'root', 'root')
root.open()
root.execute('ps -ef')

# Execute command on standby EC of the master shelf
root.login_to_stdby()
root.execute('ps -ef')
root.logout_from_stdby()

# Execute command on the active EC of a shelf without knowing which one
root.login_to_shelf(shelf=2)
root.execute('ps -ef')
root.logout_from_shelf()

# Execute command on the active EC of a shelf assuming the active EC is EC 2/1
root.login_to_shelf(shelf=2, ec=1)
root.execute('ps -ef')
root.logout_from_shelf()

# Execute command on a specific EC of a shelf
root.login_to_shelf(shelf=3, ec=18, act=False)
root.execute('ps -ef')
root.logout_from_shelf()

# Execute command on a slot
root.login_to_slot(shelf=1, slot=3)
root.execute('ps -ef')
root.logout_from_slot()

root.close()

Release files for nokia1830pss 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nokia1830pss 1.0.3
File Size Uploaded
nokia1830pss-1.0.3.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nokia1830pss 1.0.3
File Interpreter ABI Platform
nokia1830pss-1.0.3-py2-none-any.whl Python 2 none any Details

Total release size: 11.2 kB

Release files / nokia1830pss-1.0.3.tar.gz

Download URL nokia1830pss-1.0.3.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
22e16a67f544477e2f5479bdcc9236a4a3efddae56494f25f13687e9c7763799
BLAKE2b-256 checksum
How to use checksums
7d3bfea282267ff28c54a96c1d42b45fd3ca38957661702509815b202e3b8003
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.15+

Release files / nokia1830pss-1.0.3-py2-none-any.whl

Download URL nokia1830pss-1.0.3-py2-none-any.whl
Size 6.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
88e1e166b3bca1c4bbb396c3738ac35bf4afc21dd32481f74bb1c08136f01e45
BLAKE2b-256 checksum
How to use checksums
f0adf86b63a4c62087e02462aaf4e5c52262a743854e22a88c5469eb91cde239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.15+

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page