Dotnet Agent Installation with Remote Management - Powershell Extension Advanced Options



Similar documents
Microsoft Windows PowerShell v2 For Administrators

Implementing and Managing Windows Server 2008 Hyper-V

Ascent Capture's MSDE 2000 Backup and Restore Instructions (For Ascent Capture 7.x and 6.x using the default MSDE 2000 database)

6422: Implementing and Managing Windows Server 2008 Hyper-V (3 Days)

This module explains the Microsoft Dynamics NAV architecture and its core components.

Outline SSS Microsoft Windows Server 2008 Hyper-V Virtualization

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

PowerShell for Dummies

"Charting the Course to Your Success!" MOC B Configuring and Administering Microsoft SharePoint Course Summary

Administration Guide. . All right reserved. For more information about Specops Gpupdate and other Specops products, visit

Using the Citrix Service Provider License Reporting Tool

SharePoint 2010

Application Note 02 Advanced SMTP setup

ITMC 2079 MCTS Configuring and Administering Microsoft SharePoint 2010

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

Magento Search Extension TECHNICAL DOCUMENTATION

HP ProLiant PRO Management Pack (v 2.0) for Microsoft System Center User Guide

Server Virtualization with Windows Server Hyper-V and System Center

Oracle Exam 1z0-102 Oracle Weblogic Server 11g: System Administration I Version: 9.0 [ Total Questions: 111 ]

WHITE PAPER POWERSHELL FOR DUMMIES HOW TO KEEP TRACK OF

Z-Term V4 Administration Guide

Automating Microsoft

Using Network Application Development (NAD) with InTouch

Installing and Configuring Windows Server Module Overview 14/05/2013. Lesson 1: Planning Windows Server 2008 Installation.

Server Virtualization with Windows Server Hyper-V and System Center

Preparing an IIS Server for EmpowerID installation

Buffalo Technology: Migrating your data to Windows Storage Server 2012 R2

Forefront Management Shell PowerShell Management of Forefront Server Products

PowerShell Configuration Guide

KonyOne Server Installer - Linux Release Notes

Exam : Administrating Windows Server 2012 R2. Course Overview

Developing Microsoft Azure Solutions 20532B; 5 Days, Instructor-led

Windows Server 2012 R2 Storage Infrastructure

Click Studios. Passwordstate. Password Discovery, Reset and Validation. Requirements

Contents 1. Introduction 2. Security Considerations 3. Installation 4. Configuration 5. Uninstallation 6. Automated Bulk Enrollment 7.

Acknowledgments Finding Your Way Around Windows PowerShell p. 1 Getting Started with Windows PowerShell p. 3 Installing Windows PowerShell p.

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

HOW TO SILENTLY INSTALL CLOUD LINK REMOTELY WITHOUT SUPERVISION

1z0-102 Q&A. DEMO Version

50331D Windows 7, Enterprise Desktop Support Technician (Windows 10 Curriculum)

Note: The scripts in this article should work for XenApp 6 and XenApp 5 for Windows Server 2008 and XenApp 5 for Windows Server 2003.

LT Auditor Windows Assessment SP1 Installation & Configuration Guide

SPHOL205: Introduction to Backup & Restore in SharePoint Hands-On Lab. Lab Manual

Release Notes: SANsymphony-V System Center Operations Manager (SCOM) Management Pack 1.3

Load Testing How To. Load Testing Overview

Microsoft Enterprise Search for IT Professionals Course 10802A; 3 Days, Instructor-led

Glyma Deployment Instructions

Microsoft Corporation. Status: Preliminary documentation

Specops Command. Installation Guide

Windows Scheduled Task and PowerShell Scheduled Job Management Pack Guide for Operations Manager 2012

Unidesk 3.0 Script to Increase UEP Size for Persistent Desktops

Deploying Dedicated Virtual Desktops in Hosted Environments

Deploying Dedicated Virtual Desktops in Hosted Environments

Windows PowerShell. 3.0 Step by Step. Ed Wilson

PowerShell Support in SCAP 1.2. Michael Tan Microsoft Corporation

Course Syllabus. Implementing and Managing Windows Server 2008 Hyper-V. Key Data. Audience. At Course Completion. Prerequisites

Windows PowerShell Cookbook

Avatier Identity Management Suite

ENTERPRISE VAULT 9.0 FEATURE BRIEFING

Course Outline. Create and configure virtual hard disks. Create and configure virtual machines. Install and import virtual machines.

Configuring and Administrating Microsoft SharePoint 2010 (10174) HK913S

Fairsail. Implementer. Fairsail to Active Directory Synchronization. Version 1.0 FS-PS-FSAD-IG R001.00

Automating. Administration. Microsoft SharePoint with Windows. PowerShell 2.0. Gary Lapointe Shannon Bray. Wiley Publishing, Inc.

