--port 8000--allow-root--no-browser1.3 3 using the PIP tool to quickly import export packages into different projects 1.3.1 1, next in this environment, the installation of all packages exported:(magedu353) [Email protected] cmdb]$ pip Freeze >/tmp/packs.txt(magedu353) [Email protected] cmdb]$ Cat/tmp/packs.txt1.3.2 2. #我们去web环境目录Pip Install-r/tmp/packs.txt#这样就相当于在部署跟cm
Do the monitoring students should know that the company IDC room often has shelves, shelves, repair and scrap server. If the number of servers is very large, it is easy to cause monitoring omission.Big Internet companies integrate surveillance systems and CMDB (Asset Management System | Configuration Management database systems) together, and when a new machine is listed, the CMDB will record relevant infor
beautiful user interface? How to realize single machine support 5000+ machines monitoring requirements? What type of communication is adopted? Active or passive?
IV: The CMDB of the magedu developed by Python
Enterprises are mainly used to solve:Project function, collect hardware data, API, page management. Statistical assets, such as server storage location, account number on the server, and so on.
The development of the
Development CMDB, in addition to record the server's account password, but also need to record the server hardware and software information, if the use of manual records, if the server is large, the workload is relatively large, so I need to be able to automatically obtain this information method, I used the ansible to get, Ansible with the Setup module, you can get this information to the server, and then from this information to filter out the infor
templates directory is the HTML file that is the T in MTV. Manage.py is a Django project management file.
3. Create an app
You can include multiple apps in each Django project, like sub-systems, sub-modules, features, and so on, in a large project, independent of each other, but also associated.
All apps share project resources.
Enter the command in the terminal terminal below Pycharm:
Python manage.py Startapp CMDB
This creates a app,django, called
Django Installation:
Pip Install Django (window version, note the latest version of Django does not support python2.7 below)
Django Creation Project:
Django-admin startproject ProjectName (Custom)
command to execute manage.py:
CD into the project path, enter manage.py to see the Django command
Example: Runserver the project hangs on the site, as shown below:
Create an app
You can include multiple apps in each Django project, like sub-systems, sub-modules, features, and so
1.--Creating table SpacesCreate tablespace cmdb_db datafile ' \home\cmdb_11.dbf ' size 100m autoextend on next 50m extent management local;2.--Build UsersCreate user cmdb_1023 identified by admin default Tablespace cmdb_db;3.--give permissionGrant CONNECT,RESOURCE,DBA to cmdb_db;4.--Import data (executed in command window)Imp cmdb/admin file=/home/cmdb_henan.dmp fromuser=cmdb_l Touser=cmdb;5.--Exporting dat
PIP General ConfigurationPip is a Python package management tool, 3.x version directly with, can be used directly, and yum, in order to use the domestic image, the following configurationLinux systems:$ mkdir ~/.pip$vim ~/.pip/pip.conf[Global]Index-url=index-url = Https://pypi.tuna.tsinghua.edu.cn/simpleRedis is already installed.If the hint says PIP version is too low, follow the prompts to upgrade directly$ pip Install--upgrade PIP-VVVTo see the installation information for the Redis packageBa
A Java-developed Python path -------------- (1 ),
I recently started to learn Python, mainly because I am writing a cmdb o M management platform for HNA through JAVA. I am the only developer sitting in the O M room, and I am also a father and mother, front-end, backend, test, design, requirements,
Release all !! I have also searched related CMDB on GitHub, but most of them are written through Python, so I
Dear Students:Hello! 51CTO College for the dream of value-added, invites your attention! 51CTO Academy is committed to allowing experts to share technology and technology to achieve, so that the vast number of technology enthusiasts convenient and affordable access to quality learning resources.In order to facilitate the study, we specially organized the Python Learning Roadmap-Suitable for beginners to project development (video + documentation) dry extract , click to see more >>
Django models operation database, djangomodels
1. Create a database and link a database
(1) Create a database in models. py
from django.db import modelsclass UserInfo(models.Model): nid = models.AutoField(primary_key=True) user = models.CharField(max_length=30) email = models.EmailField()
(2) register the app in settings. py
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages'
Computer room management has always been a long-standing problem in operation and maintenance department. Operation and maintenance department has been missing a unified asset management system.Number of equipment, brand variety, information update is not timely. Ultimately, it is difficult for it to review and evaluate existing resources.Many business operations departments do not have the ability to develop the CMDB system to meet their own needs, a
%2bkkmtkavy%2fuibuueocr5aqbi5xwrop7uql1t6dx1bdpl%2fauImportant: How to efficiently produce and distribute packages on millions of server sizes? I believe many of our classmates are plagued by different environments and configurations, so let's see how Google solves this problem.2. Talk about monitoring (a): What is worth monitoring and the choice of monitoring indicatorshttps://mp.weixin.qq.com/s?__biz=MzA5Nzc4OTA1Mw==mid=412113314idx=1sn= b500ceec76a6a844fa7d0c277c2d166bscene=0key= B28b03434249
device inventory file. Let him know that they need access to those mainframe devices. Ansible is also able to script you to choose a different inventory file, which can be written in any language, just to match his output format to JSON.Scripts for external inventory lists are required to accept 2 kinds of ansible calls. Assume that it is called with--list. It returns a list of groups and hosts that can be used. If called with--host, a list of available hosts is returned.All the output must be
first chapter describes how Ansible requires a device inventory list file to access host devices. Ansible can also use scripts to select other inventory list files. This script can be written in any language as long as its output format complies with JSON.
The external inventory list script needs to accept two types of Ansible calls. If you use -- list for calling, it returns a list of available groups and hosts. If you use -- host for calling, returns a list of available hosts. All outputs mus
Key Performance Indicators (KPIs ):
1. Percentage of Ci attribute errors in CMDB
2. The proportion of the Ci verified by the configuration is successful.
3. Number of unauthorized configurations
4. Number of accidents and problems caused by improper changes
5. Time required for approval and implementation of a change
6. Number of service failures caused by inaccurate CI information
Key success factors:1. Keep
environment", when we can use the VIRTUALENV virtual environmentUsing plug-ins, in ~/.pyenv/plugins/pyenv-virtualenv/To unbind the local3.5.3 version of Python just now.$ pyenv Local SystemI want to set up a virtual environment in the CMDB file to see the Python version number of the CMDBSetting up a virtual environment$ pyenv virtualenv 3.5.3 magedu353Change the CMDB directory to the magedu353 version num
of the following operations are performed in Pycharm.) )Click: File-->new Project, the following dialog box appears.Select the Django column and enter the project name, which uses the MySite of international practice. Select the Python interpreter version and click Create.Django will automatically generate the following directory structure:The directory with the same name as the project is a configuration file, and the templates directory is the HTML file that is the T in MTV. Manage.py is a Dj
synchronized:binlog-ignore-db = mysql out of sync MySQL library and test libraryBINLOG-IGNORE-DB = TestAfter modifying the configuration file, restart the service: Services mysqld restartMysql> Show master status; +---------------+----------+--------------+------------------+| File | Position | binlog_do_db | binlog_ignore_db |+---------------+----------+--------------+------------------+| binlog.000001 | 1304 | CMDB |
Today, the operation and maintenance of the platform to add a function, is to integrate the Zabbix picture into the CMDB platform, of course, if you want to display graphics very beautiful is not recommended to do so; After several blogs, I also write a summary of the document:The main ideas are:1. Find the URL of the Zabbix image.2. Read all the contents of the URL to generate a JPG file.3, traverse the picture directory to return the picture file to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.