Konfigurieren der Überwachung
In diesem Thema wird beschrieben, wie eine Anwendung oder ein Dienst mit den AppFabric-Cmdlets für die Verwendung der Überwachung konfiguriert werden. Die Cmdlets, die für die Konfiguration der Überwachung verwendet werden können, sind Start-ASAppMonitoring, Get-ASAppMonitoring, Set-ASAppMonitoring und Stop-ASAppMonitoring.
Wenn Sie ein AppFabric-Cmdlet interaktiv ausführen möchten, öffnen Sie die Windows PowerShell-Konsole für AppFabric, geben das entsprechende Cmdlet ein und drücken dann die EINGABETASTE. Weitere Informationen zum Ausführen von Cmdlets finden Sie unter Ausführen von AppFabric-Cmdlets.
Aktivieren der Überwachung für eine Anwendung
Führen Sie in der Windows PowerShell-Konsole das Cmdlet Set-ASAppMonitoring aus, um die Überwachung einer Anwendung zu aktivieren.
Syntaxoptionen für Set-ASAppMonitoring:
Syntax 1
Set-ASAppMonitoring [-SiteName] <String> [-VirtualPath] <String> -MonitoringLevel [-Confirm] [-ConnectionStringName <String>]
Syntax 2
Set-ASAppMonitoring [-Uri] <Uri> -MonitoringLevel [-Confirm] [-ConnectionStringName <String>]
Syntax 3
Set-ASAppMonitoring [-ApplicationObject] <ApplicationInfo> -MonitoringLevel [-Confirm] [-ConnectionStringName <String>]
Syntax 4
Set-ASAppMonitoring -MonitoringLevel [-Confirm] [-ConnectionStringName <String>] -Root
Parameter | Beschreibung |
---|---|
[-SiteName] <Zeichenfolge> [[-VirtualPath] <Zeichenfolge>]. [-Uri] <Uri>, -ApplicationObject <ApplicationInfo> oder -Root |
Betriebsbereich des Cmdlets |
-MonitoringLevel |
{<Custom> | <EndToEndMonitoring> | <ErrorsOnly> | <HealthMonitoring> | <Off> | <Troubleshooting>} |
-Confirm |
Option zum Bestätigen bzw. nicht Bestätigen einer Aktion |
-ConnectionStringName <Zeichenfolge> |
Verbindungszeichenfolge für den Zugriff auf eine bestimmte Überwachungsdatenbank |
Starten der Überwachung für eine Anwendung
Führen Sie in der Windows PowerShell-Konsole das Cmdlet Start-ASAppMonitoring aus, um die Überwachung einer Anwendung zu starten.
Syntaxoptionen für Start-ASAppMonitoring:
Syntax 1
Start-ASAppMonitoring [-SiteName] <String> [[-VirtualPath] <String>] [-CurrentScopeOnly]
Syntax 2
Start-ASAppMonitoring [-Uri] <Uri> [-CurrentScopeOnly]
Syntax 3
Start-ASAppMonitoring -ApplicationObject <ApplicationInfo> [-CurrentScopeOnly]
Syntax 4
Start-ASAppMonitoring -MonitoringInfo <MonitoringInfo> [-CurrentScopeOnly]
Syntax 5
Start-ASAppMonitoring [-CurrentScopeOnly] -Root [-CurrentScopeOnly]
Parameter | Beschreibung |
---|---|
[-SiteName] <Zeichenfolge> [[-VirtualPath] <String>], [-Uri] <Uri>, -ApplicationObject <AnwendungsInfo> oder -Root |
Betriebsbereich des Cmdlets |
-MonitoringInfo |
Struktur, die Überwachungsinformationen enthält |
-CurrentScopeOnly |
Deaktiviert alle rekursiven Vorgänge des Cmdlets |
Mit diesem Befehl wird in der Konfigurationsdatei enabled="true" festgelegt, um die Überwachung zu aktivieren.
<microsoft.applicationServer>
<monitoring lockElements="bulkCopyProviders, collectors">
<bulkCopyProviders>
<bulkCopyProvider providerName="System.Data.SqlClient" type="Microsoft.ApplicationServer.Monitoring.EventCollector.SqlServerBulkCopy, Microsoft.ApplicationServer.Monitoring, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</bulkCopyProviders>
<collectors>
<collector name="" session="0">
<settings retryCount="5" eventBufferSize="101" retryWait="00:00:15" maxWriteDelay="00:00:06" />
</collector>
</collectors>
<default enabled=”true’connectionStringName="DefaultSqlMonitoringConnectionString" monitoringLevel="HealthMonitoring" />
</monitoring>
Abrufen von Überwachungsinformationen für eine Webanwendung
Führen Sie in der Windows PowerShell-Konsole das Cmdlet Get-ASAppMonitoring aus, um Überwachungsinformationen für eine Anwendung abzurufen.
Syntaxoptionen für Get-ASAppMonitoring:
Syntax 1
Get-ASAppMonitoring [-SiteName] <String> [[-VirtualPath] <String>]
Syntax 2
Get-ASAppMonitoring [-Uri] <Uri>
Syntax 3
Get-ASAppMonitoring -ApplicationObject <ApplicationInfo>
Syntax 4
Get-ASAppMonitoring -Root
Parameter | Beschreibung |
---|---|
[-SiteName] <Zeichenfolge> [-VirtualPath], [-Uri] <Uri>, -ApplicationObject <ApplicationInfo> oder -Root |
Betriebsbereich des Cmdlets |
Stoppen der Überwachung für eine Anwendung
Führen Sie in der Windows PowerShell-Konsole das Cmdlet Stop-ASAppMonitoring aus, um die Überwachung einer Anwendung zu stoppen.
Syntaxoptionen für Stop-ASAppMonitoring:
Syntax 1
Stop-ASAppMonitoring [-SiteName] <String> [[-VirtualPath] <String>] [-CurrentScopeOnly]
Syntax 2
Stop-ASAppMonitoring [-Uri] <Uri> [-CurrentScopeOnly]
Syntax 3
Stop-ASAppMonitoring -ApplicationObject <ApplicationInfo> [-CurrentScopeOnly]
Syntax 4
Stop-ASAppMonitoring -MonitoringInfo <MonitoringInfo> [-CurrentScopeOnly]
Syntax 5
Stop-ASAppMonitoring [-CurrentScopeOnly] -Root
Parameter | Beschreibung |
---|---|
[-SiteName] <Zeichenfolge> [-VirtualPath], <Uri>, -ApplicationObject <ApplicationInfo> oder -Root |
Betriebsbereich des Cmdlets |
-MonitoringInfo |
Struktur, die Überwachungsinformationen enthält |
-CurrentScopeOnly |
Deaktiviert alle rekursiven Vorgänge des Cmdlets |
2012-03-05