Thanks for the reply! I think the quotes should only be needed if running the command in the shell as you did, rather then within the spacecmd REPL as I tried. Regardless, still not working for me:
matz@pdx-pkgms-lv01 ~ $ rpm -q spacecmd spacecmd-2.8.25-1.el7.centos.noarch matz@pdx-pkgms-lv01 ~ $ spacecmd -q softwarechannel_listsyncschedule | grep epel7-x86_84 145 epel7-x86_84 matz@pdx-pkgms-lv01 ~ $ spacecmd softwarechannel_setsyncschedule epel7-x86_84 '0 0 22 ? * 1' INFO: Connected to http://pdx-pkgms-lv01/rpc/api as matz softwarechannel_setsyncschedule: Sets the repo sync schedule for a software channel usage: softwarechannel_setsyncschedule <CHANNEL> <SCHEDULE> Options: -e/--no-errata : Do not sync errata -f/--fail : Terminate upon any error -k/--sync-kickstart : Create kickstartable tree -l/--latest : Only download latest package versions when repo syncs The schedule is specified in Quartz CronTrigger format without enclosing quotes. For example, to set a schedule of every day at 1am, <SCHEDULE> would be 0 0 1 * * ? If <SCHEDULE> is left empty, it will be disabled. Any other thoughts out there? Thanks again On Fri, May 17, 2019 at 3:18 PM William H. ten Bensel <whten...@up.com> wrote: > Was able to change it with the following... Need to put the schedule in ' > '. > > # rpm -q spacecmd > spacecmd-2.6 > > #spacecmd -q -s <walk> softwarechannel_listsyncschedule |grep epel6-x86_64 > 655 epel6-x86_64 0 0 21 ? * 1 > > #spacecmd -q -s <walk> softwarechannel_setsyncschedule epel6-x86_64 '0 0 > 22 ? * 1' > > #spacecmd -q -s <walk> softwarechannel_listsyncschedule |grep epel6-x86_64 > 655 epel6-x86_64 0 0 22 ? * 1 > > > Thanks and good luck > > > > > From: Guy Matz <guym...@gmail.com> > To: Spacewalk-list@redhat.com > Date: 05/16/2019 10:05 AM > Subject: [Spacewalk-list] error with "spacecmd > softwarechannel_setsyncschedule" > Sent by: spacewalk-list-boun...@redhat.com > ------------------------------ > > > > > Hi! Any thoughts here? > spacecmd {SSM:0}> softwarechannel_setsyncschedule epel7_x86_84 0 30 2 ? * * > ERROR: redstone.xmlrpc.XmlRpcFault: unhandled internal exception: > redstone.xmlrpc.XmlRpcFault: > com.redhat.rhn.taskomatic.InvalidParamException: Cron trigger: 0 30 2 ? .* > .* > > Thanks a lot, > Guy_______________________________________________ > Spacewalk-list mailing list > Spacewalk-list@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-list > > > > > ** > > > > This email and any attachments may contain information that is > confidential and/or privileged for the sole use of the intended recipient. > Any use, review, disclosure, copying, distribution or reliance by others, > and any forwarding of this email or its contents, without the express > permission of the sender is strictly prohibited by law. If you are not the > intended recipient, please contact the sender immediately, delete the > e-mail and destroy all copies. > > ** > _______________________________________________ > Spacewalk-list mailing list > Spacewalk-list@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-list >
_______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list