Home » Other » General » Is there extra thing I need to do to download from edelivery's wget (oracle linux 7.2)
Is there extra thing I need to do to download from edelivery's wget [message #659366] Fri, 13 January 2017 08:42 Go to next message
juniordbanewbie
Messages: 176
Registered: April 2014
Senior Member
Dear all,

I'm trying to download oracle linux 7.2 through edelivery wget script, but it always fail.

do we need to do extra procedures to download staff from oracle edelivery?

this is the partial wget.sh




#
# Generated onFri Jan 13 06:24:43 PST 2017# Start of user configurable variables
#
LANG=C
export LANG

# SSO username and password
read -p 'SSO User Name:' SSO_USERNAME
read -sp 'SSO Password:' SSO_PASSWORD


# Path to wget command
WGET=/usr/bin/wget
# Location of cookie file
COOKIE_FILE=/tmp/$$.cookies

# Log directory and file
LOGDIR=.
LOGFILE=$LOGDIR/wgetlog-`date +%m-%d-%y-%H:%M`.log
# Output directory and file
OUTPUT_DIR=.
#
# End of user configurable variable
#

if [ "$SSO_PASSWORD " = " " ]
then
 echo "Please edit script and set SSO_PASSWORD"
 exit
fi

# Contact osdc site so that we can get SSO Params for logging in
SSO_RESPONSE=`$WGET --user-agent="Mozilla/5.0" --no-check-certificate https://edelivery.oracle.com/osdc/faces/SearchSoftware 2>&1|grep Location`

# Extract request parameters for SSO
SSO_TOKEN=`echo $SSO_RESPONSE| cut -d '=' -f 2|cut -d ' ' -f 1`
SSO_SERVER=`echo $SSO_RESPONSE| cut -d ' ' -f 2|cut -d '/' -f 1,2,3`
SSO_AUTH_URL=/sso/auth
AUTH_DATA="ssousername=$SSO_USERNAME&password=$SSO_PASSWORD&site2pstoretoken=$SSO_TOKEN"

# The following command to authenticate uses HTTPS. This will work only if the wget in the environment
# where this script will be executed was compiled with OpenSSL. Remove the --secure-protocol option
# if wget was not compiled with OpenSSL
# Depending on the preference, the other options are --secure-protocol= auto|SSLv2|SSLv3|TLSv1
$WGET --user-agent="Mozilla/5.0" --secure-protocol=auto --post-data $AUTH_DATA --save-cookies=$COOKIE_FILE --keep-session-cookies $SSO_SERVER$SSO_AUTH_URL -O sso.out >> $LOGFILE 2>&1

rm -f sso.out




  $WGET  --user-agent="Mozilla/5.0" --no-check-certificate --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies "https://edelivery.oracle.com/osdc/download?fileName=V100082-01.iso&token=dmJoaTkxd0FZcVhDa2llSFZmUUVWQSE6OiF1c2VybmFtZT1FUEQtQ0guTEVOR0BDQU1MSU5FLkNPTSZ1c2VySWQ9Nzg0NTcxMCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVNHJmVtYWlsQWRkcmVzcz1jaC5sZW5nQGNhbWxpbmUuY29tJmZpbGVJZD04Mzk3NzcxMyZhcnU9MTk2MDI4NzUmYWdyZWVtZW50SWQ9MjU4Mjk4MiZzb2Z0d2FyZUNpZHM9MTQ4NzMyJnBsYXRmb3JtQ2lkcz02MCZwcm9maWxlSW5zdGFuY2VDaWQ9NTAwNDM4JmRvd25sb2FkU291cmNlPXdnZXQmcHJvZmlsZUluc3RhbmNlTmFtZT1PcmFjbGUgTGludXggNy4yLjAuMC4wIGZvciB4ODYgNjQgYml0JnBsYXRmb3JtTmFtZT14ODYgNjQgYml0Jm1lZGlhQ2lkPTUwMDI3NiZyZWxlYXNlQ2lkPSZpc1JlbGVhc2VTZWFyY2g9ZmFsc2U" -O $OUTPUT_DIR/V100082-01.iso >> $LOGFILE 2>&1 


this is the partial log I get


