# Adhoc commands hang when connecting to Juniper devices

**URL:** <https://forum.ansible.com/t/adhoc-commands-hang-when-connecting-to-juniper-devices/36251>\
**Category:** Ansible Project\
**Created:** [January 26, 2022, 5:00pm UTC](https://forum.ansible.com/t/adhoc-commands-hang-when-connecting-to-juniper-devices/36251 "2022-01-26T17:00:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Whittle](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Thomas\_Whittle](https://forum.ansible.com/u/Thomas_Whittle)\
**Post date:** [January 26, 2022, 5:00pm UTC](https://forum.ansible.com/t/adhoc-commands-hang-when-connecting-to-juniper-devices/36251/1 "2022-01-26T17:00:08Z")

</div>

Hi all,

I’m new to Ansible and I’m trying to get started connecting to the devices in my lab.

I’m starting with adhoc commands and will move onto playbooks as soon as I’m confortable with Adhoc.

When I run the below command and enter my password the cursor blinks (about 10 times) and then stops. The command prompt then does nothing. I can interupt the command with Ctrl+C, however if I don’t interupt the command and just leave it nothing happens, it hang there seemingly indefinately. The command I’m running is:

ansible _ip\_address -m raw -a “show version” -u_ username -k

To be clear it works fine when connecting to Cisco devices. So I’m wondering if it is a Juniper issue. But I’m hopefully someone might have seen this issues before and there might be an easy fix 🙂

Many Thanks to anyone who can offer guidenance.

Kind Regards,  
Tom
