Search Posts

Retrieving and Clearing Data Sharing Files

Print Friendly, PDF & Email

The steps below explain how you can copy the files you have selected to a disk in order to import them to the third party software of your choice (You can use any software that accepts “comma-delimited” files).

We have created a utility that will automatically clear data sharing files that are greater than 14 days old. This will prevent files from building up on your system and wasting important processing space. However, depending on how you use the Data Sharing functionality, you may need to clear your files earlier than every 14 days. Therefore, the instructions below also explain how to manually clear files from your system.

  1. From the LubeSoft Main Menu, press [F1] and note the Authenticated Products on your system.
  2. From the desktop, press [Ctrl]+[Alt]+t to open a terminal window and receive the [username@localhost] $ prompt.
  3. Do one of the following:
    • If your system has ois, at the $ prompt, type the following command:

cd /opt/isi/lubesoft/oil (make sure you type one space between the cd and the /) and press [Enter].

Note: For reference purposes, all of the commands used to maintain and retrieve data are explained in detail in the Glossary of Linux Command Terms for Maintaining and Clearing .shr Files article.
    • If your system does not have ois, at the $ prompt, type the following command:

cd /opt/isi/lubesoft/oil/xxxxxx (where xxxxxx is the destination name. Also make sure you type one space between the cd and the /) Press [Enter].

  1. To make sure the current working directory is correct, type pwd and press [Enter]. Do one of the following:
    • If your system has ois, the following should be displayed:

$pwd

/opt/isi/lubesoft/oil

$

    • If your system does not have ois. site, the following should be displayed:

$pwd

/opt/isi/lubesoft/oil/xxxxxx (see step above for xxxxxx definition)

$

  1. To list the .shr files, type the following command:

ls *.shr¦less (make sure to leave one space between ls and *) (The character between .shr and less is called a pipe and can usually be found near the backspace key on your keyboard.)

You see files that look like the following:

00001fe3.shr

00001ge3.shr

00001he3.shr

Note: Refer to the File Naming Conventions article for a detailed description of what the characters in these file names represent.

Refer to the table below for the different options for moving files. Use these options to transfer files from LubeSoft to your report building software.

To Do
Place a Linux file on a DOS formatted disk.

Note: Use this command if you will be importing your data sharing files into a DOS based program. Also make sure that you have placed a Y in the DOS/Windows Format field on the Set Up Data Sharing screen.
Put a blank, DOS formatted disk (that has not been write-protected) into the disk drive and type the following command:

mcopy 00001fc3.shr a:00001fc3.shr

00001fc3.shr is just an example of a filename.

Make sure you type one space between mcopy and the filename and one between the filename and a:.

Place a Linux file on a Linux formatted disk.

Note: Use this command if you will be importing your data sharing files into a Linux based program.
Put a blank, Linux formatted disk that has been write protected into the disk drive and type the following command:

tar cvf /dev/fd0 00001fc3.shr

00001fc3.shr is just an example of a filename.

dev/fd0 is just an example of a device name.

Make sure you type one space between tar and cvf, cvf and /dev and one between the device name and the file name.

Place additional Linux files onto a Linux formatted disk.

Note: Use this command if you will be importing your data sharing files into a UNIX based program.
With the same Linux formatted disk in the disk drive, type the following command:

tar rvf /dev/fd0 00001fc3.shr

00001fc3.shr is just an example of a filename.

dev/fd0 is just an example of a device name.

Make sure you type one space between tar and rvf, rvf and /dev and one between the dev name and the file name.

Remove a file from the directory. Type the following command:

rm -i 00001hc3.shr

00001hc3.shr is just an example of a filename.

Make sure you type one space between rm and -i and one between -i and the filename.

Note: Read the documentation included with your third party software to determine how you can use this information to create customized reports.