The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

9.8 Managing Packages for System Groups Using spacecmd

To compare the packages installed on the systems in a system group with a stored package profile, use the system_comparepackageprofile command.

spacecmd {SSM:0}> spacecmd {SSM:0}> system_comparepackageprofile group:group1 svr1-profile1
svr3.mydom.com:
Package  This System  Other System  Difference
-------  -----------  ------------  ----------
zsh      None         4.3.10-9.el6  Only there

##############################

svr4.mydom.com:
Package  This System  Other System  Difference
-------  -----------  ------------  ----------
zsh      None         4.3.10-9.el6  Only there

To install a package on the systems in a system group, use the system_installpackage command.

spacecmd {SSM:0}> system_installpackage group:group1 zsh
svr3.mydom.com:
zsh-4.3.10-9.el6.x86_64

##############################

svr4.mydom.com:
zsh-4.3.10-9.el6.x86_64

Install these packages [y/N]: y
INFO: Scheduled 2 system(s)

To list the package upgrades that are available for the systems in a system group, use the system_listupgrades command.

spacecmd {SSM:0}> system_listupgrades group:group1
svr3.mydom.com:
bash-4.1.2-29.el6.0.1.x86_64
wget-1.12-5.el6_6.1.x86_64

##############################

svr4.mydom.com:
wget-1.12-5.el6_6.1.x86_64

To upgrade the packages on the systems in a system group, use the system_upgradepackage command.

spacecmd {SSM:0}> system_upgradepackage group:group1 *
svr3.mydom.com:
bash-4.1.2-29.el6.0.1.x86_64
wget-1.12-5.el6_6.1.x86_64

##############################

svr4.mydom.com:
wget-1.12-5.el6_6.1.x86_64

Install these packages [y/N]: y
INFO: Scheduled 2 system(s)

To remove a package from the systems in a system group, use the system_removepackage command.

spacecmd {SSM:0}> system_removepackage svr1.mydom.com busybox*
svr3.mydom.com:
busybox-1.15.1-20.el6:1.x86_64

##############################

svr4.mydom.com:
busybox-1.15.1-20.el6:1.x86_64

Remove these packages [y/N]: y
INFO: Action ID: 407
INFO: Action ID: 408
INFO: Scheduled 2 system(s)