Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Dos command to get web Application Start time and Application pool load state

$
0
0

Hi, in Windows Server 2008 R2,

I have IIS web application 'CAT' that is set to preloadEnabled:"true" and it's pool CATPOOL is set to autoStart:"true" and startMode:"AlwaysRunning"

This ensures that whenever CAT is restarted, the CATPOOL is preloaded.
The cache preload can take upto 30minutes.

Now, I am looking for a dos command (like appcmd) that will tell:
a) when the app 'CAT' was started and
b) the current state of the CATPOOL (if preloading is in progress or finished)
Note that the ouptut of -> 'appcmd list apppool "CATPOOL"' will return state:"Started" even though the cache preload has not finished yet !

c:\Windows\System32\inetsrv>appcmd list apps /path:/CAT /text:*
APP
  path:"/CAT"
  APP.NAME:"Default Web Site/CAT"
  APPPOOL.NAME:"CATPOOL"
  SITE.NAME:"Default Web Site"
  [application]
    path:"/CAT"
    applicationPool:"CATPOOL"
    enabledProtocols:"http"
    serviceAutoStartEnabled:"false"
    serviceAutoStartProvider:""
    preloadEnabled:"true"
    [virtualDirectoryDefaults]
      path:""
      physicalPath:""
      userName:""
      password:""
      logonMethod:"ClearText"
      allowSubDirConfig:"true"
    [virtualDirectory]
      path:"/"
      physicalPath:"D:\Program Files\CatPro\CAT Reporting System"
      userName:""
      password:""
      logonMethod:"ClearText"
      allowSubDirConfig:"true"




c:\Windows\System32\inetsrv>appcmd list apppool "CATPOOL" /text:*
APPPOOL
  APPPOOL.NAME:"CATPOOL"
  PipelineMode:"Integrated"
  RuntimeVersion:"v4.0"
  state:"Started"
  [add]
    name:"CATPOOL"
    queueLength:"4000"
    autoStart:"true"
    enable32BitAppOnWin64:"false"
    managedRuntimeVersion:"v4.0"
    managedRuntimeLoader:"webengine4.dll"
    enableConfigurationOverride:"true"
    managedPipelineMode:"Integrated"
    CLRConfigFile:""
    passAnonymousToken:"true"
    startMode:"AlwaysRunning"
    [processModel]
      identityType:"NetworkService"
      userName:""
      password:""
      loadUserProfile:"false"
      setProfileEnvironment:"true"
      logonType:"LogonBatch"
      manualGroupMembership:"false"
      idleTimeout:"1.01:40:00"
      maxProcesses:"1"
      shutdownTimeLimit:"00:01:30"
      startupTimeLimit:"00:01:30"
      pingingEnabled:"true"
      pingInterval:"00:00:30"
      pingResponseTime:"00:01:30"
    [recycling]
      disallowOverlappingRotation:"false"
      disallowRotationOnConfigChange:"false"
      logEventOnRecycle:"Time, Memory, OnDemand, PrivateMemory"
      [periodicRestart]
        memory:"0"
        privateMemory:"0"
        requests:"0"
        time:"00:00:00"
        [schedule]
    [failure]
      loadBalancerCapabilities:"HttpLevel"
      orphanWorkerProcess:"false"
      orphanActionExe:""
      orphanActionParams:""
      rapidFailProtection:"true"
      rapidFailProtectionInterval:"00:05:00"
      rapidFailProtectionMaxCrashes:"5"
      autoShutdownExe:""
      autoShutdownParams:""
    [cpu]
      limit:"0"
      action:"NoAction"
      resetInterval:"00:00:00"
      smpAffinitized:"false"
      smpProcessorAffinityMask:"4294967295"
      smpProcessorAffinityMask2:"4294967295"



Thanks,

-srinivas y.


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>