8.3 Searching for Systems Using spacecmd

To search for systems, use the system_search command.

spacecmd {SSM:0}> system_search criterion:value

You can search on the following criteria:

device

System device name. For example: "xen platform device".

driver

System driver name. For example: ata_piix.

hostname

FQDN of the system. For example: svr1.mydom.com.

id

System ID in Spacewalk. For example: 1000010100.

ip

IP address. For example: 192.168.1.

name

System name in Spacewalk. For example: svr1.mydom.com.

uuid

System UUID. For example: 0004fb0000060000a4d43e4f737f4f5d.

vendor

System vendor name. For example: GenuineIntel.

For example, search for systems that have an IP address that contains 192.168.1:

spacecmd {SSM:0}> system_search ip:192.168.1
svr1.mydom.com    192.168.1.201
svr2.mydom.com    192.168.1.202
...

You can also use a search query instead of a system name with spacecmd commands, for example:

spacecmd {SSM:0}> group_addsystems group3 search:ip:192.168.1

To search for systems that subscribe to a software channel, use the softwarechannel_listsystems command.

spacecmd {SSM:0}> softwarechannel_listsystems ol6-x86_64
svr1.mydom.com
svr2.mydom.com
...