Questions tagged [junos-automation]

This is a tag created for questions which may fall under the automation category of Junos. Junos is the OS that runs on Juniper Networks routers.

58 questions
0
votes
1 answer

pyEZ : how to get junos default groups

I am working on a project to automate junos firewall policy creation workflow. I found pyEZ as the most viable option for my case. Although I am able to retrieve the complete configuration from the device in xml format by using rpc.get_config()…
Prabir
  • 11
  • 4
0
votes
1 answer

Junos creates console object instead of device object

I'm working on a zero-day configuration tool and I'm trying to deploy a configuration to a EX2200 switch. I'm using the PyEZ framework to connect to the device: dev = Device(mode='serial', port='/dev/ttyUSB0',user="user", …
0
votes
1 answer

Pip error - could not find a version that satisfies the requirement junos-eznc

Ansible requires Python junos-eznc module: junos-eznc >= 1.2.2 is required but does not appear to be installed. It can be installed using pip install junos-eznc However, when running sudo pip install junos-eznc - I get this: Collecting…
d-moh009
  • 3
  • 1
  • 3
0
votes
3 answers

Executing multiple JUNOS router commands with ruby

Has anyone tried to execute multiple commands in a JUNOS router using ruby with the net/ssh and net/ssh/telnet gems where you have to go into configure mode? It never wants to accept the configure commands and I don't know why. Here is my…
CraigD
  • 25
  • 5
0
votes
2 answers

is there a way to hide Juniper router interfaces from SNMP tree

I have a virtualized router running JUNOS 14.1R1.10 (Juniper). I enabled SNMP on it but I want it to 'hide' some of its interfaces: means that upon snmp-walk on the interfaces list it will not reply with value on certain interface(s). example: while…
Hovav
  • 151
  • 2
  • 13
0
votes
2 answers

Is is possible to add/edit prefix list and policy statement using pyez

Is it possible to edit the prefix list and policy statements through pyez in juniper router. Device details junos version : 15.1f5, Device : juniper mx240 And i am using pyez on top of netconf to automate
Siva Gnanam
  • 938
  • 2
  • 10
  • 26
-1
votes
1 answer

How do you change a junos device root password with Ansible?

I am completely new to Ansible and cannot find much documentation regarding changing the root password of a Juniper device. What is the framework to do something like this? This is what I have so far but I am not confident it is correct. --- - vars:…
Dhar_
  • 19
  • 3
-1
votes
1 answer

Getting facts from Junos nodes and using those to form variables which will be used in other plays

I have a question about automating network nodes using Ansible. I want to get configuration of network node involving vlans (actually I just want to see the last vlan used in node, so that I could automatically create the next one). When I log in to…
-1
votes
1 answer

How to prepare Ansible inventory, playbook and configuration file used by Ansible module using Ansible/Jinja2?

I have a plain-text file routers in versioning system which contains host-names separated by newlines: $ cat routers r1 r2 r3 $ I also have routers configuration templates in versioning system as a plain-text files. For example: $ cat system:syslog…
Martin
  • 957
  • 7
  • 25
  • 38
-2
votes
1 answer

Need Ansible playbook inorder to calculate number of users currently login into VPN

Writing ansible playbook for "Count number of users currently login to VPN".Using Junos modules as suggested by network team.I have installed below softwares on my RHEL 7 machine with Ansible 2.9 version installed. Junos Ansible…
-2
votes
1 answer

Conditionals - Ansible Junos

So this is conditionals on Ansible: - debug: var: x when: x is not defined Is there anyway to apply conditionals for junos_commands? Like: tasks: - name: Show logs junos_command: commands: - show…
-2
votes
1 answer

Python save to file loop

I need some help to create a loop for my program. My problem is that I have to run the script twice, before the file/output registers any changes done to my configuration. Programming is not my strongest skill - hope someone can be of…
znoevil
  • 1
  • 2
-2
votes
1 answer

computer cannot be accessed after connecting Junos Pulse VPN

I have 2 machines in LAN, one is desktop, the other is a laptop. Before I connecting vpn on laptop, the laptop IP is 192.168.1.104 and the desktop is 192.168.1.107, I can ping the laptop from my desktop. After I connecting Junos Pulse vpn, I saw the…
Wormholes
  • 3
  • 1
1 2 3
4