How to use the Linux split command to split large files on an RSA NetWitness appliance for upload to a Support case
Issue
How to use the Linux split command to split large files on an RSA NetWitness appliance for upload to a Support case.
Resolution
You can use the Linux split command to split this large file into multiple smaller files in the same directory so you can upload these smaller files to your case directly:
split --bytes=25m large_file large_file_
The command shown above will split a large file named large_file into multiple files 25mb or smaller files named large_file_aa, large_file_ab, large_file_ac ...in the same directory as large_file. You can then upload these smaller large_file_a* files into your support cases directly.
Please use the following command to remove these temp files after you uploaded them to your case.
rm -rf large_file_a*
Notes
Example:
You run the technical support script on a decoder and create a tech dump file named nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2 which is 40mb in size.
The following split command will split this file into two 25mb or smaller files named nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2_aa and nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2_ab in the same directory:
split --bytes=25m nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2 nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2_
The following split command will split this file into eight 5mb files named: nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2_a[a,b,c,d,e,f,g] in the same directory:
split --bytes=5m nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2 nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2_
You can now upload these smaller component files nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2_* directly into your support case.
Please use the following command to remove these temp files after you uploaded them to your case.
rm -rf nwtech-D-Decoder-2012.07.12-09.52.46.tar.bz2_a*
Internal Comments
UserName:hawkir10/2/2012 2:58:52 PM - How to use Linux split command to split large files for upload
Solution 636
UserName:shurtj
8/12/2014 8:11:14 PM - Updated Article
Updated article and made changes to abide by Primus best practices.
Product Details
RSA Product Set: NetWitness Logs & PacketsRSA Version/Condition: 10.x, 11.x
Platform: CentOS
O/S Version: EL6, EL7
Approval Reviewer Queue
RSA NetWitness Suite Approval Queue