
脚本
诸葛冰玄
懒得写。。。
展开
-
服务器操作记录cmdtrack
cd /etc/profile.dvi cmd.sh ####################################################一下为脚本内容################################################# cmd track###################################原创 2017-07-27 17:33:01 · 930 阅读 · 0 评论 -
查看swap占用的脚本
#!/bin/bash# Check who used swapSUM=0OVERALL=0for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; doPID=`echo $DIR | cut -d / -f 3`PROGNAME=`ps -p $PID -o comm --no-hea原创 2017-08-28 10:28:16 · 714 阅读 · 0 评论 -
获取tomcat日志文件中的一段时间的日志
随笔,就一条命令sed -n '/2017:00:00:/,/2017:01:00:/p' localhost_access_logtime.2017-11-20.txt >test01.logsed -n '/起始时间/,/结束时间/p' 日志文件名 >test01.log原创 2017-11-20 11:20:51 · 2288 阅读 · 0 评论 -
监控网卡流量脚本
#!/bin/bash################################################################################################### iftop## Description:# - Get data from network#############################...原创 2017-12-26 16:13:08 · 299 阅读 · 0 评论 -
centos7初始化脚本
#!/bin/bash################################################## --Info# Initialization CentOS 7.x script################################################## Auther: shaonbean@qq.com# Ch...原创 2018-07-20 14:58:09 · 1339 阅读 · 1 评论 -
简单页面记录常用的网站
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head...原创 2019-04-23 10:28:42 · 398 阅读 · 0 评论 -
zabbix监控tomcat脚本
#!/bin/bash#-------------------------------------------------------------------------------# Functions: zabbix active monitorversion_num=20181110#--------------------------------------------------...原创 2019-04-29 14:54:45 · 763 阅读 · 0 评论 -
查询具体IP地址--python3
前几天碰到一个需求,要从日志里提取普陀区的访问,经过一系列的查询,测试,终于完成了一个脚本,能基本满足需求,从访问日志里提取出普陀区的IP地址,代码如下:PutuoIPCheck.py# -*- coding: UTF-8 -*-from pymongo import MongoClientfrom bs4 import BeautifulSoupimport jsonfrom ur...原创 2019-06-25 17:46:26 · 658 阅读 · 0 评论 -
centos7初始化脚本2.0
#!/bin/bash################################################## --Info# Initialization CentOS 7.x script################################################## Auther: shaonbean@qq.com# Ch...原创 2019-08-27 11:40:51 · 1161 阅读 · 0 评论