Downloads:
6,708
Downloads of v 2.0.18:
604
Last Update:
03 Feb 2022
Package Maintainer(s):
Software Author(s):
- SQL Community Collaborative
Tags:
admin powershell module template dba sqlserver sql tools database checks monitoring- Software Specific:
- Software Site
- Software Source
- Software License
- Software Docs
- Software Issues
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
dbachecks (PowerShell Module)
- 1
- 2
- 3
2.0.18 | Updated: 03 Feb 2022
- Software Specific:
- Software Site
- Software Source
- Software License
- Software Docs
- Software Issues
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
6,708
Downloads of v 2.0.18:
604
Maintainer(s):
Software Author(s):
- SQL Community Collaborative
dbachecks (PowerShell Module) 2.0.18
Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by SQL Community Collaborative. The inclusion of SQL Community Collaborative trademark(s), if any, upon this webpage is solely to identify SQL Community Collaborative goods or services and not for commercial purposes.
- 1
- 2
- 3
Some Checks Are Exempted or Have Failed
Not All Tests Have Passed
Deployment Method: Individual Install, Upgrade, & Uninstall
To install dbachecks (PowerShell Module), run the following command from the command line or from PowerShell:
To upgrade dbachecks (PowerShell Module), run the following command from the command line or from PowerShell:
To uninstall dbachecks (PowerShell Module), run the following command from the command line or from PowerShell:
Deployment Method:
This applies to both open source and commercial editions of Chocolatey.
1. Enter Your Internal Repository Url
(this should look similar to https://community.chocolatey.org/api/v2/)
2. Setup Your Environment
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment
Option 1: Cached Package (Unreliable, Requires Internet - Same As Community)-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
-
Download the package:
Download - Follow manual internalization instructions
-
-
Package Internalizer (C4B)
-
Run: (additional options)
choco download dbachecks --internalize --source=https://community.chocolatey.org/api/v2/
-
For package and dependencies run:
choco push --source="'INTERNAL REPO URL'"
- Automate package internalization
-
Run: (additional options)
3. Copy Your Script
choco upgrade dbachecks -y --source="'INTERNAL REPO URL'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade dbachecks -y --source="'INTERNAL REPO URL'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Install dbachecks
win_chocolatey:
name: dbachecks
version: '2.0.18'
source: INTERNAL REPO URL
state: present
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
chocolatey_package 'dbachecks' do
action :install
source 'INTERNAL REPO URL'
version '2.0.18'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller dbachecks
{
Name = "dbachecks"
Version = "2.0.18"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'dbachecks':
ensure => '2.0.18',
provider => 'chocolatey',
source => 'INTERNAL REPO URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
4. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
This package was approved as a trusted package on 03 Feb 2022.
dbachecks is a framework created by and for SQL Server pros who need to validate their environments. Basically, we all share similar checklists and mostly just the server names and RPO/RTO/etc change.
This open source module allows us to crowd-source our checklists using Pester tests. Such checks include:
- Backups are being performed
- Identity columns are not about to max out
- Servers have access to backup paths
- Database integrity checks are being performed and corruption does not exist
- Disk space is not about to run out
- All enabled jobs have succeeded
Have questions about development? Please visit our Wiki. Anyone developing this module should visit that Wiki page (after fully reading this readme) for a brief overview.
NOTE: This module requires a minimum of PowerShell v4.
NOTE: This is an automatically updated package. If you find it is out of date by more than a week, please contact the maintainer(s) and let them know the package is no longer updating correctly.
$ErrorActionPreference = 'Stop'
$moduleName = 'dbachecks' # this could be different from package name
$module = Get-Module -Name $moduleName
if ($module) {
Write-Verbose "Module '$moduleName' is imported into the session. Removing it."
Remove-Module -Name $moduleName -Force -ErrorAction SilentlyContinue
}
}
$ErrorActionPreference = 'Stop'
$moduleName = 'dbachecks'
$sourcePath = Join-Path -Path $env:ProgramFiles -ChildPath "WindowsPowerShell\Modules\$moduleName"
Write-Verbose "Removing all version of '$moduleName' from '$sourcePath'."
Remove-Item -Path $sourcePath -Recurse -Force -ErrorAction SilentlyContinue
md5: 38AA7C9E2F9365062CD8B260C9F77302 | sha1: 7ADD798DCB658BFFC35D4B94DCBEDFE071352554 | sha256: 61F2B83DA187DE2F4FF69505FE0EC9AB6C6E3330899223AD47430F30D34B6C5E | sha512: 1EB95BFDC2EF67E1D12BDF79090DAF4E3FC4930C812ED17DFBCCFFDEDE642D27356AF1B792D7E8470304D0D4AE27F7395A49D78D0BE0AA4E50C74EC847420AA5
From: https://raw.githubusercontent.com/sqlcollaborative/dbachecks/development/LICENSE
MIT License
Copyright (c) 2017 Chrissy LeMaire
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community in verifying that this package's contents are trustworthy.
To verify the files using the project source:
1. Please go to the project source location (https://github.com/sqlcollaborative/dbachecks) and download the source files;
2. Build the source to create the binary files to verify;
3. Use Get-FileHash -Path <FILE TO VERIFY> to get the file hash value from both the built file (from step 1 above) and the file from the dbatools.zip within the package and compare them;
Alternatively you can download the module from the PowerShell Gallery ...
Save-Module -Name dbachecks -Path <PATH TO DOWNLOAD TO>
... and compare the files from the package against those in the installed module. Again use Get-FileHash -Path <FILE TO VERIFY> to retrieve those hash values.
Log in or click on link to see number of positives.
- ReportUnit.exe (9fa99b31c7c2) - ## / 73
- dbachecks.2.0.18.nupkg (3334f9d68b7b) - ## / 61
- dbachecks.zip (61f2b83da187) - ## / 45
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
Add to Builder | Version | Downloads | Last Updated | Status |
---|---|---|---|---|
dbachecks (PowerShell Module) 2.0.18 | 604 | Thursday, February 3, 2022 | Approved | |
dbachecks (PowerShell Module) 2.0.16 | 77 | Wednesday, February 2, 2022 | Approved | |
dbachecks (PowerShell Module) 2.0.14 | 188 | Tuesday, August 24, 2021 | Approved | |
dbachecks (PowerShell Module) 2.0.12 | 138 | Tuesday, July 20, 2021 | Approved | |
dbachecks (PowerShell Module) 2.0.11 | 197 | Wednesday, April 7, 2021 | Approved | |
dbachecks (PowerShell Module) 2.0.9 | 213 | Monday, December 14, 2020 | Approved | |
dbachecks (PowerShell Module) 2.0.8 | 133 | Tuesday, November 24, 2020 | Approved | |
dbachecks (PowerShell Module) 2.0.7 | 219 | Tuesday, September 22, 2020 | Approved | |
dbachecks (PowerShell Module) 2.0.4 | 247 | Thursday, July 16, 2020 | Approved | |
dbachecks (PowerShell Module) 2.0.3 | 206 | Saturday, May 9, 2020 | Approved | |
dbachecks (PowerShell Module) 1.2.29 | 240 | Sunday, March 29, 2020 | Approved | |
dbachecks (PowerShell Module) 1.2.26 | 172 | Saturday, March 21, 2020 | Approved | |
dbachecks (PowerShell Module) 1.2.25 | 186 | Sunday, March 15, 2020 | Approved | |
dbachecks (PowerShell Module) 1.2.24 | 264 | Thursday, January 9, 2020 | Approved | |
dbachecks (PowerShell Module) 1.2.22 | 199 | Sunday, December 22, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.21 | 218 | Thursday, November 28, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.20 | 193 | Wednesday, November 27, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.19 | 182 | Tuesday, November 26, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.16 | 195 | Wednesday, November 20, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.15 | 212 | Thursday, October 17, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.14 | 210 | Wednesday, October 2, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.12 | 230 | Wednesday, July 31, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.11 | 171 | Tuesday, July 30, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.9 | 182 | Tuesday, July 30, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.8 | 177 | Monday, July 29, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.6 | 181 | Tuesday, July 23, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.5 | 231 | Monday, July 8, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.4 | 182 | Wednesday, July 3, 2019 | Approved | |
dbachecks (PowerShell Module) 1.2.3 | 217 | Tuesday, July 2, 2019 | Approved | |
dbachecks (PowerShell Module) 1.1.173 | 204 | Wednesday, May 22, 2019 | Approved | |
dbachecks (PowerShell Module) 1.1.172 | 194 | Tuesday, May 21, 2019 | Approved | |
dbachecks (PowerShell Module) 1.1.171 | 246 | Friday, April 5, 2019 | Approved |
2017 Chrissy LeMaire
-
- pester (≥ 4.3.1)
- dbatools (≥ 0.9.534)
- psframework (≥ 0.9.23.82)
Ground Rules:
- This discussion is only about dbachecks (PowerShell Module) and the dbachecks (PowerShell Module) package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or dbachecks (PowerShell Module), or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.