Skip to content

Commit cc97f58

Browse files
because I was running this locally
1 parent 2c2aa15 commit cc97f58

File tree

1 file changed

+56
-4
lines changed

1 file changed

+56
-4
lines changed

notebooks/NotDotNet/Agent/AGENT - Checking Agent Job Failures.ipynb

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"metadata": {
33
"kernelspec": {
44
"name": "powershell",
5-
"display_name": "PowerShell"
5+
"display_name": "PowerShell",
6+
"language": "powershell"
67
},
78
"language_info": {
89
"name": "powershell",
@@ -80,16 +81,67 @@
8081
{
8182
"cell_type": "code",
8283
"source": [
83-
"$AllInstances = 'SQL2017N5' # add array of instances here\r\n",
84+
"$AllInstances = 'localhost' # add array of instances here\r\n",
8485
"Set-DbcConfig agent.failedjob.since -Value 1\r\n",
8586
"Invoke-DbcCheck -SqlInstance $AllInstances -Check FailedJob -Show Fails"
8687
],
8788
"metadata": {
8889
"azdata_cell_guid": "96825d33-18a1-456a-9969-41a144b29d74",
8990
"tags": []
9091
},
91-
"outputs": [],
92-
"execution_count": null
92+
"outputs": [
93+
{
94+
"name": "stdout",
95+
"text": "VERBOSE: Populating RepositorySourceLocation property for module Pester.\nVERBOSE: Loading module from path \n'C:\\Users\\mrrob\\OneDrive\\Documents\\WindowsPowerShell\\Modules\\Pester\\5.0.4\\Pester.psm1'.\nVERBOSE: Populating RepositorySourceLocation property for module Pester.\nVERBOSE: Loading module from path \n'C:\\Users\\mrrob\\OneDrive\\Documents\\WindowsPowerShell\\Modules\\Pester\\5.0.2\\Pester.psm1'.\nVERBOSE: Populating RepositorySourceLocation property for module Pester.\nVERBOSE: Loading module from path \n'C:\\Users\\mrrob\\OneDrive\\Documents\\WindowsPowerShell\\Modules\\Pester\\4.9.0\\Pester.psm1'.\nVERBOSE: Loading module from path 'C:\\Program Files\\WindowsPowerShell\\Modules\\Pester\\3.4.0\\Pester.psm1'.\nVERBOSE: [12:04:20][dbachecks.psm1] Trying to import version 4.9.0\nVERBOSE: Loading module from path \n'C:\\Users\\mrrob\\OneDrive\\Documents\\WindowsPowerShell\\Modules\\Pester\\4.9.0\\Pester.psd1'.\nVERBOSE: Loading 'TypesToProcess' from path \n'C:\\Users\\mrrob\\On",
96+
"output_type": "stream"
97+
},
98+
{
99+
"name": "stdout",
100+
"text": "eDrive\\Documents\\WindowsPowerShell\\Modules\\Pester\\4.9.0\\Functions\\Gherkin.types.ps1xml'.\nVERBOSE: Populating RepositorySourceLocation property for module Pester.\nVERBOSE: Loading module from path \n'C:\\Users\\mrrob\\OneDrive\\Documents\\WindowsPowerShell\\Modules\\Pester\\4.9.0\\Pester.psm1'.\nVERBOSE: Importing function 'Add-AssertionOperator'.\nVERBOSE: Importing function 'AfterAll'.\nVERBOSE: Importing function 'AfterEach'.\nVERBOSE: Importing function 'AfterEachFeature'.\nVERBOSE: Importing function 'AfterEachScenario'.\nVERBOSE: Importing function 'Assert-MockCalled'.\nVERBOSE: Importing function 'Assert-VerifiableMock'.\nVERBOSE: Importing function 'Assert-VerifiableMocks'.\nVERBOSE: Importing function 'BeforeAll'.\nVERBOSE: Importing function 'BeforeEach'.\nVERBOSE: Importing function 'BeforeEachFeatu",
101+
"output_type": "stream"
102+
},
103+
{
104+
"name": "stdout",
105+
"text": "re'.\nVERBOSE: Importing function 'BeforeEachScenario'.\nVERBOSE: Importing function 'Context'.\nVERBOSE: Importing function 'Describe'.\nVERBOSE: Importing function 'Find-GherkinStep'.\nVERBOSE: Importing function 'Get-MockDynamicParameter'.\nVERBOSE: Importing function 'Get-ShouldOperator'.\nVERBOSE: Importing function 'Get-TestDriveItem'.\nVERBOSE: Importing function 'GherkinStep'.\nVERBOSE: Importing function 'In'.\nVERBOSE: Importing function 'InModuleScope'.\nVERBOSE: Importing function 'Invoke-Gherkin'.\nVERBOSE: Importing function 'Invoke-Mock'.\nVERBOSE: Importing function 'Invoke-Pester'.\nVERBOSE: Importing function 'It'.\nVERBOSE: Importing function 'Mock'.\nVERBOSE: Importing function 'New-Fixture'.\nVERBOSE: Importing function 'New-MockObject'.\nVERBOSE: Importing function 'New-PesterOption'.\nVERBOSE: Importing function 'SafeGetCommand'.\nVERBOSE: Importing function 'Set-DynamicParameterVariable'.\nVERBOSE: Importing function 'Set-ItResult'.\nVERBOSE: Importing function 'Set-TestInconclusive'.\nVERBOSE: Importing function 'Setup'.\nVERBOS",
106+
"output_type": "stream"
107+
},
108+
{
109+
"name": "stdout",
110+
"text": "E: Importing function 'Should'.\nVERBOSE: Importing alias 'Add-ShouldOperator'.\nVERBOSE: Importing alias 'And'.\nVERBOSE: Importing alias 'But'.\nVERBOSE: Importing alias 'Given'.\nVERBOSE: Importing alias 'Then'.\nVERBOSE: Importing alias 'When'.\n",
111+
"output_type": "stream"
112+
},
113+
{
114+
"name": "stdout",
115+
"text": "\n",
116+
"output_type": "stream"
117+
},
118+
{
119+
"name": "stdout",
120+
"text": " ____ __\n / __ \\___ _____/ /____ _____\n / /_/ / _ \\/ ___/ __/ _ \\/ ___/\n / ____/ __(__ ) /_/ __/ /\n/_/ \\___/____/\\__/\\___/_/\nPester v4.9.0\nExecuting all tests in 'C:\\Users\\mrrob\\OneDrive\\Documents\\WindowsPowerShell\\Modules\\dbachecks\\2.0.7\\checks\\Agent.Tests.ps1' with Tags FailedJob\n\nExecuting script C:\\Users\\mrrob\\OneDrive\\Documents\\WindowsPowerShell\\Modules\\dbachecks\\2.0.7\\checks\\Agent.Tests.ps1\n",
121+
"output_type": "stream"
122+
},
123+
{
124+
"name": "stdout",
125+
"text": "\n Describing Failed Jobs\n",
126+
"output_type": "stream"
127+
},
128+
{
129+
"name": "stdout",
130+
"text": "\n Context Checking for failed enabled jobs since 11/30/2020 12:04:25 on localhost\n",
131+
"output_type": "stream"
132+
},
133+
{
134+
"name": "stdout",
135+
"text": "Tests completed in 1.51s\nTests Passed: 0, Failed: 0, Skipped: 0, Pending: 0, Inconclusive: 0 \n",
136+
"output_type": "stream"
137+
},
138+
{
139+
"name": "stdout",
140+
"text": "Name Value Description \n---- ----- ----------- \nagent.failedjob.since 1 The maximum number of days to check for failed jobs\n\n\n. {\n>> $AllInstances = 'localhost' # add array of instances here\n>> Set-DbcConfig agent.failedjob.since -Value 1\n>> Invoke-DbcCheck -SqlInstance $AllInstances -Check FailedJob -Show Fails\n>> }\n>> \n\n",
141+
"output_type": "stream"
142+
}
143+
],
144+
"execution_count": 2
93145
}
94146
]
95147
}

0 commit comments

Comments
 (0)