i want to use snmp_facts module ,  and i installed the  pysnmp, 

    but everytime i execute the module, returns the error  "msg": "Missing 
required pysnmp module (check docs)"

    i really can not figure it out,  need some help;

    and i tried to import manully bye command line, there is no error on that: 

(AnsibleCmdb) [yd_hzj@localhost ansible-snmp-facts-master]$ python 
Python 2.7.5 (default, Jul 31 2016, 13:13:56) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pysnmp.entity.rfc3413.oneliner import cmdgen

    here is my playbook output 

(AnsibleCmdb) [yd_hzj@localhost ansible-snmp-facts-master]$  ansible-playbook 
snmp_facts-playbook.yml -i,  -vvv
Using /home/yd_hzj/project/rango/ansible/ansible.cfg as config file

PLAYBOOK: snmp_facts-playbook.yml **********************************************
1 plays in snmp_facts-playbook.yml

PLAY [] *************************************************************

TASK [Get SNMP information from switches] **************************************
task path: /home/yd_hzj/test/ansible-snmp-facts-master/snmp_facts-playbook.yml:6
<> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 
LC_MESSAGES=en_US.UTF-8 /usr/bin/python && sleep 0'
fatal: []: FAILED! => {"changed": false, "failed": true, 
"invocation": {"module_args": {"authkey": null, "community": "aaabbb", "host": 
"", "integrity": null, "level": null, "privacy": null, "privkey": 
null, "removeplaceholder": null, "username": null, "version": "v2"}, 
"module_name": "snmp_facts"}, "msg": "Missing required pysnmp module (check 

NO MORE HOSTS LEFT *************************************************************
        to retry, use: --limit @snmp_facts-playbook.retry

PLAY RECAP *********************************************************************                : ok=0    changed=0    unreachable=0    failed=1   

You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to