UNIX/Linux SCX 代理程式診斷
Microsoft.Unix.SCX.Restart.Diagnostic (Diagnostic)
警告:執行此診斷並不安全,請勿對不信任的電腦執行此診斷,因為診斷過程中可能會將認證公開給不明的系統。
Element properties:
Member Modules:
Source Code:
<Diagnostic ID="Microsoft.Unix.SCX.Restart.Diagnostic" Comment="In response to Heartbeat failure" Accessibility="Public" Enabled="false" Target="Microsoft.Unix.Computer" Monitor="Microsoft.Unix.WSMan.Heartbeat.Monitor" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Maintenance</Category>
<ProbeAction ID="SSHCommand" TypeID="Microsoft.Unix.SSHCommand.ProbeAction">
<Host>$Target/Property[Type="Microsoft.Unix.Computer"]/PrincipalName$</Host>
<Port>$Target/Property[Type="Microsoft.Unix.Computer"]/SSHPort$</Port>
<UserName>$RunAs[Name="Microsoft.Unix.AgentMaintenanceAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Microsoft.Unix.AgentMaintenanceAccount"]/Password$</Password>
<Command>/opt/microsoft/scx/bin/tools/scxadmin -status</Command>
<TimeoutSeconds>20</TimeoutSeconds>
<IgnoreElevation>false</IgnoreElevation>
</ProbeAction>
</Diagnostic>