VCHECK(每日报告)

http://www.virtu-al.net/vcheck-pluginsheaders/vcheck/

介绍

vCheck是一个PowerShell HTML框架脚本,该脚本被设计为在您进入办公室之前作为计划任务运行,以便通过电子邮件将关键信息直接呈现给收件箱,格式清晰易懂。

该脚本挑选了一些关键已知问题和潜在问题,这些问题被编写为PowerShell脚本编写的各种技术的插件脚本,并将其全部报告在一个地方,因此您早晨要做的就是检查电子邮件。

关于此报告的关键问题之一是,如果在特定位置没有问题,您将不会在电子邮件中收到该部分,例如,如果没有可用空间少于5%(可配置)的数据存储,则磁盘空间部分在此脚本的虚拟基础结构版本中,它不会显示在电子邮件中,这确保您进入办公室时仅能获得所需的信息。

尽管报告框架也可以用于审核脚本,但是不要将此脚本与审核脚本混淆。我不想提醒您,您有5台主机,并且每天都有名称和它们有多少个CPU,因为您不想读取此类信息,除非您需要它,否则该脚本只会告诉您向您介绍基础架构的问题区域。

什么是新的

vCheck已更新为更受社区驱动且更易于扩展,已将支票删除并放入单独的插件中,使人们更易于贡献。

HTML输出已被重新格式化以与更新版本的Outlook一起使用。

添加了设置向导,以简化设置,并且不再需要将vCenter地址作为脚本的参数来引用。

随着插件的移出,它使此HTML报告框架易于适应其他支持PowerShell的产品,例如VMware vCD,Sharepoint,Exchange,vShield,VMware View,SQL,Active Directory等。–如果您有兴趣开始使用此模板,请与我联系。

标题图像已添加到HTML报告中。

还有更多。

Github

现在,所有脚本都可以通过Github获得,并且可以在Github网站上进行修改,我将在检查后批准更改,这使每个人都可以参与其中并快速添加新功能!

它还使人们能够以简单的方式记录问题并控制问题的解决时间。请确实在网站上记录您的问题,而不要在我的博客上发表评论。

要下载脚本,请查看以下示例屏幕快照,然后为每个vCheck版本单击“ Download Zip”,此页面中每个版本的下载链接如下。

下载vCheck

当前,存在以下每个领域的vCheck报告:

下载链接 Github项目 输出页面示例
vCheck for vSphere 点击这里 点击这里
vCheck for Exchange 2010 点击这里 点击这里
v检查vCD 点击这里 快来了
vCheck for SCVMM 点击这里 点击这里
vCD审核脚本 点击这里 点击这里
vCloud Air审核 点击这里 点击这里
思科UCS 点击这里 克隆仓库,并在根目录下签出Example-Report.html

现在,按照下面的视频设置vCheck脚本。

外挂程式

vCheck的设计目的是在plugins文件夹中添加任何脚本(.ps1文件)的输出,这些脚本中的每一个将以数字或字母顺序运行,并且输出包含在vCheck报告中。如果您对其中一项检查的信息不感兴趣,强烈建议您删除该文件,因为这将使报告更快。

对于管理这些文件的一种好方法,请确保您在此处查看Jake的文章,他将向您展示如何使用PowerCLI轻松检查新的插件和尚未安装的插件,甚至可以在单个命令中安装它们。

标头

将使用vCheck文件夹根目录中的Header.jpg并将其显示在报告的标题栏中(除非您的电子邮件客户端不支持嵌入式base64编码的嵌入式图像),可以将其替换为您选择的任何图像文件,但是建议您坚持使用与当前图像相同的长度和宽度。

在此网站的“标题”页面上可以找到标题的选择。

vSphere版本的vCheck的前提条件

您需要安装以下组件才能运行此脚本并在VMware环境中进行报告:

  • PowerShell V2
  • PowerCLI 5.01或更高版本
  • vCenter 2.5或更高版本

配置脚本

