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:

  1. Tip : AppFabric Önbellek Çalışma Durumunun PowerShell ile Kontrolü
  2. PowerShell ile AppFabric Cache Yönetimi
  3. AppFabric Cache Management cmdlet
  4. AppFabric Cache Management cmdlet – v1.1
  5. Tip : Is Your PowerShell Session Running With Administrative Privileges?
Twitter Digg Delicious Stumbleupon Technorati Facebook Email

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

Leave a Reply