Solved

Correct Commands to FTP from Sunsolve

Posted on 2010-11-09
10
672 Views
Last Modified: 2013-12-27
Hi Experts. I tried this below to download a patch for Solaris server but received an invalid message:

FTP patches:
%ftp -i sunsolve.sun.com
      login as an anonymous user
ftp>cd pub/patches
ftp>mget patch_number.*
ftp>quit
Can someone give the correct commands? Thanks!
0
Comment
Question by:Rhiaanon44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 20

Expert Comment

by:n2fc
ID: 34099096
1) Are you sure you have the right server and path names?
Is your sample accurate?  I did not find the directory "pub/patches" at sunsolve.sun.com, but perhaps that was not the actual machine you logged on to...
2) -i indicates no interactive prompts... You might consider omitting that option...
3) If you are downloading binary files (not text) you should enter the "binary" command prior to the "mget" command to insure a binary file transfer
0
 

Author Comment

by:Rhiaanon44
ID: 34099111
I believe that is old information I located. Can you tell how to (the steps) to download a patch directly to the server with ftp? I have never done this before. So I am at the ftp prompt in the sun server...what other commands do I need to use to downwload the patch to the server. Thanks!
0
 

Author Comment

by:Rhiaanon44
ID: 34099117
I am trying to download the zip file.
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 20

Accepted Solution

by:
n2fc earned 167 total points
ID: 34099141
Once logged on, you will need to do a "cd" command on sun's machine to the directory where the patch is stored...
You can do an "lcd" command to change YOUR machine to a directory where you can store the patch...
You will need to do a "binary" (can be abbreviated "bi") to do a binary transfer (not a text file)...
You can then do a "get" command specifying the exact filename to download... "mget" can use wild cards (*)...
Other commands of interest:
ls -al      directory list on remote machine
pwd      show current path on remote machine
 
Make sure you are logged onto the correct machine where your patch is stored and you must know the correct directory it is in!
0
 
LVL 16

Assisted Solution

by:Joseph Gan
Joseph Gan earned 166 total points
ID: 34099143
First of all you need a sunsolve account to download patches.
In ftp> prom, you can use help to find out all commands you can use, ie. pwd, ls, get and mget etc.
If those commands did not give any information, you might not login correctly.

0
 
LVL 40

Expert Comment

by:omarfarid
ID: 34099229
What are you trying to do exactly? the ftp site show below message:

C:\>ftp sunsolve.sun.com
Connected to sunsolve.sun.com.
220-ATTENTION:
220-
220-This SITE IS END OF LIFE
220-
220-As of August 1st 2008, this site is no longer available to upload or downloa
d
220-files.
220-Please use supportuploads.sun.com or supportfiles.sun.com
220-to upload or download files to and from Sun Services Engineers.
0
 

Author Comment

by:Rhiaanon44
ID: 34099245
Download a kernel patch. Is there another way? I have downloaded the patch to Windows XP. Anyway to move it from there? I tried FTP but the Sun box closed the connection.
0
 
LVL 2

Assisted Solution

by:madan1278
madan1278 earned 167 total points
ID: 34099329
Use sunsolve account to download the relevant patch using your internet browser and transfer the patch to the unix box.
You need to enable ftp on your machine before you transfer the patch to the unix box.
If the below 2 services are not enabled already please enable them.

svcadm enable inetd
svcadm enable ftp
Remove the account that you will use for ftp from /etc/ftpd/ftpusers  
Try now.
0
 
LVL 2

Expert Comment

by:madan1278
ID: 34099351
The most preferred option on unix platform would be scp or sftp but I am not sure if your XP maching has relevant client software to initate the connection.
0
 

Author Closing Comment

by:Rhiaanon44
ID: 34099368
Thanks Experts!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question