- 博客(6)
- 收藏
- 关注
转载 监控aws ec2 instance 的ntp 时间同步状态,并报警
#!/usr/bin/env python import ntplib import os import time import json import boto3 ENV=os.getenv('env') REFRESH=os.system("/xxx/ansible/ec2.py --re...
2018-05-16 10:27:00
688
转载 更新 AWS ECR permission policy
import sys import boto3 reponame=sys.argv[1] client = boto3.client('ecr') response = client.set_repository_policy( registryId='123455667789', ...
2018-03-01 15:01:00
421
转载 查询aws账户的insufficient cloudwatch alarm 并且删除
#!/usr/bin/python import boto3 client = boto3.client('cloudwatch') response = client.describe_alarms( AlarmNamePrefix='ip', StateValue='I...
2017-08-28 15:53:00
246
转载 查询ecr 指定的docker image 状态
#!/usr/bin/python import sys import boto3 TAG=sys.argv[-1] LENGTH=len(sys.argv) client = boto3.client('ecr') print("###############################...
2017-07-19 10:18:00
358
转载 查询aws账户中所有的elb和其后端的instance状态
#!/usr/bin/python import sys import boto3 client = boto3.client('elb') def INSTANCEUNDERELB(): response = client.describe_instance_healt...
2017-07-19 10:13:00
518
转载 df 和 du 显示的文件系统磁盘使用量不一致的问题
df和du同一个文件系统显示的磁盘使用量信息不一致,df显示磁盘空间已满,但是du显示的文件系统空间却没有占满整个文件系统, 通过lsof 发现对该文件系统有很多的del进行还在操作该文件系统, 通过cut或者awk取出进程号,kill掉 解决问题。 ...
2014-12-05 22:23:00
149
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人