Zadanie uaktualnienia agenta systemu Solaris 10
Microsoft.Solaris.10.Agent.Upgrade.Task (Task)
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Solaris.10.Agent.Upgrade.Task" Target="Microsoft.Solaris.10.Computer" 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>$RunAs[Name="Unix!Microsoft.Unix.AgentMaintenanceAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Unix!Microsoft.Unix.AgentMaintenanceAccount"]/Password$</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/pkgrm -n -a /tmp/scx-@@user@@/scx MSFTscx;
/usr/sbin/pkgadd -a /tmp/scx-@@user@@/scx -n -d /tmp/</InstallCommand2>
<InstallPackage/>
<PackageInstance>MSFTscx</PackageInstance>
<TimeoutSeconds>120</TimeoutSeconds>
</WriteAction>
</Task>