To list groups:
spacecmd {SSM:32}> group_list
App Servers
Database Servers
DevServers
Prod Servers
STG Servers
Systems Servers
Web Servers
To Add group of Server to SSM to work with: (by the way ssm = system set manager)
spacecmd {SSM:0}> ssm_add group:"Database Servers"
To list servers set to be managed by SSM use
- ssm_list
To remove group from SSM
- ssm_remove group:"Database Servers"
Once you have group set in SSM you can perform other actions on them. change channels, run commands, etc..
type help for help. or help ssm
To run a script again the hosts create script in either your home dir or if running as root in /root/ then run the command below and follow the prompts and schedule.
spacecmd {SSM:32}> system_runscript ssm
User [root]:
Group [root]:
Timeout (in seconds) [600]:
Start Time [now]:
Script File [create]: mytestscript
There's many more commands available and you can pretty much configure kickstart, systems, config channels, run reports, rename repos, channels, schedule items, create activation keys, run API command directly, install/remove packages, and tons more. You can pretty much configure anything via spacecmd, so it can be dangerous.
reference links
- https://fedorahosted.org/spacewalk/wiki/spacecmd
- http://linux.die.net/man/1/spacecmd
- https://github.com/hardys/clone_release_scripts
(wrapper scripts for use with spacecmd or Satellite)
snippet tip.
Put /var/lib/rhn/kickstarts/snippets/1 in GIT or SVN for safe keeping of
snippets
Wakkadoo Tech: Satellite Spacecmd Examples >>>>> Download Now
ReplyDelete>>>>> Download Full
Wakkadoo Tech: Satellite Spacecmd Examples >>>>> Download LINK
>>>>> Download Now
Wakkadoo Tech: Satellite Spacecmd Examples >>>>> Download Full
>>>>> Download LINK