Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible采集资产 #76

Open
strugglehonor opened this issue May 12, 2020 · 5 comments
Open

ansible采集资产 #76

strugglehonor opened this issue May 12, 2020 · 5 comments

Comments

@strugglehonor
Copy link

大佬,想问下ansible采集资产这里是怎么做的,是使用Python调用ansible APi执行playbook吗,执行playbook返回的内容好像不是json,没学ansible多久,请教一下哈

@pythonzm
Copy link
Owner

采集资产的基础信息,就是直接调用的ansible API ,使用setup模块,然后将返回的结果进行解析
采集阿里云ECS,是直接用的阿里的SDK

@strugglehonor
Copy link
Author

get,谢谢哈

@strugglehonor
Copy link
Author

大佬,你好,想请教一下,在资产采集里面,pysnmp和python-nmap等模块是用来进行端口扫描,以此来主动探测服务器的吗?但是在项目中好像没有发现使用了这些模块

@pythonzm
Copy link
Owner

pythonzm commented Jun 7, 2020

嗯,之前有些主动探测功能,后来发现物理机的价格、过保日期等一些信息无法通过这种方式加进来,就把相关内容删除了,后来又觉得价格这些内容又不是必须的,但是懒得改了。。

@strugglehonor
Copy link
Author

get,非常感谢哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants