1.9 KiB
DistributedCache Starten / Stoppen
Dienstag, 6. September 2016
16:03
DistributedCache starten:
Add-PSSnapin microsoft.share*
$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
$serviceInstance.Provision()
DistributedCache stoppen:
Add-PSSnapin microsoft.share*
$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
$serviceInstance.Unprovision()
DistributedCache auslesen / überprüfen:
Das folgende Skript liest einen Distributed Cache Host aus und liefert Informationen über die unterschiedlichen Caches, die Timer Jobs und weitere allgemeine Informationen über das System. Des Weiteren wird die AppFabric Konfiguration ausgelesen und die Cache Cluster Konfiguration exportiert. Hierbei wird auf dem Laufwerk D:\ ein Verzeichnis "\Distributed_Cache< SERVERNAME>" angelegt in dem die entsprechenden Ausgabedateien abgelegt werden.
Alternativ(?):
DistributedCache starten:
Add-PSSnapIn Microsoft.SharePoint.PowerShell -Verbose
Add-SPDistributedCacheServiceInstance -Verbose
DistributedCache stoppen:
Add-PSSnapIn Microsoft.SharePoint.PowerShell -Verbose
Stop-SPDistributedCacheServiceInstance -Graceful -Verbose
Remove-SPDistributedCacheServiceInstance
{width="4.96875in" height="0.6666666666666666in"}
-Verbose
<<DC.ps1>>