Enable Proxy as SCOM Console Task

Here comes another post about a console task. This time it is in SCOM. I have been doing something for a while that makes life a little bit easier. What I do is add a console task to SCOM that enables proxy on monitored servers when it is launched.

NOTE: For a discussion on why you would enable proxy on monitored servers visit this link:

http://social.technet.microsoft.com/Forums/systemcenter/en-US/a373b34d-9b01-486c-a4f2-4b1f19bea46e/why-enable-scom-proxy-agent-?forum=operationsmanagergeneral

The nice thing about this console task is that it searches through monitored servers, finds the ones that do not have proxy enabled, enables them and then outputs who they are. This is possible thanks to a tool that Mark Manty of Microsoft built called SetAgentProxyEnabled. You can find that tool here:

http://blogs.technet.com/b/markmanty/archive/2012/02/02/automate-setting-allow-agent-to-act-as-proxy-on-scom-agents.aspx

Here is the process I use to add this tool as a console task in SCOM.

  • Create a windows share on one of the management servers. I call it something like SCOMTasks.
  • Extract the tool into this share.
  • In SCOM navigate to Authoring>Management Pack Objects>Tasks.
  • Right click on Tasks and select Create a new Task.
  • In the Create Task Wizard expand Console Tasks and select Command line. Select or create a new management pack to store this task in and click Next.

clip_image001

 

  • On the next screen give the task a name such as Enable Proxy. Set the Task target to Operations Manager Management Group and click Next.

clip_image002

  • Leave the defaults on the General tab. Click on the Command Line tab.
  • Put in the UNC path to the .exe. Example: \\SCOMSERVERNAME\SCOMTasks\SetAgentProxyEnabled.exe
  • In the Parameters put in a SCOM RMS server or RMS emulator name. Be sure to tick the check box for Display output when this task is run and then click Next.

clip_image003

To run the task in the SCOM console go to Monitoring>Operations Manager>Management Group Diagram and in the center pane click on the Operations Manager Management Server Computer Group object. In the right hand pane under Tasks>Operations Manager Management Group Task click on Enable Proxy. The results will be shown in the Console Task Output window as shown in the following screenshot.

clip_image004

That completes the post for adding enable proxy as a console task. Alternatively if you want to simply enable proxy on all monitored servers on a regular schedule you can use a PowerShell script. This PowerShell script can be found here:

http://blogs.technet.com/b/kevinholman/archive/2010/11/09/how-to-set-agent-proxy-enabled-for-all-agents.aspx?Redirected=true

email

Written by , Posted .