Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSCEAScans #68

Closed
kinkster opened this issue Jun 19, 2018 · 8 comments
Closed

DSCEAScans #68

kinkster opened this issue Jun 19, 2018 · 8 comments

Comments

@kinkster
Copy link

I get this error when I have several hosts.
Start-DSCEAscan -MofFile C:\w10localhost.mof -InputFile C:\output.txt -Force -OutputPath \server\test\

It works for up to 200 hosts in output.txt and then after that I started to see these errors.
Receive-Job : Cannot bind argument to parameter 'Job' because it is null.
At C:\Program Files\WindowsPowerShell\Modules\DSCEA\1.2.0.0\Functions\Start-DSCEAscan.ps1:322 char:37

  •     $psjobresults = Receive-Job $psresults
    
  •                                 ~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Receive-Job], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ReceiveJobCommand

Attempted to divide by zero.
At C:\Program Files\WindowsPowerShell\Modules\DSCEA\1.2.0.0\Functions\Start-DSCEAscan.ps1:364 char:9

  •     Write-Progress -activity "Working..." -PercentComplete (($job ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], RuntimeException
    • FullyQualifiedErrorId : RuntimeException
@kinkster
Copy link
Author

The error happens here. It works without issue for 360 hosts but the next jump to 435 hosts consistently fails. I have played with -scantimeout set to 600 up to 12000 and jobtimeout from 10 up to 75

VERBOSE: DSCEA Scan has started
Receive-Job : Cannot bind argument to parameter 'Job' because it is null.
At C:\Program Files\WindowsPowerShell\Modules\DSCEA\1.2.0.0\Functions\Start-DSCEAscan.ps1:322 char:37

  •     $psjobresults = Receive-Job $psresults
    
  •                                 ~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Receive-Job], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ReceiveJobCommand

VERBOSE: Connectivity testing complete

@rkyttle
Copy link
Member

rkyttle commented Jun 21, 2018

Are you using any custom resources in your configuration? Can you provide how many items you are trying to scan?

@kinkster
Copy link
Author

kinkster commented Jun 21, 2018 via email

@kinkster
Copy link
Author

This was done on a Win7 system. I have moved it to a 2012R2 server and seems to be consistent

@rkyttle
Copy link
Member

rkyttle commented Jun 26, 2018

You mentioned earlier, "The error happens here. It works without issue for 360 hosts but the next jump to 435 hosts consistently fails."

For the 75 systems that you are adding which brings things to 435, are you able to successfully perform a scan against those systems on their own?

@kinkster
Copy link
Author

kinkster commented Jun 26, 2018 via email

@kinkster
Copy link
Author

I moved script to 2012 R2 server. Seemed to work fine for close to 1000 hosts for 5 weeks. Now scan fails with no errors just a scan timeout. Number of hosts varies but around 400. What also is common is that Jobs complete: 398 of 400 (Two jobs are usually unfinished) is where it typically will hang and timeout. Threads go from 28 to 1482.

@kinkster
Copy link
Author

So turns out those two jobs were issues with winrm. Previous to the scan I would do a test-wsman. This was not good enough. I had two hosts that would not allow me to winrm. I guess the -timeout option should have worked in this instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants