# Juniper/Junos AWX

**URL:** <https://forum.ansible.com/t/juniper-junos-awx/33530>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 30, 2020, 11:49pm UTC](https://forum.ansible.com/t/juniper-junos-awx/33530 "2020-07-30T23:49:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Biker](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bill_biker/32/8087_2.png) [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Post date:** [July 30, 2020, 11:49pm UTC](https://forum.ansible.com/t/juniper-junos-awx/33530/1 "2020-07-30T23:49:26Z")

</div>

Hello Members,

I am using the junos\_modules that come with AWX (like junos\_commands) to  
get configuration of a juniper device - this works fine. I get the output of the configuration  
by using results.stdout\_lines. The device has a large configuration. I just want to get results  
for a certain part of the configuration: “protocols bgp group JuniperMesh”

This is easy from the command line using a special container with the Juniper.junos role configured, etc.

I am trying to parse the output I get for the “show configuration” for the values noted above.  
Nothing works - cannot use regex\_search, when, contains, etc I am unable to narrow the results

with those methods using a playbook in awx. The bgp output I want is only about 12 lines.

Any suggestions on how to narrow my results from the results.stdout (or stdout\_lines)

Thanks for this great resource.

ewholz
