Solaris 10 特殊權限的代理程式安裝工作
Microsoft.Solaris.10.Elevated.Agent.Install.Task (Task)
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Solaris.10.Elevated.Agent.Install.Task" Target="SC!Microsoft.SystemCenter.ManagementServicePool" Accessibility="Internal" Enabled="true">
<Category>Maintenance</Category>
<WriteAction ID="InstallElevatedAgent" TypeID="Unix!Microsoft.Unix.SSHCommand.Elevated.InstallUnixAgent.WriteAction">
<Host/>
<Port>$Host/Property[Type="Unix!Microsoft.Unix.Computer"]/SSHPort$</Port>
<UserName/>
<Password/>
<SUPassword/>
<SUCommand>"/usr/bin/su root -c"</SUCommand>
<InstallCommand1>echo -e "mail=\ninstance=overwrite\npartial=nocheck\nidepend=quit\nrdepend=quit\nconflict=nocheck\naction=nocheck\nbasedir=default\n" > /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>
</WriteAction>
</Task>