Tip : Check AppFabric Cache Status Using PowerShell

Print Friendly

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. PowerShell ile AppFabric Cache Yönetimi
  2. Tip : AppFabric Önbellek Çalışma Durumunun PowerShell ile Kontrolü
  3. AppFabric Cache Management cmdlet
  4. AppFabric Cache Management cmdlet – v1.1
  5. Tip : Is Your PowerShell Session Running With Administrative Privileges?
  6. AppFabric Cache Yönetim cmdlet’i – 1.1
  7. AppFabric Cache Yönetim cmdlet’i
  8. Tip : IIS 7 ve Asp.Net için AppFabric Cache Erişim Yetkisi
  9. AppFabric Beta 2 Cache yapılandırma problemleri
  10. AppFabric Cache için geliştirme ortamının hazırlanması
Twitter Digg Delicious Stumbleupon Technorati Facebook Email

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

Leave a Reply

 
QR Code Business Card