- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unable to scp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016 12:12 AM
09-12-2016 12:12 AM
unable to scp
Hi
I am facinf difficulties copy files and folder from sever A running hp-ux 11.23 to server b also running 11.23, when trying to use "scp" command:
scp EnvironmentVariable.txt root@10.1.20.22:/backup01/mceldev/ sh: scp: not found.
but when running "whereis" command:
whereis scp scp: /usr/bin/scp
Please can you give a hint on what could be the problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016 06:44 AM
09-12-2016 06:44 AM
Re: unable to scp
The whereis command is only slightly useful. The command you need to use is:
type scp scp is /usr/bin/scp
The type command explains what the shell will do when you use the word scp.
If you get /usr/bin/scp, then check the file itself:
ll /usr/bin/scp and file /usr/bin/scp
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016 07:07 AM
09-12-2016 07:07 AM
Re: unable to scp
Hi
thanks for the reply, but:
type scp scp not found.
and , I had a crash a week ago after a "shutdown -ry 0" in which /opt, /var, disappear. That could explain right?
ll /usr/bin/scp lrwxr-xr-x 1 root sys 16 Apr 26 2006 /usr/bin/scp -> /opt/ssh/bin/scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016 07:26 AM
09-12-2016 07:26 AM
Re: unable to scp
.../opt, /var, disappear...
Yes, that explains the scp issue. However, since /opt and /var are critically important, this system probably has a lot more problems than scp. You may have a failed disk and you'll need to replace it and restore the system from your Ignite backup (if the disk is not mirrored).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016 07:31 AM
09-12-2016 07:31 AM
Re: unable to scp
a decison has been made to rebuild from scratch, because its an old test server, tape drive dat72 not working, so I was just trying to copy some data, I managed to do that with ftp, but unfortunately could not preserve time stamps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016 09:30 AM
09-12-2016 09:30 AM
Re: unable to scp
>I managed to do that with ftp, but unfortunately could not preserve time stamps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016 09:52 PM
09-12-2016 09:52 PM
Re: unable to scp
Hi
Thanks for the advise, I am now doing that