IBM InfoSphere MDM Server v9.0. Version: Demo. Page <<1/11>>

Installation and Configuration in Microsoft Dynamics NAV 2013

Virtualizing Enterprise Desktops and Apps

TSX ETZ Configuration of your computer for TSX ETZ direct connection by serial link. Eng V1.0

In addition to their professional experience, students who attend this training should have technical knowledge in the following areas.

Server Virtualization with Windows Server Hyper-V and System Center

20409B: Server Virtualization with Windows Server Hyper-V and System Center

Setup Guide for AD FS 3.0 on the Apprenda Platform

Exam Name: IBM InfoSphere MDM Server v9.0

Managing Windows Environments with Group Policy

Guide to deploy MyUSBOnly via Windows Logon Script Revision 1.1. Menu

Tutorial. Inventory Methods

NetIQ AppManager for Microsoft Hyper-V Management Guide

Course MS20694A Virtualizing Enterprise Desktops and Apps. Length: 5 Days

Idera SQL Diagnostic Manager Management Pack Guide for System Center Operations Manager. Install Guide. Idera Inc., Published: April 2013

CDP-H210 Introduction to Azure Active Directory

Windows Server 2008 R2: Active Directory and Server Manager Remoting

SysAid Remote Discovery Tool

Installing and Configuring Windows Server 2012

Quick Start Guide. User Manual. 1 March 2012

VMware View Backup Best Practices

Configuring and Troubleshooting Internet Information Services in Windows Server 2008

Integrating HP Insight Management WBEM (WMI) Providers for Windows with HP System Insight Manager

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

Configuring and Administering Microsoft SharePoint 2010

Enterprise Vault 11 Feature Briefing

Application Discovery Manager User s Guide vcenter Application Discovery Manager 6.2.1

EMC APPSYNC AND MICROSOFT SQL SERVER A DETAILED REVIEW

How To Import And Re-Import Data From An Infosphere Data Model To An Infosplash Server On A Pc Or Macbook

Transcription:

Dotnet Agent Installation with Remote Management - Powershell Extension Advanced Options Advanced Agent Configuration The agent management module allows you to add instrumentation for existing IIS Applications, Windows services, and standalone applications to your existing configuration. Common Command Options Use the following syntax for tier assignment for Windows services and standalone applications: @ Name= <Windows service, or executable name> ; Tier= <tier name> Use the following syntax for tier assignment for IIS web applications: Site= <site name> ; Path= <virtual path> ; Tier= <tier name> Or for multiple tiers: @( Name= <IIS Application ; Path= <virtual path> ; Tier= <tier name>, Name= <Windows service, or executable name> ; Tier= <tier name> ) Override: Remove the existing configuration before adding the new configuration. Instrument Standalone Applications The Add-StandaloneAppMontoring cmdlet adds configuration for standalone applications to an existing configuration file. After it modifies the agent configuration, Add-StandaloneAppMonitoring restarts the AppDynamics.Agent.Coordinator service automatically. Add-StandaloneAppMontoring @ Name= <executable name> ; Tier= <tier name> #Instrument a standalone executable locally. Remove existing configurations. Add-StandaloneAppMontoring @ Name= MyApp.exe ; Tier= My App Override #Instrument a standalone executable on a remote machine. Add- StandaloneAppMontoring @( @ Name= MyApp1.exe ; Tier= My App1, @ Name= MyApp2.exe ; Tier= My App2 ) -ComputerName machine1.example.com #Instrument multiple standalone executables locally. Restart IIS and a Windows service. Remove existing configurations. Add- StandaloneAppMontoring @( @ Name= MyApp1.exe ; Tier= My App1, @ Name= MyApp2.exe ; Tier= My App2 ) -RestartIIS - RestartWindowsServices svc1 -Override

