by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 18 01:59
    danoagithub starred bklockwood/PSPerf
  • Feb 23 2018 00:03
    posh-cja starred bklockwood/PSPerf
  • May 08 2017 10:04
    jimaek commented #23
  • Jan 31 2017 04:54
  • Mar 24 2016 15:42
  • Mar 12 2016 06:36
    bklockwood opened #55
  • Feb 27 2016 07:08

    bklockwood on master

    Update README.md (compare)

  • Feb 27 2016 07:07

    bklockwood on master

    Update README.md (compare)

  • Feb 14 2016 00:11
    jcislowski starred bklockwood/PSPerf
  • Nov 12 2015 21:40
    bklockwood commented #34
  • Nov 07 2015 15:08

    bklockwood on master

    working to find memory leak (no… Merge pull request #54 from bkl… (compare)

  • Nov 07 2015 15:08
    bklockwood closed #54
  • Nov 07 2015 15:07
    bklockwood opened #54
  • Nov 07 2015 15:07

    bklockwood on bkl-dev

    working to find memory leak (no… (compare)

  • Nov 06 2015 11:16
    bklockwood commented #34
  • Nov 06 2015 11:14

    bklockwood on master

    new psperf.html is cleaner, add… Merge pull request #53 from bkl… (compare)

  • Nov 06 2015 11:14
    bklockwood closed #53
  • Nov 06 2015 11:14
    bklockwood opened #53
  • Nov 06 2015 11:13

    bklockwood on bkl-dev

    new psperf.html is cleaner, add… (compare)

  • Nov 06 2015 07:20

    bklockwood on master

    minor changes to output-page Merge pull request #52 from bkl… (compare)

Bryan Lockwood
@bklockwood
no. in fact I've researched this a bit and no one seems clear on exactly how get-counter works. I know it does not use wsman. see https://github.com/bklockwood/PSPerf/wiki/Retrieving-Perfmon-Counters-Remotely
Oliver Lipkau
@lipkau
I am not used to coders who document stuff that of in dev :-P
Bryan Lockwood
@bklockwood
I will be looking for more info on this. I could swear that I have or used to have a book that goes into more depth on it; perfmon is old
I am big on docs, always have been. I doc as I go because I know that if I don't, there won;t be docs.
also I have never had great memory
Oliver Lipkau
@lipkau
I like the 'the doc is in the code' approach
Bryan Lockwood
@bklockwood
Coders always do. Lots of sysadmins hate it.
Because doc-in-code is usually kinda crappy. Forcing a document that actually talks to the user is important, imo.
Oliver Lipkau
@lipkau
I like ps for the auto help generation for functions
I wrote a PsADManagement module for which I invested a lot of time for the function helpers
Bryan Lockwood
@bklockwood
yes, yes, yes. it does seem to be encouraging better doc-in-code.
yours, btw, is exemplary from what I have seen so far.
Oliver Lipkau
@lipkau
Did you see that module?
Bryan Lockwood
@bklockwood
saw it, but have not explored it
Oliver Lipkau
@lipkau
I started refactoring your data gathering for JSON output.
I added a functionality which always delivers $maxEntries (default 50) values. So the LineGraphs don't flatline while the is no history.
and it adds value 0 when computer is offline
https://github.com/lipkau/PSPerf
I didn't make any of the changes I wanted to the HTML. I didn't touch the HTML and it outputs like this to the generated JSON:
http://instr.de/PSPerf/v2/
(not much going on in the graphs, as it is real data from my server which is not overloaded)
Bryan Lockwood
@bklockwood
Hi Oliver. I looked over your code a bit last night. Very impressive.
(psperf I mean). I will Very likely use your ideas for storing as json, and refactoring the data collection a bit. But not quite yet, I still want to get a couple of other things done in the codebase I have.
Have you tested your existing code for gathering data from other systems?
Oliver Lipkau
@lipkau
I have not tested it on remote computers.
I don't have a setup which allows me to do so. I must first setup a domain in hyper-v
Bryan Lockwood
@bklockwood
I have been finding that's a big issue. Things that work locally in a split second can take a long time, or hang completely, against remote systems (some of which may be unreachable at the moment). So I spent some time yesterday reworking things into invoke-command
Oliver Lipkau
@lipkau
I do see some problems. Especially with get-wulist (updates) and get are boot pending
Bryan Lockwood
@bklockwood
Yeah, I use a hyper-v to host a bunch of stuff
Oliver Lipkau
@lipkau
I already prepared a bit by including my impersonation function
Bryan Lockwood
@bklockwood
I tried Gadja's PSWindowsUpdate module some time back, got a bit frustrated with how it handles remote work, tried writing my own. I don;t think I improved on his work much ... truth is, the WU API is a pain.
impersonation function?
Oliver Lipkau
@lipkau
Yes.
Did you manage to retrieve the severity of the updates?
Will send you the link and examples
Bryan Lockwood
@bklockwood
ah, found your impersonation function, will look more closely
Bryan Lockwood
@bklockwood
I haven't worked on the part that retrieves outstanding updates (kinda dreading it). But I've been thinking my mockup display looks dumb anyway. Will probably just return the number of updates outstanding, with the advice that admins should hide updates they don't care to apply.
Oliver Lipkau
@lipkau
As it is best practice never to log in with a domain admin account, I think the impersonation is important to run it
Bryan Lockwood
@bklockwood
Also, I know from experience that it can take up to 2 minutes per PC, even running locally, to retreive the list of outstanding updates. So this check may only run once or twice daily
Oliver Lipkau
@lipkau
I will be waiting for your new mockup them
Bryan Lockwood
@bklockwood
again, it's because the WU API sucks. every time you ask it how many updates are outstanding, it does a full check with the update servers at MS (or configured wsus server)
Oliver Lipkau
@lipkau
I forgot to include the property lastonline . will be adding this soon
Bryan Lockwood
@bklockwood
I keep hoping MS will overhaul WU in win10 and forward, but ... dunno yet. there have been hints, no updated API docs I have seen.
my latest version stores timestamps for either 'upsince' or 'downsince'
(see Get-Uptime)
Oliver Lipkau
@lipkau
The function I used for wu shows you to diff between software updates and drivers. In case you find it interesting
Bryan Lockwood
@bklockwood
that's gadja's module, right?
Oliver Lipkau
@lipkau
I thing I just thought of a good approach to the events
Yes
Bryan Lockwood
@bklockwood
yeah, I know how he does that (its pretty easy in code to query for either or both, software|drivers)
Oliver Lipkau
@lipkau
During a timestamp of last retrial and just count errors
I am also playing with the idea of running the days retrieval in jobs. So they can run in parallel
Bryan Lockwood
@bklockwood
I have them all in jobs.