首次运行此脚本时,它将通过配置菜单,该配置将被保存并用于以后的所有脚本运行。如果要返回配置或将新插件添加到脚本,请使用–config参数运行脚本,如下所示:

<span style="color:#515151">.\vCheck.ps1 –config</span>

输出文件

有些人喜欢保存HTML的副本以备将来参考,或者他们可以回头查看问题何时开始发生,为此,请使用–OutputPath参数并指定将HTML保存的位置,以进行此运行。脚本如下:

<span style="color:#515151">.\vCheck.ps1 –OutputPath C:\vCheckOutput\DailyReports</span>

运行脚本

以下视频将显示如何首次运行脚本以及此后的后续运行:

调整连接信息

在某些情况下,您将需要调整connect-viserver cmdlet用于连接到vCenter的连接信息,可以通过配置向导进行调整,或者如果需要额外的凭据,请在以下位置编辑00 Connection Plugin for vCenter.ps1文件。如下所示的00 Initialize文件夹,或使用New-VICredentialStoreItem存储连接凭据:

之前

<span style="color:#515151">$VIConnection = Connect-VIServer $VIServer</span>

<span style="color:#515151">$VIConnection = Connect-VIServer $VIServer –user “AlternateUsername” –Pass “Alternatepassword” –Protocol Https</span>

学到更多

想更多地了解vCheck项目?最近,我在PowerShell峰会上谈到了这一点,您可以在这里观看视频:

常问问题

问:如何添加多个电子邮件收件人?

A.编辑Global Variables.ps1文件,并将$ EmailTo开头的行替换为以下内容:

<span style="color:#515151">$EmailTo ="user01@example.com,user02@example.com"</span>

问题或功能要求?

如果在运行此脚本时遇到问题,或者只是希望它可以做一些不同的事情或新的事情,请将您的想法添加到此处的github问题部分:https : //github.com/alanrenouf/vCheck-vSphere/issues? state =open

-艾伦

Introduction

vCheck is a PowerShell HTML framework script, the script is designed to run as a scheduled task before you get into the office to present you with key information via an email directly to your inbox in a nice easily readable format.

This script picks on the key known issues and potential issues scripted as plugins for various technologies written as PowerShell scripts and reports it all in one place so all you do in the morning is check your email.

One of they key things about this report is if there is no issue in a particular place you will not receive that section in the email, for example if there are no datastores with less than 5% free space (configurable) then the disk space section in the virtual infrastructure version of this script, it will not show in the email, this ensures that you have only the information you need in front of you when you get into the office.

This script is not to be confused with an Audit script, although the reporting framework can also be used for auditing scripts too.  I don’t want to remind you that you have 5 hosts and what there names are and how many CPU’s they have each and every day as you don’t want to read that kind of information unless you need it, this script will only tell you about problem areas with your infrastructure.

What’s new

vCheck has been updated to be more community driven and easier to expand, the checks have been removed and put into separate plugins which make it easier for people to contribute.

The HTML output has been reformatted to work with newer versions of Outlook.

A Setup Wizard has been added for easy setup and no more need to reference the vCenter address as a parameter of the script.

As the plugins have been moved out it makes this HTML report framework easy to adapt to other PowerShell enabled products like VMware vCD, Sharepoint, Exchange, vShield, VMware View, SQL, Active Directory and more. – please contact me if your interested to start your own using this template.

A header image has been added to the HTML report.

And much much more.

Github

All scripts are now available via Github and can be modified as part of the Github website where I will approve the changes after checking, this enables everyone to get involved and add new features fast!

It also enables people to log issues in an easy way and control when they are fixed. Please do log your issues on the site rather than a comment on my blog.

To download the script check out the below example screenshot and click the “Download Zip” for each of the versions of vCheck, download links follow in this page for each of the versions.

Download vCheck

Currently there is a vCheck report for each of the following areas:

Download Link Github Project Example Output Page
vCheck for vSphere Click here Click here
vCheck for Exchange 2010 Click here Click here
vCheck for vCD Click here Coming soon
vCheck for SCVMM Click here Click here
vCD Audit script Click here Click here
vCloud Air Audit Click here Click here
Cisco UCS Click here Clone the repo and check out the Example-Report.html in root

Now follow the video below to set up the vCheck script.

Plugins

vCheck has been designed to add output from any script (.ps1 file) in the plugins folder, each one of these will be run in numerical or alphabetical order and the output included in the vCheck report.  If you are not interested in the information for one of the checks it is highly recommended you remove the file as this will make the report faster.

For a great way to manage these make sure you check out Jake’s post here, he will show you how to use PowerCLI to easily check for new plugins and plugins which you do not have installed, you can even install them in a single command.

Headers

The Header.jpg in the root of the vCheck folder will be used and displayed in the title bar of the report (unless your email client does not support embedded base64 encoded images), this can be replaced with any image file of your choice but it is advised you stick to the same length and width as the current image.

A selection of headers can be found on the Headers page of this site.

Prerequisites for vSphere version of vCheck

The following will need to be installed for you to run this script and report on your VMware environment:

  • PowerShell V2
  • PowerCLI 5.01 or later version
  • vCenter 2.5 or later version

Configuring the script

The first time you run this script it will go through a configuration menu, this configuration will be saved and used for all future runs of the script.  If you want to go back through the configuration or you add new plugins to the script then please run the script with the –config parameter as follows:

.\vCheck.ps1 –config

Output File

Some people like to save a copy of the HTML for future reference or so they can go back and see when a problem started happening, to do this use the –OutputPath parameter and specify a location where the HTML will be saved, to do this run the script as follows:

.\vCheck.ps1 –OutputPath C:\vCheckOutput\DailyReports

Running the script

The following video will show how to run the script for the first time and any subsequent runs after this:

Adjusting connection information

In some cases you will need to adjust the connection information used by the connect-viserver cmdlet to connect to your vCenter, this can be adjusted through the config wizard or if extra credentials are needed please edit the 00 Connection Plugin for vCenter.ps1 file in the 00 Initialize folder as below or use the New-VICredentialStoreItem to store connection credentials:

Before

$VIConnection = Connect-VIServer $VIServer

After

$VIConnection = Connect-VIServer $VIServer –user “AlternateUsername” –Pass “Alternatepassword” –Protocol Https

Learn more

Want to learn more about the vCheck Project? Recently I spoke about it at the PowerShell Summit, you can watch the video here:

FAQ

Q.  How do I add multiple Email recipients ?

A.  Edit the Global Variables.ps1 file and replace the line starting $EmailTo to the following:

$EmailTo ="user01@example.com,user02@example.com"

Issues or feature requests?

If you have issues when you run this script or just wish it could do something different or new, add your thoughts to the github issues section here: https://github.com/alanrenouf/vCheck-vSphere/issues?state=open

-Alan

SHARE THIS:

