Solved

Correct Commands to FTP from Sunsolve

Posted on 2010-11-09
10
668 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
  • 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
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.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…

820 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