spacecmd is very useful API to do changes in redhat satellite. Unfortunately, it is not well documented. Some useful command are listed here to explain concept of spacecmd api.
Once spacecmd rpm is installed, you will be able to list all sub-commands using below.
# spacecmd --username=nasimuddin.ansari help
# spacecmd --username=nasimuddin.ansari system_list
# spacecmd system_details
# spacecmd system_addchildchannels
# spacecmd system_addconfigchannels
# spacecmd --username=nasimuddin.ansari "package_listinstalledsystems ganglia-gmond"
Once spacecmd rpm is installed, you will be able to list all sub-commands using below.
# spacecmd --username=nasimuddin.ansari help
System Information
- To get all system managed in Stellite
# spacecmd --username=nasimuddin.ansari system_list
- To get details of a system
# spacecmd system_details
Software Channels
- To add a child channel to a system
# spacecmd system_addchildchannels
Config Channel
- Add a config channel to system
# spacecmd system_addconfigchannels
Packages
- To get list of all system installed with with rpm starting with ganglia-gmond
# spacecmd --username=nasimuddin.ansari "package_listinstalledsystems ganglia-gmond"
Network
- To get the IP address of all registered systems
# spacespacecmd --username=nasimuddin.ansari report_ipaddresses
No comments:
Post a Comment