- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 docker 部署 nexus 配置 docker registry
环境:两台 centos7 vm,docker 17.03,nexus vm ip 192.168.1.91、docker 部署 nexus3运行 docker 时需要额外开放一个端口, 9091 为 nexus 访问端口,9092 为 docker 代理仓库端口chmod 777 /nexus-datadocker run -id --name=nexus3 -v /nexus-data:/nexus-data --restart=always -p 9091:8081 -p 9092:9092
2020-05-22 11:48:43 1178
原创 python 自动检测 ilo 健康信息,并发送邮件
实验环境:python2.7方案描述:利用 hpilo 进行健康检测,将有问题的服务器信息通过邮件发送到给管理员,email 利用 jinja2 动态生成模块。1、 利用 jinja2 自动生成模板模板 templates/email_template.html[root@ansible002 pyscripts]# cat templates/email_template.html<meta http-equiv="Content-Type"content="text/html;
2020-05-18 11:27:20 1374
原创 python 发送邮件
实验环境: python2.71、发送文本 email#!/usr/bin/python#-*- coding:utf8 -*-# 文件不能命名为 email.py, 否则会与 from email.mime.text import MIMEText 冲突,报错import smtplibfrom email.mime.text import MIMETextfrom email.header import Headerdef mail_send(mail_body): sender
2020-05-18 10:31:41 245
原创 python hpilo 监控 hp ilo 服务器健康信息
环境: python 2.7,hp ilo4 DL380 Gen91、使用 python hpilo 模块的 get_embedded_health() 方法获取健康信息import hpiloilo = hpilo.Ilo(“10.2.3.3”,“admin”,“admin”) # login ilohealth_summary = ilo.get_embedded_health()['health_at_a_glance'] print health_summary2、python 批
2020-05-16 10:15:45 1189
chromedriver
2017-09-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人