Solaris 10 代理程式安裝工作
Microsoft.Solaris.10.Agent.Install.Task (Task)
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Solaris.10.Agent.Install.Task" Target="SC!Microsoft.SystemCenter.ManagementServicePool" Accessibility="Internal" Enabled="true">
<Category>Maintenance</Category>
<WriteAction ID="InstallAgent" TypeID="Unix!Microsoft.Unix.SSHCommand.InstallUnixAgent.WriteAction">
<Host/>
<Port>$Host/Property[Type="Unix!Microsoft.Unix.Computer"]/SSHPort$</Port>
<UserName/>
<Password/>
<InstallCommand1>echo -e "mail=
instance=overwrite
partial=nocheck
idepend=quit
rdepend=quit
conflict=nocheck
action=nocheck
basedir=default
" > /tmp/scx-@@user@@/scx;
uncompress -f /tmp/</InstallCommand1>
<InstallCommand2>.Z;
cd /tmp/scx-@@user@@;
/usr/sbin/pkgadd -a /tmp/scx-@@user@@/scx -n -d /tmp/</InstallCommand2>
<InstallPackage/>
<PackageInstance>MSFTscx</PackageInstance>
<TimeoutSeconds>120</TimeoutSeconds>
</WriteAction>
</Task>