Example:
spacecmd -u swadmin -p some_password -s spacewalk-server.com
spacecmd {SSM:0}> system_runscript group:group3 -s 20200617T0130 -t 60 -f
/root/myscript
# spacecmd help system_runscript
system_runscript: Schedule a script to run on the list of systems provided
usage: system_runscript <SYSTEMS> [options]
options:
-u USER
-g GROUP
-t TIMEOUT
-s START_TIME
-l LABEL
-f FILE
<SYSTEMS> can be any of the following:
name
ssm (see 'help ssm')
search:QUERY (see 'help system_search')
group:GROUP
channel:CHANNEL
Dennis J. Pittman
[Email] [email protected]<mailto:[email protected]>
From:
[email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>>
On Behalf Of Peirce, Dean
Sent: Tuesday, August 4, 2020 1:08 PM
To: [email protected]<mailto:[email protected]>;
[email protected]<mailto:[email protected]>
Subject: Re: [Spacewalk-list] [EXTERNAL] issue remote command using spacecmd?
I do
spacecmd —quiet
—server=http://spacewalk.server.name<https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspacewalk.server.name%2F&data=02%7C01%7C%7Cd5ebaabf78d940f4f08308d838991267%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637321577368843494&sdata=Vc1N6%2F18UV3fWw%2Flbd0sfur4dZATaGnZC7BZs34JBHw%3D&reserved=0>
—user=<spacewalk userid> —password=<spacewalk-pass> —nossl
system_listpackageprofiles
On Aug 4, 2020, at 12:45 PM, [email protected]<mailto:[email protected]>
wrote:
Does anyone know of a way to issue a remote command to a server using spacecmd?
It is not jumping out at me from the spacecmd help menu.
thanks -
_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://urldefense.com/v3/__https://www.redhat.com/mailman/listinfo/spacewalk-list__;!!MXVguWEtGgZw!eDLpl_JuTK4D5j7_ljDurrxmBiXkT_O7DN94L0MkUgqHfT5327mDUVqFqBa9T-0eTA$<https://urldefense.com/v3/__https:/www.redhat.com/mailman/listinfo/spacewalk-list__;!!MXVguWEtGgZw!eDLpl_JuTK4D5j7_ljDurrxmBiXkT_O7DN94L0MkUgqHfT5327mDUVqFqBa9T-0eTA$>
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list