使用PSSession和invoke-command远程配置AppFabric缓存 [英] remotely configure AppFabric cache using PSSession and invoke-command

查看:90
本文介绍了使用PSSession和invoke-command远程配置AppFabric缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用enter-pssession和invoke-command远程配置并从缓存服务器获取缓存信息。两者都给我同样的错误。

I'm trying to remotely configure and get cache information from my cache server using enter-pssession and invoke-command. Both are giving me the same error.

我的机器与缓存服务器和数据库服务器在同一个域中。

My machine is on the same domain as the cache server and the DB server.

PS C:\\ \\Users\sandywu> invoke-command -ComputerName Server-FE-02 -ScriptBlock {import-Module DistributedCacheAdministration; Use-CacheCluster -Provider System.Data.SqlClient -ConnectionString" Data Source = Server-DB-01; Initial Catalog = VelocityDB; integrated
Security = True" get-cachehost}

ErrorCode< AdminUIInvalidClusterSettings>:SubStatus< ES0001>:提供的群集设置无效。

    + CategoryInfo          :InvalidArgument:(:) [Use-CacheCluster],DataCacheException

    + FullyQualifiedErrorId:AdminUIInvalidClusterSettings,Microsoft.ApplicationServer.Caching.Commands.UseCacheClust

   erCommand

ErrorCode< AdminUICacheAdminNullGet>:SubStatus< ES0001>:错误:Use-CacheClus没有提供有效的群集设置

ter。

  ;&NBSP;&NBSP; + CategoryInfo          :NotSpecified:(:) [Get-CacheHost],DataCacheException

    + FullyQualifiedErrorId:Microsoft.ApplicationServer.Caching.DataCacheException,Microsoft.ApplicationServer.Cachi

   ng.Commands.GetCacheHostCommand

PS C:\Users\sandywu> invoke-command -ComputerName Server-FE-02 -ScriptBlock {import-Module DistributedCacheAdministration;Use-CacheCluster -Provider System.Data.SqlClient -ConnectionString "Data Source=Server-DB-01;Initial Catalog=VelocityDB;Integrated Security=True";get-cachehost}
ErrorCode<AdminUIInvalidClusterSettings>:SubStatus<ES0001>:Invalid cluster settings provided.
    + CategoryInfo          : InvalidArgument: (:) [Use-CacheCluster], DataCacheException
    + FullyQualifiedErrorId : AdminUIInvalidClusterSettings,Microsoft.ApplicationServer.Caching.Commands.UseCacheClust
   erCommand
ErrorCode<AdminUICacheAdminNullGet>:SubStatus<ES0001>:Error: No valid cluster settings were provided with Use-CacheClus
ter.
    + CategoryInfo          : NotSpecified: (:) [Get-CacheHost], DataCacheException
    + FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheException,Microsoft.ApplicationServer.Cachi
   ng.Commands.GetCacheHostCommand

所以我试图使用pssession但也失败了:

So the I tried to use pssession and that also failed:

PS C:\ Users \ sandywu> enter-pssession -ComputerName Machine-fe-02

[Machine-fe-02]:PS C:\ Users \sandywu \ Document> import-module distributedcacheadministration

[Machine-fe-02]:PS C:\ Users \sandywu \ Document> use-cachecluster -Provider System.Data.SqlClient -ConnectionString" Data Source = Machine-DB-01; Initial Catalog = VelocityDB; Integrated Security = True"

ErrorCode< AdminUIInvalidClusterSettings>:SubStatus< ; ES0001>:提供的群集设置无效。

    + CategoryInfo          :
$
    + FullyQualifiedErrorId:AdminUIInvalidClusterSettings,Microsoft.ApplicationServer.Caching.Commands.UseCacheClust

   erCommand

PS C:\Users\sandywu> enter-pssession -ComputerName Machine-fe-02
[Machine-fe-02]: PS C:\Users\sandywu\Documents> import-module distributedcacheadministration
[Machine-fe-02]: PS C:\Users\sandywu\Documents> use-cachecluster -Provider System.Data.SqlClient -ConnectionString "Data Source=Machine-DB-01;Initial Catalog=VelocityDB;Integrated Security=True"
ErrorCode<AdminUIInvalidClusterSettings>:SubStatus<ES0001>:Invalid cluster settings provided.
    + CategoryInfo          :
    + FullyQualifiedErrorId : AdminUIInvalidClusterSettings,Microsoft.ApplicationServer.Caching.Commands.UseCacheClust
   erCommand

[Machine-fe-02]:PS C:\ Users \sandywu \ Document> exit-pssession

[Machine-fe-02]: PS C:\Users\sandywu\Documents> exit-pssession

 

我在缓存服务器上尝试了相同的use-cachecluster命令,并没有抱怨无效的cluter设置&NBSP;我错过了什么吗? 感谢您的任何建议。

I tried the same use-cachecluster command on the cache server itself and it did not complain about the invalid cluter setting.  Am I missing something?  Thanks for any suggestions.

 

Sandy

 

 

推荐答案

这些错误 也出现在SQL服务器日志中:

These errors  also appeared in the SQL server log:



用户'NT AUTHORITY \ANONYMOUS LOGON'登录失败。原因:基于令牌的服务器访问验证因基础结构错误而失败。检查先前的错误。


Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors.


这篇关于使用PSSession和invoke-command远程配置AppFabric缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