[Spacewalk-list] FW: [EXTERNAL] issue remote command using spacecmd?

Dennis Pittman djpittma at outlook.com
Tue Aug 4 19:00:33 UTC 2020


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] dennis.j.pittman at gmail.com<mailto:dennis.j.pittman at gmail.com>


From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> On Behalf Of Peirce, Dean
Sent: Tuesday, August 4, 2020 1:08 PM
To: oogiejonz at yahoo.com<mailto:oogiejonz at yahoo.com>; spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
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, oogiejonz at yahoo.com<mailto:oogiejonz at yahoo.com> 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
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
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$>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20200804/f8fbeb89/attachment.htm>


More information about the Spacewalk-list mailing list