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

fnwsa at yahoo.com fnwsa at yahoo.com
Thu Aug 16 14:16:31 UTC 2012


Thank Robert and Paul for your instructions.

The eva-direct-errata-sync.pl isrunning 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120816/784e3c95/attachment.htm>


More information about the Spacewalk-list mailing list