locked
Possible bug in DNS 2016 MP 10.6.4 RRS feed

  • Question

  • Hi

    Looking at one of the Performance rules for our DNS servers i noticed that they all said 0.

    Debugging the MP i can see that the Powershell script for the datasource Microsoft.Windows.DNSServer.2016.DNSServerZoneQueryStatistics.DS has a "-gt" replaced by ">" in an if statement.

    Anybody know how to report that so it might be fixed ?

    For refence a bit of the code:

    foreach ($zone in $zones)
    	{
    		for ($i = 1; $i -le 10; $i++) 
            {
    			try{
    				$allStatistics = Get-DnsServerStatistics -ZoneName $zone.ZoneName -ComputerName $PrincipalName
    				[double]$QueriesReceived = 0
    				[double]$QueriesFailure = 0
    				[double]$QueriesNameError = 0
    				$zoneQueryStatistics = @()
    				$zoneQueryStatistics += $allStatistics.ZoneQueryStatistics
    				if ($zoneQueryStatistics -ne $null -and $zoneQueryStatistics.Count > 0)
    				{
    					foreach ($zoneQueryStat in $zoneQueryStatistics)
    					{
    						$QueriesReceived += $zoneQueryStat.QueriesReceived
    						$QueriesNameError += $zoneQueryStat.QueriesNameError
    						$QueriesFailure += $zoneQueryStat.QueriesFailure
    					}
    				}
    				$bag = $momAPI.CreatePropertyBag()
    				$bag.AddValue("ServerName", $PrincipalName)
    				$bag.AddValue("ZoneName", $zone.ZoneName)
    				$bag.AddValue("QueriesReceived", $QueriesReceived)
    				$bag.AddValue("QueriesNameError", $QueriesNameError)
    				$bag.AddValue("QueriesFailure", $QueriesFailure)
    				$bag
    
    				break
    			}
    			catch
    			{
    				Start-Sleep -Seconds 1
    			}
    		}
    	}
    

    Tuesday, May 22, 2018 9:14 AM

Answers

  • I'v posted on the Uservoice

    https://systemcenterom.uservoice.com/forums/293064-general-operations-manager-feedback/suggestions/34324105-error-in-powershell-code-in-microsoft-windows-dnss

    Wednesday, May 23, 2018 6:26 AM

All replies

  • Hi,

    You can report a bug by using the Windows Feedback app on your Windows 10 computer to report any bugs or give feedbacks to Microsoft.

    1. Login to your Windows 10 system

    2. Click on the Start button

    3. In the search box, type "Windows Feedback"

    4. Click on "Windows Feedback" app that appears in search results.

    5. When the Feedback app launches, select a category from the left and then select a sub-category.

    6. The app will display all existing feedbacks and bug reports. Browse through them and check if the bug you are planning to report is already reported by someone else.

    If it is already reported, you can click on it and submit more details or specific details of your issue. Click the button "Me too" to tell Microsoft that you too have encountered this bug or have the same feedback.

    7. If your bug is not reported already, click on the "New Feedback" button in the bottom.

    8. Type your bug report/feedback in detail. Do not provide any personal information since your bug reports will be public. If you like to include a screenshot of any error, you can click on the "Screenshot" button in the screen. When you click on the button, it will minimize the app, allowing you to navigate to other screens and click on the camera button to capture the screen.

    More information here:
    https://support.microsoft.com/en-us/help/4021566/windows-10-send-feedback-to-microsoft-with-feedback-hub-app

    https://docs.microsoft.com/en-us/collaborate/feedback-items

    Hope it helps!

    Kind regards,
    Leon


    Blog: https://thesystemcenterblog.com  LinkedIn:   

    • Proposed as answer by GouravIN Tuesday, May 22, 2018 10:10 AM
    Tuesday, May 22, 2018 9:27 AM
  • Hi Patrik,

    it seems like an error with the code indeed. May I ask you to  take 5 Minutes and report this here:

    General Operations Manager Feedback

    I think the community will appreciate this. :) 

    Thank You!

    Regards,


    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer" where applicable. This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!) Blog: https://blog.pohn.ch/ Twitter: @StoyanChalakov

    Tuesday, May 22, 2018 10:01 AM
  • I'v posted on the Uservoice

    https://systemcenterom.uservoice.com/forums/293064-general-operations-manager-feedback/suggestions/34324105-error-in-powershell-code-in-microsoft-windows-dnss

    Wednesday, May 23, 2018 6:26 AM
  • I'v posted on the Uservoice

    https://systemcenterom.uservoice.com/forums/293064-general-operations-manager-feedback/suggestions/34324105-error-in-powershell-code-in-microsoft-windows-dnss

    Hi Patrik,

    thnaks for posting this! I have voted now. Let's hope they will fix this soon enough. At the end, it is juts a small typo.

    Regards,


    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer" where applicable. This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!) Blog: https://blog.pohn.ch/ Twitter: @StoyanChalakov

    Wednesday, May 23, 2018 7:08 AM