Tip : Check AppFabric Cache Status Using PowerShell
It’s a daily job of a System Administrator to check AppFabric Cache status, and it will be very usefull to have a script to do so. Please find following script which will guide you to do so;
$hostinfo = Get-CacheHost
if($hostinfo.Status -eq [Microsoft.ApplicationServer.Caching.AdminApi.ServiceStatus]::Down)){
# Do whatever you want with a down AppFabric Cache host
}else{
# Do whatever you want with a running AppFabric Cache host
}
As usual, in order to execute this PowerShell script, you should perform following commands first;
Import-Module DistributedCacheAdministration Use-CacheCluster
Related posts:



02. Apr, 2010 







No comments yet... Be the first to leave a reply!