View
215
Download
1
Embed Size (px)
Citation preview
Security & Management
Argument Description
-ConnectionString
Connection information for the cluster (will differ based on provider)
-Provider Loads the correct configuration provider
Import-Module DistributedCacheAdministrationImport-Module DistributedCacheConfigurationUse-CacheCluster
Cmdlet Description
Get-CacheHost Displays information about all the host services that are members of the cluster
Start-CacheCluster Starts all the host’s services in the cluster
Stop-CacheCluster Stops all services in the cluster
Restart-CacheCluster
Stops and starts all services in the cluster
Start-CacheHost Starts a specific cache host
Stop-CacheHost Stops a specific cache host
Restart-CacheHost Stops and starts a specific cache host
Cmdlet Description
Get-CacheClusterInfo Displays information about all the host services that are members of the cluster
Export-CacheClusterConfig
Exports the cluster configuration to an Xml file
Import-CacheClusterConfig
Imports and applies cluster configuration from an Xml file (note – cluster must be stopped to be able to apply modified configuration)
Cmdlet Description
New-Cache Creates a new cache
Remove-Cache Removes a specific cache
Get-Cache Returns information about all caches and regions
Get-CacheConfig Returns the configuration information about a specific cache
Set-CacheConfig Updates the configuration for a specific cache
Get-CacheStatistics
Returns information about cache performance
Get-CacheRegion Returns all cache regions, or the regions in a particular named cache
grant-cacheallowedclientaccount MyDomain\Machine1$ grant-cacheallowedclientaccount MyDomain\Jon
Cmdlet Description
Get-CacheAllowedClientAccounts Returns a list of all allowed clients
Grant-CacheAllowedClientAccount Grants the named account access to the cache
Revoke-CacheAllowedClientAccount Revokes cache access to the named account
Mode Value
Description
None No security
Transport Transport mode (NetTcp) enabled
ProtectionLevel Value
Description
None No message level security
Sign Messages are signed
EncryptAndSign Messages are signed and encrypted
<?xml version="1.0"?><configuration><configSections><!-- required to read the <dataCacheClient> element --><section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></configSections><dataCacheClient>
<securityProperties mode="None" protectionLevel="None" /><localCache isEnabled="true"sync=“Timeoutbased" objectCount="100000"ttlValue="300" /><hosts><host name="Demo2010a" cachePort="22233" /></hosts></dataCacheClient></configuration>
…<advancedProperties>
<securityProperties mode="None" protectionLevel="None" /></advancedProperties>…
logman create trace MySessionName –o test.etl –p {A77DCF21-545F-4191-B3D0-C396CF2683F2} 0x00000005 -ets
Set-CacheLogging –LogLevel VERBOSE –File c:\cache.log
Log Level Value
NONE 0x00000001
ERROR 0x00000002
WARNING 0x00000003
INFO 0x00000004
VERBOSE 0x00000005