For software development issues related to Juniper hardware. Networking and configuration questions should be asked on https://networkengineering.stackexchange.com/
Questions tagged [juniper]
108 questions
0
votes
0 answers
netmiko timeout exception
So i have this code that connect to a juniper device:
virtual_srx = { 'device_type': 'juniper', 'host': '192.168.0.140', 'username': 'root', 'password': 'Aa123456', 'secret': '', 'port' : 22, }
ssh = ConnectHandler(**virtual_srx)
it's all works…

kfirwe
- 21
- 6
0
votes
0 answers
Can I check the security policies hit-count in juniper routers via SNMP?
Am trying to see if there is a way to get the output of "show security policies hit-count descending" via SNMP,
it has the following o/p like so,
show security policies hit-count descending…

user3425403
- 77
- 1
- 8
0
votes
1 answer
Disabling Juniper Services
I currently am running a juniper firewall that I would like to disable some services that are not considered best practice. Does there happen to be any specific commands using Juniper's CLI to disable FTP and disable Telnet?
0
votes
1 answer
Juniper: How to see OSPF routes that didn't make the routing table
I have a specific scenario:
There are 2 paths leading to a given OSPF prefix:
-Both of the paths are learnt via OSPF
-Prefix CIDRs are the same size
-Both OSPF "preference" value is unchanged (so is the default: 10)
My problem is that only a single…

Woodkid
- 1
0
votes
2 answers
Ansible issue with ssh authentication
i have searched around this problem for a while now but didnt find anything that helps.
We are using ansible to automate our Juniper devices and therefore use the ansible juniper modules. When i try to use "junos_facts" for example, i can execute it…

morikules
- 21
- 5
0
votes
2 answers
Ansible operations on Juniper devices fail with "sftp/scp transfer mechanism failed"
My playbook:
- name: get junos facts
hosts: sw
# connection: local
gather_facts: no
roles:
- juniper.junos
tasks:
- name: Retrieve Junos OS version
junipernetworks.junos.junos_command:
commands: show…

bulay
- 43
- 5
0
votes
1 answer
Netmiko "Timed-out reading channel, data not available." for Juniper
I am using netmiko ConnectionHandler to push simple config to a Juniper device. But not sure why its throwing "Timed-out reading channel, data not available." this error. Here is the exact command im using, can someone please help me understand what…

kittu
- 3
- 3
0
votes
0 answers
Juniper rust: sharing request data with the resolvers with the FromRequest trait
can anyone help get my head around the FromRequest trait.
As I understand, we can use it to share data with the resolvers.
I'm trying to inject the http headers so I can authenticate users before some actions in the resolvers.
See my code…

user1445685
- 793
- 1
- 11
- 25
0
votes
1 answer
find top ip address consuming juniper interface bandwidth
As you can see this interface is consuming 95% bandwidth for this interface.
I am trying to understand who is consuming the bandwith.
Is it some ip address or anything else.
And how can i find top bandwidth consuming ip addess in juniper…

Vinit Vinit
- 11
- 1
0
votes
1 answer
Ansible - Juniper - run command on configure
I need to write a task in order to execute on a Juniper MX
> configure
# deactivate system scripts
# deactivate event-options
# commit and-quit
I tried (https://ansible-juniper-collection.readthedocs.io/en/latest/config.html):
- config:
load:…

Riccardo79
- 954
- 4
- 17
- 35
0
votes
1 answer
Juniper to Aruba Commands using Python
I have a set of commands, each from Juniper & Aruba switches, that I would like to automatically convert. Is there a way to use a string of Juniper commands and have them output a string of Aruba commands? If so, how would I approach this using…

pythonhelp
- 1
- 1
0
votes
1 answer
Compare the Active Configuration to a Previous Configuration Juniper Ansible - junipernetworks.junos.junos
I want to get output of Before and After Configuration commits to device.
Ansible Code :
- name: Get device information
hosts: working_hosts
connection: local
gather_facts: false
vars:
ansible_network_os: junipernetworks.junos.junos
…

sai viswanath
- 3
- 2
0
votes
1 answer
json_query filter with bug?
I have a situation.
When I try to use json_query filter in ansible-playbook return this error:
{"msg": "Error in jmespath.search in json_query filter plugin:\ninvalid literal for int() with base 10: '-'"}
I solve this with replace ('-','_')…
0
votes
1 answer
Failed to get program UUIDs from the cache for site in Openedx Applications
This is mainly openedx dashboard course page not coming related program.
Failed to get program UUIDs from the cache for site

Neeraj Kumar
- 133
- 1
- 4
0
votes
1 answer
Ansible Juniper.Device collection : 'JuniperJunosModule' object has no attribute 'conn_type'
I have a huge headache on this issue and can't figure out how to deal with it. I have a simple playbook where I try to upload a firmware and new conf to a Juniper switch.
---
- name: Juniper Playbook
hosts: junos
gather_facts: no
collections:
…

a-maxime
- 35
- 3