Questions tagged [juniper]

For software development issues related to Juniper hardware. Networking and configuration questions should be asked on https://networkengineering.stackexchange.com/

108 questions
0
votes
1 answer

Cannot access internet from clients behind Juniper Firewall SRX300

I configured my srx300 device but I cannot access internet from clients behind device. I don't know what is incorrect in my config. I'm not experienced in this. Hope for helps! Here is my config: version 15.1X49-D45; system { host-name SRX300; …
0
votes
1 answer

Juniper firewall configuration file to dictionary

i m working on a project at school. i m asked to translate a juniper firewall configuration file to another firewall syntax. My problem here is transforming the juniper conf file to a dictionary so i can work on it i Tried spliting the text by "{"…
0
votes
0 answers

Good example of multi-vendor & multi-location & multi-type inventory for Ansible

I wonder if there are any good example of multi-vendor & multi-location & multi-type inventory for the network automation with Ansible. i.e. we have a heterogenous network, which includes Juniper firewalls, Cisco switches, and Linux firewalls&VPN…
epiq sty
  • 15
  • 1
  • 4
0
votes
3 answers

Is there a way to convert juniper "json" or "xml" config to "set" or "show" config?

We use juniper hardware with junos version 15. In this version we can export our config as "json" or "xml" which we want to use to edit it with our automation tooling. Importing however is only possible in "set" or "show" format. Is there a tool to…
XenGi
  • 177
  • 2
  • 12
0
votes
2 answers

File upload is limited to 1M, even after PHP, Nginx, and Apache configuration

I'm asking about an issue on a Wordpress website, that serves on an Ubuntu 18.04 behind of a WAF(Web Application Firewall) service. The server was working for 1 year. 4 days ago I tried to upload a file and I got Http error. upload_max_filesize and…
0
votes
1 answer

Extract output of Juniper Devices and save to dictionary file via netmiko python

I run my script using netmiko and ssh to juniper device. The script run commands to get device info such as hostname, model, etc. The output then is save onto dictionary. print output result from code got too many space and output not properly save…
chenoi
  • 575
  • 3
  • 8
  • 30
0
votes
2 answers

How do I get the mac-address table of a Juniper router using PyEZ? It throws an error when running

I have created a simple python script to get the vpls mac table from a rouer using an RPC command. Hower it throws an error when running. Does anybody know what I am doing wrong? root@ubuntu:~# cat vpls3.py #!/usr/bin/python3 from jnpr.junos import…
0
votes
1 answer

How to find when a JUNOS SRX firewall policy was last used

Is there any way we can figure out when a policy in JUNOS SRX firewalls was last used? I need to delete obsolete policies from the device. One way is to compare the hit-counts of two snapshots that were taken in a gap of x days. But I somewhat feel…
Prabir
  • 11
  • 4
0
votes
1 answer

Configuration Backup in JUNOS using TFTP

Is there any way to auto backup in Junos using TFTP like Cisco.. I can't find any specific documentation like this.. I have already did it in CISCO XR router by using those command: (config)#configuration commit auto-save filename…
0
votes
1 answer

Need help figuring out how to parse and extract port-mode a file?

I have a text file that contains the following information: interfaces { ge-2/0/0 { description "site1;;hostname1;ge-16/0/9;;;TRUST;"; unit 0 { family ethernet-switching { port-mode trunk; } } } ge-2/0/2 { …
ddevalco
  • 1,209
  • 10
  • 20
0
votes
2 answers

Junos Device CLI command giving wrong output when executed from python

When i try to execute Device.cli(....) command from python it gives me wrong output. What could be the issue? For example, if i execute below command on directly on Juniper Device CLI, it gives the correct output with match sadasd-sdasd-asdasd. show…
Srikanth Hugar
  • 385
  • 5
  • 22
0
votes
2 answers

Load Configuration File with Juniper PyEZ

I am trying to load override a config stored on the juniper device (vSRX) with PyEZ. The code looks like this from jnpr.junos import Device from jnpr.junos.utils.config import Config dev = Device(host="x.x.x.x", user='user',…
gh0st
  • 402
  • 5
  • 13
0
votes
0 answers

No Response is received from openday light netconf testtool simulator

I have started open daylight netconf testtool with juniper yangs.I can able to login to the simulated device using ssh netconf session. But while sending any rpc requests, no response is received and displayed in termainal session and no error…
Ulagammal
  • 35
  • 1
  • 6
0
votes
0 answers

ansible error: from version import VERSION\nImportError: No module named version\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}

I have tried to troubleshoot it but could not do it. Very basic ansible code but I am getting this error: --- - name: backup devices hosts: localhost connection: local gather_facts: yes vars: systime: "{{ ansible_date_time.time |…
farhad
  • 1
  • 2
0
votes
1 answer

get_bgp_summary_information RPC and using logical-systems

Hi I am trying to use PyEZ to to create an automation script. My goal is save response from bgp summary with logical system in a variable This one works: bgpinfo= cor1.rpc.get_bgp_summary_information but I want to get the bgp summary for logical…
farhad
  • 1
  • 2