- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SCP weird behavior
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
Forums
Discussions
Discussions
Discussions
Forums
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
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
тАО07-29-2009 12:25 PM
тАО07-29-2009 12:25 PM
When I view the files on the HP box the formatting looks perfect, I run the SCP command I lose a field of data in a straight copy.. I thought maybe it was DOS2UNIX issue but it doesn't appear to be.. It is in consistent. Perhaps an SQL issue? But the flat file appears to be in perfect order..
Any ideas of things to look at would be appreciated..
The file is generating correctly on HP,
ReferenceCode, FirstName, LastName, Gender, Group, HomePhone, EmailAddress, Institution
4040,JOHN F,JONES,M,ADMINS & SUPTS,555-555-1212,jjones@domain.tld,352,
4370,LEAH C,SMITH,F,ADMINS & SUPTS,555-555-1234,LSMITH@DOMAIN.TLD,57,
After transfer to Local Server or workstation.
ReferenceCode, FirstName, LastName, Gender, Group, HomePhone, EmailAddress, Institution
,352,JOHN F,JONES,M,ADMINS & SUPTS,555-555-1212,jjones@domain.tld
4370,LEAH C,SMITH,F,ADMINS & SUPTS,555-555-1234,LSMITH@DOMAIN.TLD,57,
Solved! Go to Solution.
- Tags:
- scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 12:29 PM
тАО07-29-2009 12:29 PM
Re: SCP weird behavior
The Forum will mangle whitespace; please post an _attachment_ (file) with the text to compare.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 12:32 PM
тАО07-29-2009 12:32 PM
Re: SCP weird behavior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 12:45 PM
тАО07-29-2009 12:45 PM
Re: SCP weird behavior
I may have to have our DBA look at the SQL unload files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 12:52 PM
тАО07-29-2009 12:52 PM
Re: SCP weird behavior
the first data field is deleted, and is replaced by the contents of the "next to last field" (,352)????
where is the "bad" example taken from Linux, Windows or ???
what steps were taken, or was this just a straight-forward scp of the dumped data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 12:56 PM
тАО07-29-2009 12:56 PM
Re: SCP weird behavior
On SYSTEM A (HP) I am doing an UNLOAD from an Informix table..
On SYSTEM B I initiate an SCP in BATCH mode of the unloaded FILES..
the 1st section is correct, when I initiate a simple
scp -B username@systemA:/unloadfiles.csv .
the file on SYSTEMB has lost the "4040" for record of JOHN JONES.. this goes on through out the file.. Some have it and others don't..
I've been scratching my head all afternoon, the files appear letter perfect before the SCP..
I've seen this kind of stuff with FTP and not toggling ASCII/BIN.. but not with SSH/SCP/SFTP..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 12:57 PM
тАО07-29-2009 12:57 PM
Re: SCP weird behavior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 01:02 PM
тАО07-29-2009 01:02 PM
Re: SCP weird behavior
I am attaching command sequence.
Step #1 produces a file.. File copies Correctly from HP to Linux
Step #2 produces 3 files, appear correct on HP, copies to Linux loses data
Step #3 is the actual Linux SCP command..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 01:05 PM
тАО07-29-2009 01:05 PM
SolutionPerhaps there are some invisible control characters within the data. In that case, it might be that the HP-UX viewer ignores the control characters, while the viewer on the other system obeys them.
In this case, a copy/paste from the terminal window won't allow us to see what's wrong, because at that point the damage is already done.
Use "cat -v filename" to display the file with visible symbols in place of invisible characters. Do that on both HP-UX server and the other box. Compare the results.
My first guess would be that there might be something at the end of the "jjones@domain.tld" field that causes the terminal cursor to return to the beginning of the line. Then the field separators and the Institution number overwrite the beginning of the first line.
If you still suspect the file gets corrupted in transfer, run "cksum filename" both before and after the transfer. If the checksums are the same, there is high probability that the content of the file has not changed.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 01:07 PM
тАО07-29-2009 01:07 PM
Re: SCP weird behavior
I think I found an issue.. it is putting a ^M after the email and before the "Institution" Not sure why.
Thanks for pointing out more might not show me the character issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 01:18 PM
тАО07-29-2009 01:18 PM
Re: SCP weird behavior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 01:34 PM
тАО07-29-2009 01:34 PM