[Spacewalk-list] eva-direct-errata-sync.pl -- easier than rhn-clone-errata.py

Paul Robert Marino prmarino1 at gmail.com
Thu Aug 16 17:04:34 UTC 2012


 I have 4 comments on how you're running it
1) The default for --sourceserver is rhn.redhat.com so you don't need
to specify it unless you are syncing from an other spacewalk server.
2) The --verbose flag is for debugging only and its output is really
not meant for normal use and may be disturbing if you don't understand
it
3) After the initial sync adding a the --startfromprevious option
really does speed it up

That being said depending on how your database is tuned and how fast
your box is it shouldn't take more than two or three hours for the
initial sync to complete.


On Thu, Aug 16, 2012 at 10:16 AM,  <fnwsa at yahoo.com> wrote:
> Thank Robert and Paul for your instructions.
>
> The eva-direct-errata-sync.pl is running now (don't know how long it will
> take). See these:
>
> # perl eva-direct-errata-sync.pl
> --sourceuser=rhnusername \
> --destinationuser=spacewalkusername \
> --sourcepassword=rhnpassword \
> --destinationpassword=spacewalkpassword \
> --sourcechannel=rhel-i386-server-5 \
> --destinationchannel=spacewalk_channel_rhel_5_i386 \
> --sourceserver=access.redhat.com \
> --destinationserver=localhost \
> --recursive \
> --verbose
> No bugzilla url specified setting to the default
> "https://bugzilla.redhat.com/"
> connecting to "https://access.redhat.com/rpc/api/" with username
> "rhnusername"
> 404 Not Found
>
> Change access.redhat.com to rhn.redhat.com in sourceserver.
>
> # perl eva-direct-errata-sync.pl
> --sourceuser=rhnusername \
> --destinationuser=spacewalkusername
> --sourcepassword=rhnpassword \
> --destinationpassword=spacewalkpassword \
> --sourcechannel=rhel-i386-server-5 \
> --destinationchannel=spacewalk_channel_rhel_5_i386 \
> --sourceserver=rhn.redhat.com \
> --destinationserver=localhost \
> --recursive \
> --verbose
> running......
>
> nz
>
> ________________________________
> From: "Boyd, Robert" <Robert.Boyd at peoplefluent.com>
> To: "fnwsa at yahoo.com" <fnwsa at yahoo.com>
> Sent: Wednesday, August 15, 2012 5:09:44 PM
> Subject: RE: [Spacewalk-list] rhn-clone-errata.py running issue
>
> To read the documentation  do this> Perldoc <scriptname>
>
> Here is a sample invocation:
>
> less /usr/local/bin/spacewalk-errata-sync
> source ~/.bash_profile
> echo `date` Syncing Spacewalk Errata
> #export FROMDATE=-F week
> export FROMDATE="-D `/usr/local/bin/errata_end_date`"
> export SYNCOPTIONS="--verbose --recursive ${FROMDATE}"
> # ERRATA[SRC|DST][USER|PASS] are defined in .bash_profile
> #echo syncing scientific linux
> #time /path/to/scripts/eva-direct-errata-sync.pl --sourceuser=username
> --destinationuser=username -r -c "rhel-x86_64-server-6" -C "sci-linux-6_2"
> -e RH -E SL6 -F week
> echo "Errata Sync Options: ${SYNCOPTIONS}"
> echo `date` syncing RHEL 6
> time /usr/local/bin/eva-direct-errata-sync.pl
> --sourcechannel=rhel-x86_64-server-6
> --destinationchannel=rhel-x86_64-server-6 ${SYNCOPTIONS}
> echo `date` syncing RHEL 5 x86_64
> time /usr/local/bin/eva-direct-errata-sync.pl
> --sourcechannel=rhel-x86_64-server-5
> --destinationchannel=rhel-x86_64-server-5 ${SYNCOPTIONS}
> echo `date` syncing RHEL 4 x86_64
> time /usr/local/bin/eva-direct-errata-sync.pl
> --sourcechannel=rhel-x86_64-es-4 --destinationchannel=rhel-x86_64-server-4
> ${SYNCOPTIONS}
> echo `date` syncing RHEL 5 i386
> time /usr/local/bin/eva-direct-errata-sync.pl
> --sourcechannel=rhel-i386-server-5 --destinationchannel=rhel-i386-server-5
> ${SYNCOPTIONS}
> echo `date` syncing RHEL 4 i386
> time /usr/local/bin/eva-direct-errata-sync.pl --sourcechannel=rhel-i386-es-4
> --destinationchannel=rhel-i386-server-4 ${SYNCOPTIONS}
>
> From: spacewalk-list-bounces at redhat.com
> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of fnwsa at yahoo.com
> Sent: Wednesday, August 15, 2012 4:25 PM
> To: spacewalk-list at redhat.com
> Subject: Re: [Spacewalk-list] rhn-clone-errata.py running issue
>
> Hi Paul,
>
> I've just downloaded your script eva-direct-errata-sync.pl and trying to use
> it. Is there a README or HowTo document that users can use? Thanks a lot!
>
> nz
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list