cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1013
Views
5
Helpful
2
Replies

IOS-XE, GuestShell and Python Librairies - List all Python Packages

Jerems
Spotlight
Spotlight

Hi dear community,

 

Does anyone know what are the python librairies intially present on the GuestShell container of an IOS-XE device ?

 

Thanks in advance,

 

Jerems

1 Accepted Solution

Accepted Solutions

@Jerems Take from the devnet sandsbox sandbox-iosxe-latest-1.cisco.com

 

Cisco IOS XE Software, Version 17.03.01a
Cisco IOS Software [Amsterdam], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 17.3.1a, RELEASE SOFTWARE (fc3)
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
GPL code under the terms of GPL Version 2.0.  For more details, see the
csr1000v-1#guestshell run bash
[guestshell@guestshell ~]$
[guestshell@guestshell ~]$ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
gpg (1.10.0)
pip (9.0.3)
rpm (4.14.2)
setuptools (39.2.0)

Hope this helps

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

2 Replies 2

Jerems
Spotlight
Spotlight

Here is what i could find :

 

[guestshell@guestshell ~]$ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
bcrypt (3.2.0)
cffi (1.14.4)
cryptography (3.3.1)
lxml (4.6.2)
paramiko (2.7.2)
pip (9.0.3)
pycparser (2.20)
PyNaCl (1.4.0)
setuptools (39.2.0)
six (1.15.0)

and

[guestshell@guestshell ~]$ python3
Python 3.6.8 (default, Dec 22 2020, 19:05:50)
[GCC 8.4.1 20200928 (Red Hat 8.4.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> help("modules")

Please wait a moment while I gather a list of all available modules...

Please note, this package[eem] is ONLY for EEM Python Scripts
__future__          ast                 hmac                rlcompleter
_ast                asynchat            html                rpm
_asyncio            asyncio             http                runpy
_bisect             asyncore            imaplib             sched
_blake2             atexit              imghdr              secrets
_bootlocale         audioop             imp                 select
_bz2                base64              importlib           selectors
_cffi_backend       bcrypt              inspect             setuptools
_codecs             bdb                 io                  shelve
_codecs_cn          binascii            ipaddress           shlex
_codecs_hk          binhex              itertools           shutil
_codecs_iso2022     bisect              json                signal
_codecs_jp          builtins            keyword             site
_codecs_kr          bz2                 lib2to3             six
_codecs_tw          cProfile            libcomps            smtpd
_collections        calendar            libdnf              smtplib
_collections_abc    cffi                linecache           sndhdr
_compat_pickle      cgi                 locale              socket
_compression        cgitb               logging             socketserver
_crypt              chunk               lxml                spwd
_csv                cli                 lzma                sqlite3
_ctypes             cmath               macpath             sre_compile
_curses             cmd                 macurl2path         sre_constants
_curses_panel       code                mailbox             sre_parse
_datetime           codecs              mailcap             ssl
_dbm                codeop              marshal             stat
_decimal            collections         math                statistics
_dummy_thread       colorsys            mimetypes           string
_elementtree        compileall          mmap                stringprep
_functools          concurrent          modulefinder        struct
_gdbm               configparser        multiprocessing     subprocess
_hashlib            contextlib          nacl                sunau
_heapq              copy                ncclient            symbol
_hmacopenssl        copyreg             netrc               symtable
_imp                crypt               nis                 sys
_io                 cryptography        nntplib             sysconfig
_json               csv                 ntpath              syslog
_locale             ctypes              nturl2path          tabnanny
_lsprof             curses              numbers             tarfile
_lzma               datetime            opcode              telnetlib
_markupbase         dbm                 operator            tempfile
_multibytecodec     decimal             optparse            termios
_multiprocessing    difflib             os                  textwrap
_opcode             dis                 ossaudiodev         this
_operator           distutils           paramiko            threading
_osx_support        dnf                 parser              time
_pickle             doctest             pathlib             timeit
_posixsubprocess    dohost              pdb                 token
_pydecimal          dummy_threading     pickle              tokenize
_pyio               easy_install        pickletools         trace
_random             eem                 pip                 traceback
_sha3               email               pipes               tracemalloc
_signal             encodings           pkg_resources       tty
_sitebuiltins       ensurepip           pkgutil             types
_socket             enum                platform            typing
_sqlite3            errno               plistlib            unicodedata
_sre                faulthandler        poplib              unittest
_ssl                fcntl               posix               urllib
_stat               filecmp             posixpath           uu
_string             fileinput           pprint              uuid
_strptime           fnmatch             profile             venv
_struct             formatter           pstats              warnings
_symtable           fractions           pty                 wave
_sysconfigdata_dm_linux_aarch64-linux-gnu ftplib              pwd                 weakref
_sysconfigdata_m_linux_aarch64-linux-gnu functools           py_compile          webbrowser
_testmultiphase     gc                  pyclbr              wsgiref
_thread             genericpath         pycparser           xdrlib
_threading_local    getopt              pydoc               xml
_tracemalloc        getpass             pydoc_data          xmlrpc
_warnings           gettext             pyexpat             xxlimited
_weakref            glob                queue               xxsubtype
_weakrefset         gpg                 quopri              zipapp
abc                 grp                 random              zipfile
aifc                gzip                re                  zipimport
antigravity         hashlib             readline            zlib
argparse            hawkey              reprlib
array               heapq               resource

Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".

>>> exit()

Can you please confirm that both command are relevant ? Am i missing an other command ?

 

Thanks and Regards,

 

Jerems

@Jerems Take from the devnet sandsbox sandbox-iosxe-latest-1.cisco.com

 

Cisco IOS XE Software, Version 17.03.01a
Cisco IOS Software [Amsterdam], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 17.3.1a, RELEASE SOFTWARE (fc3)
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
GPL code under the terms of GPL Version 2.0.  For more details, see the
csr1000v-1#guestshell run bash
[guestshell@guestshell ~]$
[guestshell@guestshell ~]$ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
gpg (1.10.0)
pip (9.0.3)
rpm (4.14.2)
setuptools (39.2.0)

Hope this helps

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io