05-06-2024 04:04 AM
Hi Team
Need help with files uploaded to cisco ise repository. All settings related to FTP and file permission done but yet couldn't access files in the repository. See below error message:
XP-ISE-02/admin(config)# repository ftp-repo
XP-ISE-02/admin(config-Repository)# url ftp://172.22.51.12
XP-ISE-02/admin(config-Repository)# user ftpuser password plain P@ssw0rd
XP-ISE-02/admin(config-Repository)# exit
XP-ISE-02/admin(config)# exit
XP-ISE-02/admin# debug transfer 7
XP-ISE-02/admin# sh repository ftp-repo
6 [890]:[info] transfer: cars_xfer.c[220] [admin]: ftp dir of repository ftp-repo requested
7 [890]:[debug] transfer: cars_xfer_util.c[2056] [admin]: ftp get dir for repos ftp-repo
7 [890]:[debug] transfer: cars_xfer_util.c[2068] [admin]: initializing curl
7 [890]:[debug] transfer: cars_xfer_util.c[2079] [admin]: full url is ftp://172.22.51.12/
7 [890]:[debug] transfer: cars_xfer_util.c[1967] [admin]: initializing curl
7 [890]:[debug] transfer: cars_xfer_util.c[1980] [admin]: full url is ftp://172.22.51.12/ftp
7 [890]:[debug] transfer: cars_xfer_util.c[2001] [admin]: res: 19
7 [890]:[debug] transfer: cars_xfer.c[268] [admin]: freed file list
ftp
05-06-2024 06:19 AM
Did you attempt to upload/download from the CLI or UI? What copy command did you use?
05-06-2024 08:38 AM
05-06-2024 04:44 PM
What FTP server software are you using?
Can you ping the FTP server from the ISE CLI? (if ICMP is allowed)
Run a tcpdump on the ISE node and then try the show repo command. Does the tcpdump show that you are getting a TCP ACK from the FTP server?
If the TCP stream looks ok, then it must be some compatibility setting in the FTP server - try setting the FTP server to "unix" mode or suchlike. Have you confirmed that you can browse the FTP URL with other apps like WinSCP?
05-07-2024 07:57 AM
05-07-2024 08:03 AM
Sorry i missed this:
What FTP server software are you using? I am using Linux machine as my ftpServer
05-07-2024 10:34 AM
Could the path be wrong? Could you try to set the repo to "ftp://172.22.51.12:/" instead of "ftp://172.22.51.12:/ftp"?
05-08-2024 03:06 AM
05-06-2024 07:35 PM - edited 05-06-2024 07:36 PM
lot of good advice, if it still dosen't work, depending on version, you also have "localdisk management" option from where you can upload and download files to ISE
05-07-2024 09:11 AM
Could there be a firewall in between, blocking the ephemeral ports?
05-07-2024 10:00 AM
05-07-2024 02:20 PM
In your original post, your URL was
ftp://172.22.51.12
Depending on how the Linux FTP server handles the user login, it might not be setting the absolute path of the directory in question.
Let's say the user account has /home/ftpuser assigned to it in /etc/passwd
If you login using another client that works, where does the user land? In a chroot situation (e.g in root / ) or in their absolute directory of /home/ftpuser, or even somewhere else, hard coded by the FTP server config (e.g. /home/ftp/ise) ?
I have found that I have had to configure absolute path into the ISE repo URL statement - without some path suffix, you are reliant on the FTP server to place the user in the correct directory.
Try this URL in your ISE configuration (no trailing /
ftp://172.22.51.12/home/ftpuser
05-08-2024 02:39 AM
Hello arne
See my config on the linux server for ftp setup
[root@redhattemplate ftpuser]# cd ftp
[root@redhattemplate ftp]# ls
ise-patchbundle-2.7.0.356-Patch10-23082414.SPA.x86_64.tar.gz
[root@redhattemplate ftp]# pwd
/home/ftpuser/ftp
[root@redhattemplate ftp]#
[root@redhattemplate ftp]# mkdir /ftp
[root@redhattemplate ftp]# cp ise-patchbundle-2.7.0.356-Patch10-23082414.SPA.x86_64.tar.gz /ftp
[root@redhattemplate ftp]# chown ftpuser:ftpuser /ftp
[root@redhattemplate ftp]# chmod 755 /ftp
[root@redhattemplate ftp]# cd /ftp
[root@redhattemplate ftp]# ls
ise-patchbundle-2.7.0.356-Patch10-23082414.SPA.x86_64.tar.gz
[root@redhattemplate ftp]#
I have change path as advised but see error message.
P-ISE-02/admin# sh repository ftp_ise
6 [37892]:[info] transfer: cars_xfer.c[220] [admin]: ftp dir of repository ftp_ise requested
7 [37892]:[debug] transfer: cars_xfer_util.c[2056] [admin]: ftp get dir for repos ftp_ise
7 [37892]:[debug] transfer: cars_xfer_util.c[2068] [admin]: initializing curl
7 [37892]:[debug] transfer: cars_xfer_util.c[2079] [admin]: full url is ftp://172.22.51.12/home/ftpuser/
% Error: Repository ftp_ise could not be accessed. In case Backup was Restored on different setup, Please reconfigure the repository passwords (expected behaviour).
3 [37892]:[error] transfer: cars_xfer_util.c[2096] [admin]: curl error: Access denied to remote resource
% Error reading directory on remote server
Will be glad to use other option to carry out this task, pls share a resource if there is any since ftp seems not doable in my enviroment.notr i have tried, sftp winscp still no success.
05-08-2024 01:56 PM
It's helpful to see your ISE CLI configuration (show run) together with any attempts of the show repo command. In your previous reply you added the ftp directory to /home/ftpuser - have you tried modifying the ISE URL from /home/ftpuser to /home/ftpuser/ftp ?
In the reply above, it looks like you can browse the root directory. Keep modifying the ISE URL until you hit the ftp directory containing your files.
Alternatively, you can patch an ISE node via the Admin GUI (Maintenance menu) - but that will patch ALL the nodes - no way to stop the process once it has started. Also, @ammahend mentioned that you can upload a file to the local node's disk:/ repository via the admin GUI, but only in newer versions of ISE 3.x (you seem to be running ISE 2.7)
05-09-2024 09:43 AM
See error message after following your advise, issue persist
P-ISE-02/admin# 6 [8882]:[info] transfer: cars_xfer.c[220] [system]: ftp dir of repository ftp_ise requ ested
7 [8882]:[debug] transfer: cars_xfer_util.c[2056] [system]: ftp get dir for repos ftp_ise
7 [8882]:[debug] transfer: cars_xfer_util.c[2068] [system]: initializing curl
7 [8882]:[debug] transfer: cars_xfer_util.c[2079] [system]: full url is ftp://172.22.51.12/home/ftpuser/ ftp/
3 [8882]:[error] transfer: cars_xfer_util.c[2096] [system]: curl error: Access denied to remote resource
6 [8882]:[info] transfer: cars_xfer.c[220] [system]: ftp dir of repository ftp_ise requested
7 [8882]:[debug] transfer: cars_xfer_util.c[2056] [system]: ftp get dir for repos ftp_ise
7 [8882]:[debug] transfer: cars_xfer_util.c[2068] [system]: initializing curl
7 [8882]:[debug] transfer: cars_xfer_util.c[2079] [system]: full url is ftp://172.22.51.12/home/ftp/
3 [8882]:[error] transfer: cars_xfer_util.c[2096] [system]: curl error: Access denied to remote resource
6 [8882]:[info] transfer: cars_xfer.c[220] [system]: ftp dir of repository ftp_ise requested
7 [8882]:[debug] transfer: cars_xfer_util.c[2056] [system]: ftp get dir for repos ftp_ise
7 [8882]:[debug] transfer: cars_xfer_util.c[2068] [system]: initializing curl
7 [8882]:[debug] transfer: cars_xfer_util.c[2079] [system]: full url is ftp://172.22.51.12/ftp/
7 [8882]:[debug] transfer: cars_xfer_util.c[1967] [system]: initializing curl
7 [8882]:[debug] transfer: cars_xfer_util.c[1980] [system]: full url is ftp://172.22.51.12/ftp/ise-patch bundle-2.4.0.357-Patch14-21041509.SPA.x86_64 (1).tar.gz
7 [8882]:[debug] transfer: cars_xfer_util.c[2001] [system]: res: 0
7 [8882]:[debug] transfer: cars_xfer_util.c[2005] [system]: res: 0-----filetime ise-patchbundle-2.4.0.35 7-Patch14-21041509.SPA.x86_64 (1).tar.gz: Fri Jul 1 18:42:25 2022
7 [8882]:[debug] transfer: cars_xfer_util.c[2011] [system]: filetime ise-patchbundle-2.4.0.357-Patch14-2 1041509.SPA.x86_64 (1).tar.gz: Fri Jul 1 18:42:25 2022
7 [8882]:[debug] transfer: cars_xfer_util.c[2015] [system]: filesize ise-patchbundle-2.4.0.357-Patch14-2 1041509.SPA.x86_64 (1).tar.gz: 4351901735 bytes
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide