Rate This Document
Findability
Accuracy
Completeness
Readability

Uploading a Large File

If the file to be uploaded is greater than the upper limit or the file size after extraction is greater than half of the remaining drive space, you need to free up some drive space or manually upload the file to the server and use WebUI to perform subsequent operations. Or you can directly use the CLI mode (applicable only to source code porting and software porting assessment).

Uploading Files to the Server

  1. Obtain the file to be uploaded.
  2. Place the file to be uploaded in the feature directory under the path that contains the user name. The following example uses the administrator account devadmin.
    1. Use an SSH tool to remotely log in to the tool installation node as the DevKit installation user.
    2. Copy the source file to be scanned to the /opt/DevKit/workspace/devadmin/porting/sourcecode/ directory.

      If the feature directory does not exist, manually create it.

      1
      2
      3
      mkdir -p /opt/DevKit/workspace/devadmin/porting/sourcecode/
      chown -R username:username /opt/DevKit/workspace/devadmin/porting/
      chmod -R 700 /opt/DevKit/workspace/devadmin/porting/
      
      • /opt is the default installation directory. Replace it with the actual directory.
      • username indicates the DevKit installation user. Replace it with the actual user.
    3. Switch to the directory where the file is located.
      cd /opt/DevKit/workspace/devadmin/porting/sourcecode/
    4. Extract the file, for example, a tar.gz file. If the file does not need to be extracted, skip this step.
      tar -zxvf xxx.tar.gz
    5. Change the file owner, group, and permission (xxx indicates the extracted folder or the folder uploaded by the user).
      chown -R username:username xxx
      find xxx -type d -exec chmod 700 {} \;
      find xxx -type f -exec chmod 600 {} \;

      If you do not run the chown -R username:username xxx command, run the following chmod command:

      chmod -R o+rw xxx

CLI Mode

Before using the source code porting function in CLI mode, you need to install the Porting Advisor CLI tool. For details, see Installing the Tool.