![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
低调沉稳
谨言慎行,心平气静,低调沉稳,克己强身,沉着冷静,锐意进取;
展开
-
powershell巡检脚本
powershell巡检脚本原创 2022-10-14 11:42:34 · 308 阅读 · 0 评论 -
ansible cloud not import the dnf python module using
ansible cloud not import the dnf python module using原创 2022-10-13 17:39:47 · 714 阅读 · 0 评论 -
etcd备份和mysql备份
etcd备份:#!/bin/bashcd /etc/etcd/sslendpoints=https://198.203.183.231:2379,https://198.203.183.232:2379,https://198.203.183.233:2379export ETCDCTL_API=3/usr/local/bin/etcdctl --cacert=ca.crt --cert=peer.crt --key=peer.key --endpoints=$endpoints snapsho.原创 2021-08-16 11:10:24 · 69 阅读 · 0 评论 -
ntp对时
#!/bin/bashecho "ntp-syn begin"num=`ip -4 a | grep inet | awk '{print $2}' | awk 'NR==2{print}' | awk -F'.' '{print $4}' | awk -F'/' '{print $1}'`echo "$num"for i in `ceph osd dump |grep "6\...原创 2019-04-13 15:41:22 · 1802 阅读 · 0 评论 -
for循环
for ip in `cat test-ip` ; do ssh root@$ip "cat /root/test-ip" ; done原创 2019-06-11 21:42:53 · 94 阅读 · 0 评论 -
虚机迁移
#!/bin/bashnova reset-state "$1" --activesleep 10nova stop "$1"nova migrate "$1"sleep 200nova start "$1"echo "ok"用法: migra.sh <uuid>原创 2019-06-11 23:08:40 · 635 阅读 · 0 评论