Giter VIP home page Giter VIP logo

imoocc's Introduction

运维自动化工程

我们工程代码将陆续开源并对外,更新在githup,地址: https://github.com/iopsgroup/imoocc

第一期:自动化资产扫描探测

常见问题:

1、适用人群

欢迎对Devops感兴趣,并且愿意参与开发的人员学习使用。 使用人员:需具备python2.7的开发编程基础。了解django框架,熟悉运维体系内容。

2、这套工程如何获取具体技术实现和技术支持?可以在线提问吗?

这套工程提供给慕课网的实战课程使用。实战课程将提供视频的体系化讲解,并且提供问题答疑。 地址如下: https://coding.imooc.com/class/160.html

3、这套工程的版本是否支持python3

工程是基于python2.7开发的,不支持py3。 目前已经将imoocc工程升级到python3.6、Django1.11.6版本。如需要获取,可以选择慕课网实战区购买。 或者联系[email protected]并说明用意。

...持续更新
图片名称
关于更多信息交流,欢迎关注我的公众账号:mukelaoshi或邮件联系[email protected]

imoocc's People

Contributors

imjeson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

imoocc's Issues

创建用户后无法登录

在终端使用createsuperuser命令创建用户和密码后,在数据库中可以看到新建的密码,但是在网页上却一直显示密码错误(但是密码并没有输入错误)。。。

大佬,探测资产的时候出现的错误,而且发送邮件模块好像也发不出来,测试的时候是正常的

Password Login ... {'10.4.7.20': ('22', '123456', 'root', 'Ubuntu 16.04', 'cmdb\n', '000c290a6796_', 'VMware-564d7280be67c8f3-2f4c4748960a6796\n', 'VMware, Inc.VMware Virtual Platform'), '10.4.7.30': ('22', '123456', 'root', 'CentOS Linux 7.7', 'localhost.localdomain\n', '000c29c5c0d8_', 'VMware-564dd180c9c331c6-8494264cf3c5c0d8\n', 'VMware, Inc.VMware Virtual Platform')} {}
Key Login ... {} {}
(535, 'Error: authentication failed')
Traceback (most recent call last):
File "./main.py", line 201, in
main()
File "./main.py", line 126, in main
key_ip_dic = ft.run()
File "/data/git/imoocc/scanhosts/util/j_filter.py", line 31, in run
self.filter_type()
File "/data/git/imoocc/scanhosts/util/j_filter.py", line 98, in filter_type
VirtualServerInfo.objects.create(server_ip=item_val[0],server_type=item_val[-1],system_ver=item_val[6],sys_hostname=item_val[7],mac=item_val[-3],sn=item_val[-2],vir_phy_id=1,conn_vir_id=int(self.key_sn_relate[sn_key]))
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/query.py", line 348, in create
obj.save(force_insert=True, using=self.db)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/base.py", line 710, in save
force_update=force_update, update_fields=update_fields)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/base.py", line 738, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/base.py", line 822, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/base.py", line 861, in _do_insert
using=using, raw=raw)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/query.py", line 920, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 974, in execute_sql
cursor.execute(sql, params)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/utils.py", line 97, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 124, in execute
return self.cursor.execute(query, args)
File "/opt/python2.7/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/opt/python2.7/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.DataError: (1406, "Data too long for column 'sys_hostname' at row 1")

python main.py 出错

python main.py 运行出错:

/home/hj/Projects/imoocc/apps/detail/models.py:7: RemovedInDjango19Warning: Model class apps.detail.models.ConnectionInfo doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class ConnectionInfo(models.Model):

Traceback (most recent call last):
  File "main.py", line 21, in <module>
    from scanhosts.util.nmap_all_server import NmapNet
  File "/home/hj/Projects/imoocc/scanhosts/util/nmap_all_server.py", line 23, in <module>
    from apps.detail.models import ConnectionInfo, VirtualServerInfo, PhysicalServerInfo, NetConnectionInfo, NetWorkInfo
  File "/home/hj/Projects/imoocc/apps/detail/models.py", line 7, in <module>
    class ConnectionInfo(models.Model):
  File "/root/.virtualenvs/imooc/lib/python2.7/site-packages/django/db/models/base.py", line 309, in __new__
    new_class._meta.apps.register_model(new_class._meta.app_label, new_class)
  File "/root/.virtualenvs/imooc/lib/python2.7/site-packages/django/apps/registry.py", line 221, in register_model
    (model_name, app_label, app_models[model_name], model))
RuntimeError: Conflicting 'connectioninfo' models in application 'detail': <class 'detail.models.ConnectionInfo'> and <class 'apps.detail.models.ConnectionInfo'>.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.