Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum ProjectWise Performance Report
    • Sign In

    • Replies 51 replies
    • Subscribers 76 subscribers
    • Views 10997 views
    • Users 0 members are here

    ProjectWise Performance Report

    Marty.Nickel
    Offline Marty.Nickel over 4 years ago

    Hello everyone,

    For those of you at the conference, this was the dashboard I showed in my presentation and for those not at the conference, this is a dashboard on performance monitoring inside of ProjectWise using PowerShell.  Please find the attached documents to getting started with setting up performance monitoring on your system.  There is a PowerShell script that needs to be run on some kind of scheduled task at the various locations you want to test, the template for the PowerBi report and a setup document to help you link the results from your script with PowerBi.  For any questions or discussion please post to this thread.  Enjoy!

    Thanks,

    Marty

    UPDATE March 16, 2020

    Change log
    - Now supports WSG metrics, activated with the -IncludeWSGData switch (requires PWPS_WSG to be installed if activated)
    - Added more verbose logging
    - Added Environment table and WSG table to output
    - Updated the call to get currently connected users (should perform better)
    - Now only clears files created by the script from the working directory (was previously clearing everything)
    Notes
    - If you do not want WSG data returned you do not need to activate the switch, or change your current script in any way.
    - If you do with to collect WSG data please remember to install PWPS_WSG the same way you install PWPS_DAB
    - A new datatable is returned for Environment data, which will be added to the output dataset
    - No breaking changes have been made.

    ProjectWise_Performance_Report_1.0.7zProjectWise_Performance_Report_Example_2.0.zip ProjectWise_Performance_Dashboard_1.0.zip

    • Sign in to reply
    • Cancel

    Top Replies

    • Zachary Kerr
      Offline Zachary Kerr Tue, Oct 8 2019 10:35 PM in reply to Jeffrey Bowlin +5
      I think there are some good points to be made here, and I’m glad the topic has been raised – long post incoming. Before we get into it, be aware I have some updates both to the script and Power BI report…
    • GChapman
      Offline GChapman Fri, Jul 5 2019 4:13 AM +2
      While testing an export to SQLLITE I did the following, just sharing might find it useful.. $scriptFolder = (([System.IO.Directory]::GetParent($MyInvocation.MyCommand.Path)).FullName) $PWPerformanceReportVariables…
    • AndyKing-Pit
      Offline AndyKing-Pit Fri, Mar 20 2020 1:36 PM +2
      I'm late to the party here - this is really amazing, though I'm so powershell inept, I wonder if I'll get it implemented. I certainly want to try to it. I read through Zachary Kerr's long post and the…
    Parents
    • Jon Rizzo
      Jon Rizzo Thu, Oct 17 2019 10:45 AM

      Hi Marty,

      Great presentation today.  Downloaded the 7z file and followed the instructions and I was able to create a batch file that executes the PS script.  it uses a logical account that was created for this purpose.  If I run that batch file in a windows session, it records the data.  I set up an event in Task Scheduler to run the batch file once per hour.  The Task Scheduler history shows the event running every hour and it appears to be successful.  It returns operation code 2.  From a google search, that op code seems to mean file not found.  I'm not sure how this is possible because I can run the batch file by typing the full path to the batch file into the windows start menu. The only suggestion I have seen is to make sure the path to the batch file is set in the "Start in" field of the task scheduler action, which I have done.  

      I have another other ProjectWise-related task running on the same machine and that event works fine.  This task was set up using the same windows username, so it shouldn't be a permissions issue.  All of this leads me to believe that the problem is related to something that this powershell script is doing, that my environment doesn't like when there is no user logged in to windows.  

      Any idea what I might be missing, or what else I might try?

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Cancel
    Reply
    • Jon Rizzo
      Jon Rizzo Thu, Oct 17 2019 10:45 AM

      Hi Marty,

      Great presentation today.  Downloaded the 7z file and followed the instructions and I was able to create a batch file that executes the PS script.  it uses a logical account that was created for this purpose.  If I run that batch file in a windows session, it records the data.  I set up an event in Task Scheduler to run the batch file once per hour.  The Task Scheduler history shows the event running every hour and it appears to be successful.  It returns operation code 2.  From a google search, that op code seems to mean file not found.  I'm not sure how this is possible because I can run the batch file by typing the full path to the batch file into the windows start menu. The only suggestion I have seen is to make sure the path to the batch file is set in the "Start in" field of the task scheduler action, which I have done.  

      I have another other ProjectWise-related task running on the same machine and that event works fine.  This task was set up using the same windows username, so it shouldn't be a permissions issue.  All of this leads me to believe that the problem is related to something that this powershell script is doing, that my environment doesn't like when there is no user logged in to windows.  

      Any idea what I might be missing, or what else I might try?

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Cancel
    Children
    • Jon Rizzo
      Jon Rizzo Thu, Oct 17 2019 1:17 PM in reply to Jon Rizzo

      I figured out the issue.  The password files were encrypted using my credentials, so they could not be used to execute the procedure under a different user account.  I recreated those file using the user that the task is running as, and it started working.  my next stop is to see if the same encrypted files can be used (by the same user) on a different server, or if I need to recreate them on every server.

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Cancel
    • Zachary Kerr
      Offline Zachary Kerr Thu, Oct 17 2019 5:54 PM in reply to Jon Rizzo

      Nice find!
      From my experience the encrypted files can only be used in a 'same user, same machine' situation.
      You'll need to generate the encrypted password files on each machine for the correct user.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Cancel

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies