[Spacewalk-list] FW: [EXTERNAL] issue remote command using spacecmd?
oogiejonz at yahoo.com
oogiejonz at yahoo.com
Wed Aug 5 14:29:10 UTC 2020
Thanks guys. This is exactly what I was looking for. Happiness!! Full patching automation now.
Sent from Yahoo Mail for iPhone
On Tuesday, August 4, 2020, 2:00 PM, Dennis Pittman <djpittma at outlook.com> wrote:
<!--#yiv0357122428 _filtered {} _filtered {} _filtered {}#yiv0357122428 #yiv0357122428 p.yiv0357122428MsoNormal, #yiv0357122428 li.yiv0357122428MsoNormal, #yiv0357122428 div.yiv0357122428MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv0357122428 a:link, #yiv0357122428 span.yiv0357122428MsoHyperlink {color:blue;text-decoration:underline;}#yiv0357122428 a:visited, #yiv0357122428 span.yiv0357122428MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv0357122428 code {font-family:"Courier New";}#yiv0357122428 pre {margin:0in;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}#yiv0357122428 span.yiv0357122428HTMLPreformattedChar {font-family:"Courier New";}#yiv0357122428 p.yiv0357122428msonormal0, #yiv0357122428 li.yiv0357122428msonormal0, #yiv0357122428 div.yiv0357122428msonormal0 {margin-right:0in;margin-left:0in;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv0357122428 span.yiv0357122428EmailStyle21 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv0357122428 span.yiv0357122428EmailStyle22 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv0357122428 span.yiv0357122428EmailStyle24 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv0357122428 .yiv0357122428MsoChpDefault {font-size:10.0pt;} _filtered {}#yiv0357122428 div.yiv0357122428WordSection1 {}-->
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
From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com>On Behalf Of Peirce, Dean
Sent: Tuesday, August 4, 2020 1:08 PM
To: oogiejonz at yahoo.com; spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] [EXTERNAL] issue remote command using spacecmd?
I do
spacecmd —quiet —server=http://spacewalk.server.name —user=<spacewalk userid> —password=<spacewalk-pass> —nossl system_listpackageprofiles
On Aug 4, 2020, at 12:45 PM, 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
https://urldefense.com/v3/__https://www.redhat.com/mailman/listinfo/spacewalk-list__;!!MXVguWEtGgZw!eDLpl_JuTK4D5j7_ljDurrxmBiXkT_O7DN94L0MkUgqHfT5327mDUVqFqBa9T-0eTA$
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20200805/fb1fd4e1/attachment.htm>
More information about the Spacewalk-list
mailing list