VCHECK(每日报告)相关推荐

  1. 【高效日程管理】基于iOS快捷指令自动化,这是一个记录长期目标、统计专注时长、记录健康数据(需要智能手环、手表)、并生成每日报告与自我总结的高效日程管理方式

    核心功能: 1.记录专注时长:分为学霸模式和普通模式,又有正计时和倒计时两种方式.学霸模式下禁止离开计时页面,否则算您结束任务或放弃任务.普通模式下可以离开计时页面,但结束后要进行签到.并且在您进行体 ...

  2. 敏捷冲刺每日报告四(Java-Team)

    第四天报告(10.28  周六) 团队:Java-Team 成员: 章辉宇(284) 吴政楠(286) 陈阳(PM:288) 韩华颂(142) 胡志权(143) github地址:https://gi ...

  3. 敏捷冲刺每日报告一(Java-Team)

    第一天报告(10.25  周三) 团队:Java-Team 成员: 章辉宇(284) 吴政楠(286) 陈阳(PM:288) 韩华颂(142) 胡志权(143) github地址:https://gi ...

  4. 敏捷开发每日报告--day5

    1 团队介绍 团队组成: PM:齐爽爽(258) 小组成员:马帅(248),何健(267),蔡凯峰(285)  Git链接:https://github.com/WHUSE2017/C-team 2 ...

  5. 敏捷冲刺每日报告——Day5

    1.情况简述 Alpha阶段第五次Scrum Meeting 敏捷开发起止时间 2017.10.29 00:00 -- 2017.10.29 21:00 讨论时间地点 2017.10.29晚9:00, ...

  6. 软件测试第一课WIN10网站部署课堂学习每日报告

    课前内容: 1)授课老师:马林,林伟 2)前三排加分 3)不用交手机,但是课堂玩手机被抓三次将挂科. 4)上课不可以玩电脑(4399.kk) 5)每天都要发日报到这两个邮箱里:1010518758@q ...

  7. ubuntu配置mta_如何在Ubuntu 18.04上使用Apache为您的域配置MTA-STS和TLS报告

    ubuntu配置mta The author selected Electronic Frontier Foundation Inc to receive a donation as part of ...

  8. 每日股市大盘自动复盘(基于聚宽量化投资平台)

    直接上代码,代码里需要用到聚宽平台的jqdata,可在聚宽研究环境中运行. import numpy as np import datetime import jqdata from jqdata i ...

  9. HITSZ智能证券投资报告(3-19)

    每日报告基于每日的上证指数综合生成.同时给出总体的政策面.经济面等导向信息以及个人选择的理由. 进而针对股票仓中的每只股票单独进行分析,给出其操作意见和操作的原因 2020-03-19 大盘情况分析 ...

最新文章

  1. 机器学习中的方法技术与应用场景
  2. 欧拉定理和C语言实现 - win32版
  3. tushare股票数据接口
  4. 3、ACE-实用生活口语---讲打电话Talking on the phone
  5. matlab里数组的赋值,arrays – MATLAB结构赋值数组
  6. 2021年终总结模板.pptx(附下载链接)
  7. sql server 内存_SQL Server内存性能指标–第1部分–内存页/秒和内存页故障/秒
  8. weblogic环境,应用上传图片报Could not initialize class sun.awt.X11.XToolkit
  9. 详解验证码与打码平台的攻防对抗
  10. 计算机round是什么函数,round()函数,excel round什么意思
  11. Cisco Packet Tracer 思科模拟器三层交换机配置
  12. Arduino使用人体红外传感器
  13. 倒推法解决“四人玩火柴棍游戏,每一次都是三个人赢,一个人输”问题
  14. 如何使用传统图像处理方法进行大米的计数和长轴方向标记
  15. eclipse项目名旁边一个红xx,解决办法
  16. 文光伏领军企业转型热切拥抱互联网
  17. OCP问题debug
  18. 最简单DIY基于STM32的远程控制电脑系统①(电容触摸+按键控制)
  19. 从零开始学数据结构和算法:阿里面试题java
  20. 图论:关于弦图的几个图论结论

热门文章

  1. Python常用运算符含义与用法演示
  2. python当前日期加n天_利用python获取当前日期前后N天或N月日期的方法示例
  3. 又拍云 php5月18号那,又拍云每月免费CDN空间和流量
  4. 力扣349. 两个数组的交集(JavaScript)
  5. 18年5年制计算机辅助考试题,2018年自考《计算机辅助教育》试题二
  6. anaconda安装shapefile_Anaconda3详细安装使用教程及问题总结
  7. 火力发电厂与变电站设计防火标准_详细解析仓库防火设计标准
  8. 微信群怎么设置验证加入_怎么让微信群裂变拉人/拉人进群奖励方案/微信裂变营销方案策划...
  9. kafka maven 依赖_Flink的sink实战之二:kafka
  10. python列表求和显示unsupport_本地使用pip命令安装requests库,提示unknow or unsupported command install解决方法...