Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

https://github.com/Juniper/ChassisInfoFetcher


On my laptop:

C:\Users\jkriker\Documents\GitHub\ChassisInfoFetcher\Backup_version_2020_05_24





ubuntu 14

bash on windows

Image Added

Code Block
titlesoftware version
collapsetrue
root@jkriker-T460:/home/onmylaptop/ChassisInfoFetcher/CIF# more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.6 LTS"

root@jkriker-T460:/home/onmylaptop/ChassisInfoFetcher/CIF# python --version
Python 2.7.6

root@jkriker-T460:/home/onmylaptop/ChassisInfoFetcher/CIF# pip --version
pip 19.0.2 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

root@jkriker-T460:/home/onmylaptop/ChassisInfoFetcher/CIF# pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Package                                    Version
------------------------------------------ -----------
ansible                                    1.5.4
ansible-junos-stdlib                       1.4.0
appdirs                                    1.4.3
asn1crypto                                 0.24.0
atomicwrites                               1.3.0
attrs                                      19.1.0
awscli                                     1.16.96
bcrypt                                     3.1.7
botocore                                   1.12.86
cachetools                                 2.1.0
certifi                                    2018.4.16
cffi                                       1.11.5
chardet                                    3.0.4
colorama                                   0.2.5
configparser                               4.0.2
contextlib2                                0.5.5
cryptography                               2.7
dill                                       0.2.7.1
docutils                                   0.14
enum34                                     1.1.6
Fabric                                     1.8.2
funcsigs                                   1.0.2
future                                     0.16.0
futures                                    3.2.0
gapic-google-cloud-datastore-v1            0.15.3
gapic-google-cloud-error-reporting-v1beta1 0.15.3
gapic-google-cloud-logging-v2              0.91.3
google-api-core                            0.1.4
google-auth                                1.4.1
google-cloud                               0.33.1
google-cloud-bigquery                      0.28.0
google-cloud-bigquery-datatransfer         0.1.1
google-cloud-bigtable                      0.28.1
google-cloud-container                     0.1.1
google-cloud-core                          0.28.1
google-cloud-datastore                     1.4.0
google-cloud-dns                           0.28.0
google-cloud-error-reporting               0.28.0
google-cloud-firestore                     0.28.0
google-cloud-language                      1.0.2
google-cloud-logging                       1.4.0
google-cloud-monitoring                    0.28.1
google-cloud-pubsub                        0.30.1
google-cloud-resource-manager              0.28.1
google-cloud-runtimeconfig                 0.28.1
google-cloud-spanner                       0.29.0
google-cloud-speech                        0.30.0
google-cloud-storage                       1.6.0
google-cloud-trace                         0.17.0
google-cloud-translate                     1.3.1
google-cloud-videointelligence             1.0.1
google-cloud-vision                        0.29.0
google-gax                                 0.15.16
google-resumable-media                     0.3.1
googleapis-common-protos                   1.5.3
grpc-google-iam-v1                         0.11.4
grpcio                                     1.12.0
html5lib                                   0.999
httplib2                                   0.11.3
idna                                       2.6
importlib-metadata                         0.23
ipaddress                                  1.0.18
Jinja2                                     2.10
jmespath                                   0.9.3
junos-eznc                                 2.0.2.dev0
junos-netconify                            1.0.3
lxml                                       4.2.1
Markdown                                   2.6.11
MarkupSafe                                 1.0
mjson                                      0.3.1
more-itertools                             5.0.0
ncclient                                   0.5.3
netaddr                                    0.7.19
nose                                       1.3.1
oauth2client                               3.0.0
packaging                                  16.8
paramiko                                   2.6.0
pathlib2                                   2.3.4
pip                                        19.0.2
pluggy                                     0.13.0
ply                                        3.8
proto-google-cloud-datastore-v1            0.90.4
proto-google-cloud-error-reporting-v1beta1 0.15.3
proto-google-cloud-logging-v2              0.91.3
protobuf                                   3.5.2.post1
psutil                                     5.4.5
py                                         1.8.0
pyaml                                      17.12.1
pyasn1                                     0.4.3
pyasn1-modules                             0.2.1
pycparser                                  2.18
pycrypto                                   2.6.1
PyNaCl                                     1.3.0
pyparsing                                  2.1.10
pyserial                                   3.4
pytest                                     4.6.5
python-dateutil                            2.7.5
pytz                                       2018.4
PyYAML                                     3.12
requests                                   2.18.4
rsa                                        3.4.2
s3transfer                                 0.1.13
scandir                                    1.10.0
scp                                        0.10.2
setuptools                                 39.2.0
six                                        1.10.0
space-ez                                   1.0.1
urllib3                                    1.22
urwid                                      2.0.1
virtualenv                                 16.4.0
wcwidth                                    0.1.7
wheel                                      0.24.0
zipp                                       0.6.0
You are using pip version 19.0.2, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@jkriker-T460:/home/onmylaptop/ChassisInfoFetcher/CIF#


Code Block
titleinstallation
#Basic dependencies:
sudo apt-get install python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev


pip install --upgrade pip

#To install PyEz:
python -m pip install junos-eznc

#To install urwid:
python -m pip install urwid

#To install Space Ez:
cd ~/Documents/
#
#on windows 10 bashshell :  cd /home/onmylaptop/

git clone https://github.com/Juniper/py-space-platform.git

sudo python -m pip install ./py-space-platform


#To install the aplication
git clone https://github.com/Juniper/ChassisInfoFetcher






host.cvs


Code Block
titlerun the script app.py
#Edit the hosts.cvs file:
-------------------------
cd ~/Documents/ChassisInfoFetcher/CIF/

sudo cp hosts.csv hosts.csv.backup
sudo vi hosts.csv

more hosts.csv
172.30.95.206,NetBox,Netbox,22
172.30.95.174,Netbox,Netbox,22



#Run the graphical application:
-------------------------------
cd ~/Documents/ChassisInfoFetcher/CIF/

sudo python app.py