Operating System - HP-UX
1821541 Members
2113 Online
109633 Solutions
New Discussion юеВ

?? command to tftp from Cisco routers to HP/UX 10.20

 
SOLVED
Go to solution
John Jimenez_2
Occasional Advisor

?? command to tftp from Cisco routers to HP/UX 10.20

I was hoping someone has tried this and knows the commands?
I just recently enabled and set up TFTP on my K570 box.
My goal is to back up my multiple cisco router configs via tftp.
When I try it from the HP as follows:
tftp 10.xxx.xxx.xxx
tftp> status
Connected to 10.xxx.xxx.xxx.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds

My status shows that I am connected, (but I just recently found out that I get the same message if this device is turned off or on. How do I know if it is actually making a connection?)
but when I type either of the following:
get config
get running-config
get start-config
I get the following message:
Transfer timed out.

Does any one know if the hp sees the files as binary not ascii? if so, what is it expecting?

I tried to tftp the other way;
I telneted into the routers and tried to do the following:
#copy run tftp
Remote host []? 10.xxx.xxx.xxx
Name of....write [tftp_test-confg?
Write file tftp_test-confg on host 10.xxx.xxx.xxx [confirm]
building configuration...

Writing ftfp_test-confg
TFTP: error code 2 received - Access violation
[Failed]

But I get this Failed error.

I am successful setting up a tftp server on NT but would rather utilize the HP for this. Has anyone out there been sucessful? or have any Ideas?
....John
Do not worry about where you are at in your life right now, as long as you moved a little in the right direction from yesterday to today, and am moving in the right direction today for tomorrow.
10 REPLIES 10
Steve Labar
Valued Contributor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

I was able to copy cisco devices files from the cisco device to the HP system by using the copy running-config tftp command. I was able to copy the flash similarly using copy flash tftp. I was able to confirm the new files existed in the HP . I have also tested by booting from the same tftp server and copying the tftp copy into running-config.
On my J-class box, I enabled tftp in /etc/services and /etc/inetd.conf and created a tftp user in /etc/passwd.

Good Luck.

Steve
Sridhar Bhaskarla
Honored Contributor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

Hi John,

You are correct that tftp doesn't really show if is successfully connected to the host. This may be because of the udp thing.

Transer timed out means the HP is not able to talk to the Cisco through tftp. You may have to check the access permissions on the cisco router to accept requests from the HP system.

From cisco, you are getting access violations from HP for putting the files. Check the permissions on the tftp's home directory on the HP system and see if tftp account has been setup.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Jimenez_2
Occasional Advisor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

Steve,
This is how I backed it up to NT 2000 and NT4.0. When I did this there was no security setting on the Cisco side that I needed to set up. Did you have to set up anything to connect to the HP? If not something is wrong with the way I set up TFTP. I already changed the permission to /home/tftp to 777.

Sri,
Thank you for verifying that I cannot verify connectivity, and that the timeout means I have an access problem. I will double-check my instructions on how to set up tftp. If you have a link to a ???how to set up tftp???, can you give it to me? It may be more detailed and better the instructions I have???.

Thanks you guys, I will continue to try and get this working???.

John
Do not worry about where you are at in your life right now, as long as you moved a little in the right direction from yesterday to today, and am moving in the right direction today for tomorrow.
Sridhar Bhaskarla
Honored Contributor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

Hi John,

Look for DocID: A4832049 in the technical knowledge base.


-Sri

You may be disappointed if you fail, but you are doomed if you don't try
S.K. Chan
Honored Contributor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

I used to have the notes for it. Please see attached. Hope it helps.
Sanjay_6
Honored Contributor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

Hi john,

Try this link,

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=16514bde02ca310bc4/screen=ckiDisplayDocument?docId=200000024598402

This link says,

Quote //

'Error code 2: Access violation'
'Error code 1: File not found'

This error indicates a problem with permissions of a file or directory.

Verify that the file on the server exists in tftps' home directory. Check that the file is in one of the paths listed on the line for tftp in /etc/inetd.conf. Verify that the file has tftp as the owner, users as the group, and tftp has read and write permissions.

//Endquote.

Hope this helps.

Regds


Ron Kinner
Honored Contributor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

Cisco is not going to let you pull the configs with TFTP. That would be a security violation.

I remember reading that sometimes the TFTP transfers to Unix systems will fail if the file does not already exist. Try touching the file first and then verify that it has rw rw rw permissions.

I know there are several Perl scripts out there which will log into a router and pull the config. Just use www.google.com to search the comp.dcom.sys.cisco group for config perl script.

Attached is a simple Expect script which I found on the cisco newsgroup.

Ron
John Jimenez_2
Occasional Advisor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

Thanks for everyones input. Ron you are right. In fact there seems to be a security issue either way. If I do the command from the Cisco, HP has a security issue. If I do it from the HP side the Cisco blocks it. I tried the command from the NT I set up as a TFTP server and I got a violation. I tried a "get" command from the HP to the NT and it went fine (so I know the HP is set up correctly). Ron I read you script, but it was a little over my head and I could not see how to modify it to work in my situation. I will check out the other scripts to see if that can get me up to speed. Thanks again for the help I will let you guys know if I find a script that works....
Do not worry about where you are at in your life right now, as long as you moved a little in the right direction from yesterday to today, and am moving in the right direction today for tomorrow.
Ron Kinner
Honored Contributor
Solution

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

If you have a windows box lying around somewhere you can get Kiwi Cat-tools to pull your configs. It's a freebie.

http://www.kiwisyslog.com/index.htm

I use it and their syslog product.

Ron
John Jimenez_2
Occasional Advisor

Re: ?? command to tftp from Cisco routers to HP/UX 10.20

Ron,
You were write about another thing. I was able to tftp a new file from NT to the HP, but for some reason the file needed to exist on the HP for me to send it from the Cisco to the HP.... I am still checking out the scripts, because of efficiency but this workable. I can now start testing a way to restore the configs from the hp to cisco routers :)
Do not worry about where you are at in your life right now, as long as you moved a little in the right direction from yesterday to today, and am moving in the right direction today for tomorrow.