--2017-01-13 22:10:55--  https://login.oracle.com/sso/auth
Resolving login.oracle.com... 209.17.4.8
Connecting to login.oracle.com|209.17.4.8|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/osso_login_success?urlc=v1.2%7E14D7B7B53E1B9170204B225C333A7D531640618960D08139423B48EA366ADD0A6C90CA049EC56F6D55A3408EAEAA2BFF01EA969D3F83E5BBC9557BAD70037A96848C8218D7A132CEC2FAD6F7B9F1E379941AF876402B105DF661D346469046298B862EB9146FA911E33F1FDDC6F33E22C9939BCAF3119C5AFCA1E4D9541AF59E46CC0E9D927DB88F2C5FAEE8E1743ACFE9730E50FDE64990ED63E93D28E2267FA367C690F4DFB292C0485675F5B53A58A071386BB18039541C7E3448FBDAF14F16830009A3E4A2A48819561AA79CB18342884C52AF60BBF3E8835A4FFF57CB54D0EBFC65DCB02843E0C33D2C970CC9479622548189EB36E148E436A795BD9D025DEF1C53988BF810133CE714481B2DD75C212AC0AA23827E8FDB4EEDBBD97700BAB62A00EE5FABC0F16047F33721E659C3C4B98324AB7BDE324593B886466C6A [following]
--2017-01-13 22:10:56--  https://edelivery.oracle.com/osso_login_success?urlc=v1.2%7E14D7B7B53E1B9170204B225C333A7D531640618960D08139423B48EA366ADD0A6C90CA049EC56F6D55A3408EAEAA2BFF01EA969D3F83E5BBC9557BAD70037A96848C8218D7A132CEC2FAD6F7B9F1E379941AF876402B105DF661D346469046298B862EB9146FA911E33F1FDDC6F33E22C9939BCAF3119C5AFCA1E4D9541AF59E46CC0E9D927DB88F2C5FAEE8E1743ACFE9730E50FDE64990ED63E93D28E2267FA367C690F4DFB292C0485675F5B53A58A071386BB18039541C7E3448FBDAF14F16830009A3E4A2A48819561AA79CB18342884C52AF60BBF3E8835A4FFF57CB54D0EBFC65DCB02843E0C33D2C970CC9479622548189EB36E148E436A795BD9D025DEF1C53988BF810133CE714481B2DD75C212AC0AA23827E8FDB4EEDBBD97700BAB62A00EE5FABC0F16047F33721E659C3C4B98324AB7BDE324593B886466C6A
Resolving edelivery.oracle.com... 125.252.228.12
Connecting to edelivery.oracle.com|125.252.228.12|:443... connected.
ERROR: certificate common name `www.oracle.com' doesn't match requested host name `edelivery.oracle.com'.
To connect to edelivery.oracle.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
--2017-01-13 22:10:56--  https://edelivery.oracle.com/osdc/download?fileName=V100082-01.iso&token=LzExZGNlS3V5bzJjSHFGTzhTaDREQSE6OiF1c2VybmFtZT1FUEQtQ0guTEVOR0BDQU1MSU5FLkNPTSZ1c2VySWQ9Nzg0NTcxMCZjYWxsZXI9U2VhcmNoU29mdHdhcmUmY291bnRyeUlkPVNHJmVtYWlsQWRkcmVzcz1jaC5sZW5nQGNhbWxpbmUuY29tJmZpbGVJZD04Mzk3NzcxMyZhcnU9MTk2MDI4NzUmYWdyZWVtZW50SWQ9MjU2ODI5OSZzb2Z0d2FyZUNpZHM9MTQ4NzMyJnBsYXRmb3JtQ2lkcz02MCZwcm9maWxlSW5zdGFuY2VDaWQ9NTAwNDM4JmRvd25sb2FkU291cmNlPXdnZXQmcHJvZmlsZUluc3RhbmNlTmFtZT1PcmFjbGUgTGludXggNy4yLjAuMC4wIGZvciB4ODYgNjQgYml0JnBsYXRmb3JtTmFtZT14ODYgNjQgYml0Jm1lZGlhQ2lkPTUwMDI3NiZyZWxlYXNlQ2lkPSZpc1JlbGVhc2VTZWFyY2g9ZmFsc2U
Resolving edelivery.oracle.com... 125.252.228.12
Connecting to edelivery.oracle.com|125.252.228.12|:443... connected.
WARNING: certificate common name `www.oracle.com' doesn't match requested host name `edelivery.oracle.com'.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.2~CA55CD32~8C9305FEADC3E09A7D0A8564AA01ACF6F32A437819B10B4BB6B4018D69D6AB045F3BA413060F6482DBC7ED8F05D06E2CE9DA082CA8E1D305AB10EBB3344F9EC9BE29AD0BD5797EFCF97ABAAD437ACFFF233BAB772ACD472CA3BDB99ABD67272EA1F9752938F0B6BC29C92EE6EBC30AD66ACD570A95D3678304465D35C26C2E873518898CABC513DD12554C8E6F2A0B49E07DFE5CF1D5227E30C1D8284E6BD0AEFD430791A7FCD81C5A6A728EC8207246B287AE73983CC846B2E871F8D28239BB2AD5392CC4D5B5F9AEA94A98156BED9BFF5F8CCE72478A183D47100BB6ACB740885583D2A74549AD83306FA9125F8126D5C8D934E518BA72A51964FDC67CB3A14316A252FFEE444841EABBA0A24F91B8BDA5AAD1DA7383828869B6C99335D6B3F8373777842CB1E2D7D2F75B6531E2440E0FBF11177744126F8798E3EF046C2BC2A128BB67B1CC671341B0F39E58FF78A413BBCED473D139D33B260788D33C22C57B3E4FBE3E6F2FEB2D9584F54CB1DC4D7197199E86CBB16B557B3EC6041676FC85A679709419896D956A870F4EFB3366158102949B5FC775F625144EF68B8949E39B614927A4824A975A977FE6B751C2B1329AE8651C7DE64E749F9F9610B7D825E35C866257852430D1C6393F8F6C162B2E86D1D9E971B8F07B4943C7097B629D48FF1F81F0182271BFDADD2024AC076663B6F70742BB16BC107FD21A48840AE2152A6A9454D1051C92E3F3FEC278753D42F0731B5B4DE042818E03D7A1DCD9F0CC82051D9AE5AFEB467FD2E48A1FE6C927142BF693EFB9B1C9B2EB83263B38E1F3D40AE4E45E7C1E95A81C87D81A163B9723C65A7CD18FCA7E16888992069820E6DB1B80EE9248356D8A7CC97888B3A68CF42D4D63CE009575D852FDD73165BC3A120A39F5536BABE07E5CB0D81AA23F4664B4CA04E356483A4AA4C5512105FD0F70C7C508A49D0F0764CF2C57E5ADF76C2DDC5FCB81E72F4B74EC513E09EBAA49CBB49CBFDB88C777758F6DAF6193EC17E6487DF6FFBCA9892AB63023B895F0645CD111B0DAF2C1432F3958CB0C7655552AD5C079BAC0F439DFFCD6AB19 [following]
--2017-01-13 22:10:56--  https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.2~CA55CD32~8C9305FEADC3E09A7D0A8564AA01ACF6F32A437819B10B4BB6B4018D69D6AB045F3BA413060F6482DBC7ED8F05D06E2CE9DA082CA8E1D305AB10EBB3344F9EC9BE29AD0BD5797EFCF97ABAAD437ACFFF233BAB772ACD472CA3BDB99ABD67272EA1F9752938F0B6BC29C92EE6EBC30AD66ACD570A95D3678304465D35C26C2E873518898CABC513DD12554C8E6F2A0B49E07DFE5CF1D5227E30C1D8284E6BD0AEFD430791A7FCD81C5A6A728EC8207246B287AE73983CC846B2E871F8D28239BB2AD5392CC4D5B5F9AEA94A98156BED9BFF5F8CCE72478A183D47100BB6ACB740885583D2A74549AD83306FA9125F8126D5C8D934E518BA72A51964FDC67CB3A14316A252FFEE444841EABBA0A24F91B8BDA5AAD1DA7383828869B6C99335D6B3F8373777842CB1E2D7D2F75B6531E2440E0FBF11177744126F8798E3EF046C2BC2A128BB67B1CC671341B0F39E58FF78A413BBCED473D139D33B260788D33C22C57B3E4FBE3E6F2FEB2D9584F54CB1DC4D7197199E86CBB16B557B3EC6041676FC85A679709419896D956A870F4EFB3366158102949B5FC775F625144EF68B8949E39B614927A4824A975A977FE6B751C2B1329AE8651C7DE64E749F9F9610B7D825E35C866257852430D1C6393F8F6C162B2E86D1D9E971B8F07B4943C7097B629D48FF1F81F0182271BFDADD2024AC076663B6F70742BB16BC107FD21A48840AE2152A6A9454D1051C92E3F3FEC278753D42F0731B5B4DE042818E03D7A1DCD9F0CC82051D9AE5AFEB467FD2E48A1FE6C927142BF693EFB9B1C9B2EB83263B38E1F3D40AE4E45E7C1E95A81C87D81A163B9723C65A7CD18FCA7E16888992069820E6DB1B80EE9248356D8A7CC97888B3A68CF42D4D63CE009575D852FDD73165BC3A120A39F5536BABE07E5CB0D81AA23F4664B4CA04E356483A4AA4C5512105FD0F70C7C508A49D0F0764CF2C57E5ADF76C2DDC5FCB81E72F4B74EC513E09EBAA49CBB49CBFDB88C777758F6DAF6193EC17E6487DF6FFBCA9892AB63023B895F0645CD111B0DAF2C1432F3958CB0C7655552AD5C079BAC0F439DFFCD6AB19
Resolving login.oracle.com... 209.17.4.8
Connecting to login.oracle.com|209.17.4.8|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7135 (7.0K) [text/html]
Saving to: `/home/oracle/download/oracle/operating_system/oracle_linux/ol72/ol72_x64/V100082-01.iso'



no doubt it download, but these files are actually errorenous, i.e. u cannot unzip them at all.

this is the listing

-rwxr--r-- 1 oracle oinstall  5756 Jan  9 14:09 wget_ol72_x64.sh.orig
-rwxr--r-- 1 oracle oinstall  5915 Jan 11 12:30 wget_ol72_x64.sh
-rw-r--r-- 1 oracle oinstall 16250 Jan 11 12:33 wgetlog-01-11-17-12:33.log
-rw-r--r-- 1 oracle oinstall 16250 Jan 13 22:11 wgetlog-01-13-17-22:10.log
-rw-r--r-- 1 oracle oinstall  7138 Jan 13 22:16 V100082-01.iso
-rw-r--r-- 1 oracle oinstall  7129 Jan 13 22:16 V100085-01.iso
-rw-r--r-- 1 oracle oinstall 16314 Jan 13 22:16 wgetlog-01-13-17-22:16.log
-rw-r--r-- 1 oracle oinstall  7143 Jan 13 22:16 V100086-01.iso

this is the partial check sum.

V100082-01.iso
Oracle Linux Release 7 Update 2 for x86_64 (64 Bit)	4.2 GB
MD5: 3B9D65D26576921372B1B35B03FD791D
SHA-1: 03E048F23D798C8E8E7935FAB76245C2F1341378
 	V100083-01.iso
Oracle Linux Release 7 Update 2 source DVD 1	3.3 GB
MD5: 9434F584F9313ACD3FA74A0DA314E3A7
SHA-1: 4A901643BFC9B63343A9382121A239D832D00A90


again how do we download through wget from edelivery.oracle.com

thanks a lot!
Re: Is there extra thing I need to do to download from edelivery's wget [message #659370 is a reply to message #659366] Fri, 13 January 2017 10:36 Go to previous message
EdStevens
Messages: 863
Registered: September 2013
Senior Member
What's the problem? Looks to me like you got your files. They aren't supposed to be unzipped. They are .iso files, not zip files.

What is an iso file?
Previous Topic: Looking for a Oracle feature that will fail when client is lower version than database
Next Topic: Books
Goto Forum:
  


Current Time: Fri Dec 15 21:31:45 CST 2017

Total time taken to generate the page: 0.04044 seconds