Why would you want to restart IIS or a Windows service when adding standalone application for monitoring? The most common use case is when those standalone application(s) are started from IIS or a windows service. In this case we need to restart parent service to start monitoring of the standalone app.you can use the Add-StandaloneAppMonitoring command programmatically. For example first, run a script that lists the executables to monitor and adds them to a data structure to pass to the Add-StandaloneAppMapping cmdlet. Instrument Windows Services The Add-WindowsServiceMontoring cmdlet adds configuration for Windows services to an existing configuration file. After it modifies the agent configuration, Add-WindowsServiceMonitoring restarts the AppDynamics.Agent.Coordinator service automatically. Add-WindowsServiceMontoring @ Name= <executable name> ; Tier= <tier name> #Instrument a Windows service locally. Remove existing configurations. Add-WindowsServiceMonitoring @ Name= MySvc ; Tier= My Svc Override #Instrument two Windows Services remotely. Add- WindowsServiceMonitoring @( @ Name= MySvc1 ; Tier= My Svc1, @ Name= MySvc2 ; Tier= My Svc2 ) -ComputerName machine1.example.com #Instrument two Windows services locally. Restart IIS. Restart the Windows services. Add-WindowsServiceMonitoring @( @ Name= MySvc1 ; Tier= My Svc1, @ Name= MySvc2 ; Tier= My Svc2 ) -RestartIIS - RestartWindowsServices MySvc1, MySvc2 The following example automation script discovers local windows services which have names starting with MyCompany and adds those for monitoring. $services = @() foreach($i in (Get-Service -Name MyCompany.*" )) $svc = @ Name=$i.Name ; Tier=$i.Name $services += $svc Add-WindowsServiceMonitoring $services -RestartWindowsServices ( $services Select $_.Name ) Instrument IIS web applications The Add-IISApplicationMontoring cmdlet adds configuration for IIS applications to an existing configuration file. After it modifies the agent configuration, Add-WindowsServiceMonitoring restarts the AppDynamics.Agent.Coordinator service automatically.

Add-IISApplicationMontoring @ Site= <site name> ; Path= <virtual path> ; Tier= <tier name> #Instrument the the Default Web Site locally. Add- IISApplicationMonitoring @ Site= Default Web Site ; Path= / ; Tier= Web #Instrument the Default Web Site locally. Remove existing configurations. Add-IISApplicationMonitoring @ Site= Default Web Site ; Path= / ; Tier= Web -Override #Instrument the Default Web Site locally. Restart IIS Add- IISApplicationMonitoring @ Site= Default Web Site ; Path= / ; Tier= Web -RestartIIS #Instrument the Default Web Site remotely. Restart IIS Add-IISApplicationMonitoring @ Site= Default Web Site ; Path= / ; Tier= Web -ComputerName machine1.example.com -RestartIIS The following automation script example scan local IIS web sites and instruments the sites ending with ".com" for monitoring: $apps= @() foreach($i in (Get-WebSite -Name *.com" )) $app= @ Site=$i.Name; Path= / ; Tier=$i.Name $apps += $app Add-IISApplicationMonitoring $apps -RestartIIS Scripting Agent Configuration Using PowerShell Script Block The Update-ConfigirationFromScript cmdlet is a sophisticated automation example. It lets you use a script block to define monitoring configurations individually for each server.this script block uses smart logic that determines which applications to monitor and configures them accordingly. Update-ConfigurationFromScript <discoveryfunction> discoveryfunction is a user-defined method. It can execute locally or remotely. #Update configurations locally. Remove existing configurations. Update-ConfigurationFromScript MyDiscoveryFunction Override #Update configurations locally. Restart IIS and Windows services. Update-ConfigurationFromScript MyDiscoveryFunction -RestartIIS - RestartWindowsServices Service1, Service2 #Update configurations remotely. Restart IIS and Windows services. Remove existing configurations Update-ConfigurationFromScript

MyDiscoveryFunction -RestartIIS -RestartWindowsServices svc1, svc2 -ComputerName ( Get-Content.\servers.txt ) -Override This example function should return a hashtable with optional properties specifying which standalone application(s), windows service(s) and/or IIS application(s) to monitor. Example Discovery Function 1 function MyDiscoveryFunction() # Package return into a hashtable [hashtable]$configuration = @ # IIS array allows to monitor IIS applications $configuration.iis = @() $configuration.iis += @ Site= Default Web Site ; Path= / ; Tier= Web # Standalone allow to monitor standalone applications $configuration.standalone = @() $configuration.standalone += @ Name= MyApp.exe ; Tier= My App # WindowsService is an array with the list of windows service to be monitored $configuration.windowsservice = @() $configuration.windowsservice += @ Name= MySvc ; Tier= My Svc return $configuration This scenario enables dynamic discovery that can run on each remote server and return precise configuration. Below is another example script that checks if the IIS web server is installed and then enables for monitoring only sites ending with.com. Additionally, it discovers local windows services with the MyCompany in the name. Example Discovery Function 2 function MyDiscoveryFunction() # Package return into a hashtable [hashtable]$configuration = @ # Check if IIS is installed $w3svc = Get-Service W3SVC -ErrorAction SilentlyContinue if($w3svc -ne $null) $websites = Get-WebSite -Name *.com"

if($websites.count -gt 0) $configuration.iis = @() foreach($website in $websites) $configuration.iis += @ Site = $website.name; Path = "/"; Tier = $website.name # Check for windows services with naming starting "MyCompany." if($services.count -gt 0) $services = Get-Service -Name MyCompany.*" $configuration.windowsservice = @() foreach($service in $services) $configuration.windowsservice += @ Name=$service.Name ; Tier=$service.Name # Return resulted configuration return $configuration