old boyis a domestic group early to do Python training institutions, the following small series for the Python Automation course and the full stack of lessons to do a summary, hope to help you:python full stack development:Suitable for the crowd: fresh undergraduates, specialties, and 0 basic studentsLearning Basics: 0 BasicsClass form: 5 months, Monday to Friday classesCourse content: Linux basics, Python basics, network programming, database applications, Web development, algorithmic design pa
facilitates decoupling# When the access level two route is the CMDB, it is forwarded to the App01.urls processing URL (r ' ^cmdb/$ ', include (' App01.urls ')),AliasMainly used for the front end of the from form verification, the following instance, the address of the URL, because the address submitted by the form is aliased, so it is replaced automatically:#urls.pyfromdjango.conf.urlsimporturlfromapp01imp
judgment.import requestserror_code_list = [401,402,403,404,500,501,502,503,504,505]with open("url_list.txt","rb") as url_file: while True: url_line = url_file.readline() if url_line: str_url_line = str(url_line,encoding="utf-8") str_url = str_url_line.split("\n")[0] # 从文件里面读取的行,后面是有换行符的。\n的 不能直接使用,需要去掉哦。 res = requests.get(str_url) if res.status_code in error_code_list: print("url: {}, status code: {}".format(str_url,r
desk log, and so on. The greater the need for automation in each section, the more you need teams rather than individuals to solve these problems. The success of IT service management based on ITIL in multinational companies such as AXA Group and Proctor Gamble shows that IT service management can indeed be scaled up effectively.
Error recognition 3: "ITSM requires implementation of configuration management based on ITIL, but it's too hard."
The best practice theory holds that configuration
Tags: for lang pat meta connections int obj view URL1. From APP01 import models importing database2.U = Request. Post.get (' username ') p = Request. Post.get (' password ') to obtain user-entered account number and password through these two steps3.obj = models. UseInfo.object.filter (Username=u, Password=p). First () match the databaseIf obj: Determine if the user has entered the correct account passwordURL file Settings login and Indexurl interface fromDjango.conf.urlsImportURL fromApp01Impor
, bound port and so on information.When the new system or site released by the Transport and Research and development coordination completed, and later by operations to maintain, such as expansion capacity, etc.
2. Receive Jira release task action notification, and notify to a certain Jenkins to execute, sonar for static code inspection, etc.3. Receive Jenkins build deployment feedback over the progress4. Show build Deployment Progress5. Part of the CMDB
1 The first part of the catalogue detailedModify the configuration in the URL in the Django project: fromDjango.contribImportAdmin fromDjango.conf.urlsImportURL fromDjango.urlsImportPath fromDjango.shortcutsImportHttpResponsedefHome (Request):returnHttpResponse ('') Urlpatterns=[url (r'^admin/', admin.site.urls), url (r'^h.html/', Home),]View CodeYou need to enter the corresponding page to accessCreate Apps #2 SectionIt is recommended to do Django in a clean directory, do not directory nested di
Tags: sqliteFirst, how to enter the sqlite3 interactive mode for command operation?1. Confirm whether the Sqlite3 is installedGo to the python command line and execute>>> Import sqlite3
>>>No error, indicating that Sqlite3 has successfully installed the2. How to enter the Sqlite3 command lineSqlite3/path/to/dbnameDirectly execute sqlite3 Plus database name~ sqlite3 ~/downloads/django_test/cmdb/db.sqlite3
sqlite3sqlite version 3.14.0 2016-07-26 15:17:1
The recent project group has been used before the Onecmdb has a problem, in addition and deletion to change the data when unusually slow, so consider whether you can optimize the Onecmdb, because I have limited level, the Onecmdb code-level optimization temporarily still a bit difficult. Therefore, the existing open source CMDB research, the first is Cmdbuild (official website).For Cmdbuild, the first conclusion.Advantages and Disadvantages
F
Updated "%visible_nameelse:print "Thehost%s hasnointernet_ip "%visible_nameRequirements: Add public network bandwidth monitoring for all cloud hosts, but not every host has a public IP, the bandwidth of the host with public IP is not exactly the same, for example, some are 1M, some 5M, bandwidth monitoring threshold is the bandwidth value *0.8. For example, 1M bandwidth, the monitoring threshold is 0.8M. (Note: After testing, in the Zabbix trigger this is 0.8M, will not issue an alarm, but the
First, the original intention:Some of the open source software configuration files identified in the section in English, then we in the bulk generation of configuration files, we can import Chinese characters from the CMDB (Idc_name),Then convert it to pinyin, or splice the IP address for more accurate identification. For example: Smokeping's targets configuration file, as follows:+== telcom++yunfuxinxingshuangxian-01-61= Yunfu Emerging Dual line -01=
dictionary key, but not used.
? The list cannot be used as a key because the list is mutable.
determine if a value is of a data typetype (XX) is Dicttype (XX) is strtype (xx) is float
A method for bulk creating a dictionary (key-value pair) with the same value:Fromkeys ([+], ' t ')Fromkeys ([1,2,3],[])
HaskeyB =1 in B
Circular Dictionary:For k,v in B.iems:print k,vFor K in B:print K,b[k]
PopPopitem # Random Delete, try not to use
SetDefault # If the
SetSet set, which is an unordered and non-repeating collection of elements
The benefits of Set
Set access several fast set native solve data duplication problem# The original old_dict in the database = {"#1": {' Hostname ':' C1 ',' Cpu_count ':2,' Mem_capicity ':80},"#2": {' Hostname ':' C1 ',' Cpu_count ':2,' Mem_capicity ':80},"#3": {' Hostname ':' C1 ',' Cpu_count ':2,' Mem_capicity ':80}}# new data reported by CMDB new_dict = {"#1":
to Session_Start (), is not very troublesome.So, discard the built-in file session Save manager that comes with PHP.What does it use to store and manageSession? I am currently in the two development of the CMDB is used by MySQL, the trouble in the constant check time and then delete. Every logic behind to check again, very troublesome, my first thought is memcached, after all, set the time is good, it should be very convenient. Results see this artic
' index/(? p #form the value (5) URL classification, multiple app URL distributionAdd the URL of the app to the URL under the main program Django projectURL (r ' ^cmdb/', include ("App01.urls")), #到app01中加载app01的urls文件URL (r ' ^monitor/', include ("App02.urls")), #到app02中加载app02的urls文件8,django ORM Operations Database1, create a database(1) Create a classFrom django.db import models# App01_userinfoclass
maintenance personnel is the after autumn grasshopper!" ": http://3060674.blog.51cto.com/3050674/1598255What can the OPS do after development?• Help the company develop various automation tools, custom development of various open source software• Help evaluate and optimize the business technology architecture• Development of the company's internal office system, CRM, website, etc.• Be an All-stack engineer, full stack means what you can doCourse Description:
Language Basics (5-6 weeks)
and full coverage" (The friends who care about integrated monitoring can see my other monitoring posts). What is the core of monitoring? Integrated Monitoring and management platform. Through the Integrated Monitoring and management platform, the event information generated by various management tools in IT environment is collected and processed uniformly, and important alarm events will be sent to the IT service process platform and processed in the event management or work order management pr
implementation support of the client is related to it.3.5 Several parameters that need to be adjusted1) Set the system parameter Vm.overcommit_memory=1, can avoid bgsave/aofrewrite failure.2) Setting the timeout value greater than 0 allows Redis to actively free up idle connections.3) Set Repl-backlog-size 64MB. The default value is 1M, and when the write volume is large, a backlog overflow causes incremental replication to be unsuccessful.4) client Buffer parameter adjustmentClient-output-buff
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.