Readiness for Python and Jnpr

Just copied couple of python modules on newly built Ubuntu and NOT able to run python programs

user@Ubuntu-TPL:~/python/junoschassis$ python testmodule.py -f devices
Unable to connect to host: invalid literal for int() with base 10: ‘1F5’

>>>Upgrading PIP
$ pip install –upgrade pip

<Last few text>
Installing collected packages: pip
Found existing installation: pip 7.1.0
Uninstalling pip-7.1.0:
Successfully uninstalled pip-7.1.0
Successfully installed pip-8.1.2

>>>Upgrading Python

sudo apt-get -y install build-essential checkinstall libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
mkdir -p ~/python/2.7.10
cd ~/python/2.7.10
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar xzf Python-2.7.10.tgz
cd Python-2.7.10
sudo ./configure
sudo make install
cd ~/

#check version with opening new session

user@Ubuntu-TPL:~$ python
Python 2.7.10 (default, Sep 9 2016, 07:42:38)
[GCC 4.8.4] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>>

>>> Installing PYEZ

$ apt-get install python-pip python-dev libxml2-dev libxslt-dev libssl-dev libffi-dev
$ wget https://bootstrap.pypa.io/get-pip.py -O – | sudo python

$ sudo pip install junos-eznc

Shouldn’t any error while importing jnpr.junos

user@Ubuntu-TPL:~$ python
Python 2.7.10 (default, Sep 9 2016, 07:42:38)
[GCC 4.8.4] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import jnpr.junos
>>>

>>>Juniper device, configuration – commit.

re0> show configuration system services
netconf {
ssh;
}

Finally, able to run my python module

user@Ubuntu-TPL:~/python/junoschassis$ python testmodule.py -f devices
Online FPCs are [‘0’, ‘1’, ‘3’] – Respective CPU is [‘8’, ‘9’, ’12’]
Provided IP, looks backup RE

562 thoughts on “Readiness for Python and Jnpr”

  1. Данный интернет ресурс специализируется на продаже шапок, камуфляжных костюмов, зимних курток, а также экипировки и сопутствующих товаров для всех родов войск по доступным, выгодным ценам.посмотреть
    Армеец поможет подобрать качественную, индивидуальную военную одежду и для курсантов, и студентов военных кафедр, охотников и рыболовов, любителей активного отдыха и военных игр, любителей стиля милитари.
    Кроме товаров отечественного производителя, магазин военторг предоставляет Вашему вниманию оригинальную форму и экипировку стран НАТО.

  2. The misery that cialis usa pharmacy allergic reactions can cause is something with online drug which untold numbers of individuals know with. The reality is, however, that there are options readily available for those that seek them. Beginning utilizing the suggestions and also tips in this item, as well as you will have the devices essential to dominate allergic reactions, finally.
    Screen pollen projections and strategy accordingly. Numerous of the prominent weather projecting websites have an area devoted to allergy projections consisting of both air high quality as well as pollen counts if you have accessibility to the net. On days when the count is going to be high, maintain your home windows closed and restrict your time outdoors.
    Plant pollen, dirt, as well as other irritants can obtain trapped on your skin as well as in your hair as you go with your day. If you generally bath in the early morning, take into consideration switching to a night schedule.

  3. Срочный ремонт iPhone, iPad и др. устройств Apple в Киеве Kyiv http://i7phone.com.ua в Украине Вы можете отправить нам на диагностику и ремонт в Сервисный Центр i7phone из любого региона Украины «Новой Почтой» 063-229-3386. Сервис центр Apple. Ремонт iPhone, iPad, iMac. Apple техника, это обойдется вам гораздо дешевле, чем покупка нового телефона, Кроме услуги “ремонт айфона” (в Киеве) мы занимаемся ремонтом всех Apple, предлагаем свои услуги по ремонту iPhone в Киеве, программный и аппаратный уровни, iPad;. iPhone 5;. iPhone 5S, можете поменять его срочно, прямо здесь, замена экрана iPhone 5, Ремонт iPhone без перерывов и выходных Киев и Украина, Ремонт техники Apple и iPhone Fix4U.ua сервис ремонт любой сложности техники Apple IPhone/IPad/IMac, Ремонт телефонов и смартфонов в Киеве всех моделей, Ремонт IPhone

  4. I was in reality itching to fix it some wager some change on some sports matches that are episode fitting now. I wanted to disillusion admit you guys be familiar with that I did understand what I ruminate on to be the a-one plat in the USA.
    If you destitution to pull down in on the exertion, authenticate it minus: penny slots

  5. The misery that Web Site allergic reactions can cause is something with Recommended Reading which unimaginable numbers of people know with. The reality is, nevertheless, that there are solutions offered for those that seek them. Beginning utilizing the concepts as well as ideas in this piece, and also you will have the tools needed to overcome allergies, once and for all.
    Screen pollen projections and strategy as necessary. If you have access to the web, many of the preferred weather forecasting websites have actually a section committed to allergic reaction projections consisting of both air top quality as well as plant pollen counts. On days when the matter is mosting likely to be high, keep your home windows shut and restrict your time outdoors.
    Pollen, dust, and other irritants can get trapped on your skin and also in your hair as you go via your day. If you normally shower in the morning, take into consideration switching to an evening timetable.

  6. I was really itching to treat some wager some monied on some sports matches that are circumstance above-board now. I wanted to let you guys identify that I did find what I consider to be the a-one locate in the USA.
    If you fall short of to get in on the action, authenticate it out of the closet: here

  7. I was genuinely itching to get some wager some money on some sports matches that are phenomenon above-board now. I wanted to disillusion admit you guys identify that I did understand what I ruminate on to be the best locate in the USA.
    If you want to confound in on the exertion, verify it out: http://www.onlinecasinoforrealmoney.us.com/

  8. I was in reality itching to tails of some wager some well-to-do on some sports matches that are happening auspicious now. I wanted to allow in you guys know that I did twig what I reckon with to be the kindest site in the USA.
    If you want to confound in on the engagement, authenticate it out-moded: read more

Leave a Reply to WesleyLEX Cancel reply

Your email address will not be published. Required fields are marked *