Automated Business Ready Documents from the NX-OS Guestshell
Project description
nxpydocs
Automated NXOS Business Ready Documents from th guestshell Python
Setting up guestshell and Python3.8
Enable guestshell
switch# guestshell enable
Wait until the guestshell becomes active
Resize guestshell diskspace
guestshell resize rootfs 2000
guestshell resize memory 2688
guesthshell reboot
Update DNS
[cisco@guestshell ~]sudo vi /etc/resolv.conf
nameserver <dns server IP address>
domain <domain that matches NX-OS configured domain>
Update yum
[cisco@guestshell ~]sudo yum -y install epel-release
[cisco@guestshell ~]yum update -y
[cisco@guestshell ~]sudo reboot
Install Python3.8
[cisco@guestshell ~]sudo yum -y install openssl-devel bzip2-devel libffi-devel xz-devel
Confirm gcc is installed
[cisco@guestshell ~]gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Download Python 3.8
[cisco@guestshell ~]sudo yum -y install wget
[cisco@guestshell ~]wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
Extract and compile
[cisco@guestshell ~]sudo tar xvf Python-3.8.12.tgz
[cisco@guestshell ~]cd Python-3.8.12
[cisco@guestshell ~]sudo ./configure --enable-optimizations
[cisco@guestshell ~]sudo make altinstall
Verify Python3.8 is installed
[cisco@guestshell ~]python3.8 -V
Python 3.8.12
Cleanup
[cisco@guestshell ~]sudo rm -rf Python-3.8.12
[cisco@guestshell ~]sudo rm Python-3.8.12.tgz
Set Python3 as default Python version
[cisco@guestshell ~]sudo alternatives --install /usr/bin/python python /usr/local/bin/python3.8 60
[cisco@guestshell ~]sudo alternatives --config python
There is 1 program that provides 'python'.
Selection Command
-----------------------------------------------
*+ 1 /usr/local/bin/python3.8
Enter to keep the current selection[+], or type selection number: 1
Pip install cisco
pip install cisco
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nxpydocs-0.1.11.tar.gz
(68.3 kB
view hashes)
Built Distribution
Close
Hashes for nxpydocs-0.1.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e143d5e8aaf51cd5b6f48fda7fd96e27413733f61a19ddddf12d79160a7dd4db |
|
MD5 | c7e696032d940a7b102262098b4a37da |
|
BLAKE2b-256 | 2ad54e863505bb3cfeb5bb600ceeb811a848d5bb7c8b206f5fb6eaf5d1d77bc2 |