1, Netstat-an | find/i/C "time_wait" Statistics the number of Windows TCP connection lines with the status "Time_wait"
2, Innobackupex--user=root--password=123456--databases=mysql/home/db_backup/with Xtrabackup backup database, can also do incremental backup
3, Zabbix monitoring log error check out, ntpd except:
({template_linux:log[/var/log/messages].regexp (Error)}) =0) and (({Template_linux:log[/var/log/messages].regexp ( NTPD)}) =0)
4. Monitoring Windows system logs
Eventlog[name,<regexp>,<severity>,<source>,<eventid>,<maxlines>,<mode>]
But this key does not monitor the Windows machine's normal log
5.
# Use If-elseif-else$value = $argsIf ($value-eq 1) {"Beijing"}elseif ($value-eq 2) {"Shanghai"}elseif ($value-eq 3) {"Tianjin"}else{"Chongqing"} # using Switchswitch ($value) {1 {"Beijing"} 2 {"Shanghai"} 3 {"Tianjin"} 4 {"Chongqing"}}ps c:\users\administrator\desktop>. \ck.ps1 2ShanghaishanghaiPS C:\Users\Administrator\Desktop > notepad.exe. \CK.PS1 #编辑ps脚本
This article is from the "Chuck's blog" blog, so be sure to keep this source http://chuckzeng.blog.51cto.com/10524728/1884071
December 19 Work Study notes