Search


Sponsors

Quick Access to OpsMgr Agent Information

Derek Harkin writes: Sometimes you need access to some information from Opsmgr in a hurry and you really do not want to open up the Ops Console and wait for it to load. Here is a powershell script that extracts information from OpsMgr and drops it into several HTML files so it can be added to a website. Download Script


The pages created are the following:
  • AgentsCounts.html - This gives give you a count of the number of agents per management group and breaks this down also by per management server

  • MonitoredServers.html - This page gives a complete list of all the agents being monitored by Opsmgr.

  • ServersDown.html - This gives a list of servers that may be down. It is actaully a list of servers where the heatlth service watcher is in an "Error" state.

  • AgentsLast7days.html - This is a list of all agents installed in the last 7 days, when they were installed and includes their health state


  • The script does require some configuration before it can be used:

    1) At the very start of the script you have to enter the name of the Root Management Server. You can uncomment the next lines lines and define multiple RMS's if you want to pull the information from more than 1 management group.
    2) $outpath = "c:\" - Change this to where you want the script to write the html files.
    3) If connecting to more than one managemet group you need to comment out line 17 an uncomment Line 19



      
    Remember personal info?

    Emoticons / Textile

    Before sending a comment, you have to correctly answer a simple question you know the answer to. This is a countermeasure against automated spam bots.
     

      ( Register your username / Log in )

    Notify:
    Hide email:

    Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.