UserGuide Linux64
UserGuide Linux64
1 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
Table of Contents
1 PURPOSE OF THIS DOCUMENT ......................................................................................................................................... 3
2 SYSTEM REQUIREMENTS.................................................................................................................................................. 3
3 STEPS TO DOWNLOAD THE LINUX EXECUTABLE FILE ........................................................................................................ 3
3.1 SHORT AND LONG VERSION COMMAND LINE ARGUMENTS ........................................................................................... 3
4 STEPS TO GENERATE THE AUTHENTICATION TOKEN ........................................................................................................ 4
5 UPLOAD A FILE USING LINUX EXECUTABLE ...................................................................................................................... 5
6 ERROR MESSAGES ............................................................................................................................................................ 7
7 TROUBLESHOOTING STEPS ............................................................................................................................................ 10
2 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
1 PURPOSE OF THIS DOCUMENT
This document covers steps that are required to upload a file using Linux executable and the steps
required to generate authentication token (that is required to run the script).
2 SYSTEM REQUIREMENTS
Current version of Linux executable supports Red Hat Linux 7.x.
For example --token is a mandatory argument, whereas --casenumber is an optional argument. For optional
arguments, upload will take default values as provided in the table below.
Below are the regions that are currently supported by the tool:
"North America (West)"
"North America (East)"
"Canada"
"Europe"
3 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
"Mumbai"
“Singapore”
“Bahrain”
“Hong Kong”
“Japan”
“Australia”
“São Paulo”
Here are the different debug options supported (default is “info”):
Debug option Example
DEBUG -d debug / --debug debug
INFO -d info (default) / --debug info
WARNING -d warning / --debug warning
ERROR -d error / --debug error
CRITICAL -d critical / --debug critical
4 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
5 UPLOAD A FILE USING LINUX EXECUTABLE
User can use Linux executable to upload the files from Linux (RHEL) machines.
To upload the file using Linux executable, change directory as below and execute the file with specific parameter
values in the netapp_upload_cli_input.txt
cd ‘netapp_auth_file_upload_linux_executable’
./nafu_auth_file_upload_2.2_Linux64
netapp_upload_cli_input.txt needs to be updated with all the required parameters as shown in the below
screenshot.
Where:
casenumber – An Active Technical Case Number.
upload – Full path to input file
bugcheck – To check for known bugs (applicable to core files)
token – Authentication Token (generated from NAFU Web Application)
log – File path to save logs generated during script execution
region – Nearest server name where you want to upload the file
debug – Logging level for log file
override – PMBTA password to proceed with upload after a bug is identified
noresume – To resume from a previous upload
batchsize – Batch size to upload files
apihelp – API help
5 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
User can use either short or long version arguments in netapp_upload_cli_input.txt from below table.
6 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
6 ERROR MESSAGES
Below are the CLI error messages and description of the error.
Given upload file does not exist! Provide complete file path for -u (or) --upload
Either your access token is expired or is associated
with an invalid user id.
Get the new token from
Access token is expired. https://upload.netapp.com/sg/getToken
7 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
Network proxy URL/host/IP is required. You can
Proxy url is missing! update p_config.py file under conf directory.
Unable to delete the chunk file! Unable to delete the temporary chunk file.
Below are the error messages returned from the API calls:
EIU010 Error occurred while validating access token. If we get any error while validating access
token.
EIU011 Invalid case number! Please enter a valid 10- If case number is invalid.
digit case number.
EIU012 Invalid PMBTA override password. If invalid PMBTA override password is
provided.
EIU013 Internal server error while executing PMBTA If any error while executing PMBTA
command. command.
EGP001 Upload ID is missing. If upload id is not specified.
EGP002 File type is missing. If file type is not specified.
EGP003 Mask file name is missing. If mask file name is not specified.
EGP004 Batch size is missing. If batch size is not specified.
EGP005 Part size is missing. If part size is not specified.
EGP006 Part numbers are missing. If part numbers are not specified.
EGP007 Part numbers are empty. If part numbers are empty.
EGP008 File name is missing. If file name is not specified.
EGP009 Invalid part numbers. If invalid part numbers specified.
EGP010 Invalid upload ID is found. If upload id is invalid.
EGP011 Access token is missing. If token is not specified.
EGP013 Access token is expired. If Access token is expired.
EGP014 Error occurred while validating access token. If any error while validating access token.
8 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
ECU004 File type is missing. If file type is not specified.
ECU005 Mask file name is missing. If masked file name is not specified.
ECU006 ETag list is missing. If ETag list is not specified.
ECU007 File merge is failed due to invalid Etags. If any error while completing upload.
ECU009 Access token is missing. If token is not specified.
ECU010 Access token is expired. If access token is expired.
ECU011 Error occurred while validating access token. If we get any error while validating token.
EFS001 Upload ID is missing. If upload id is not specified.
EFS002 Upload status operation is missing. If upload status operation is not specified.
EFS009 Error occurred while validating access token. If we get any error while validating token.
EFS010 Total parts number is missing. If total parts number are not specified.
EFS011 Access token is missing. If token is not specified.
EGS001 Access token is missing. If token is not specified.
EGS003 Access token is expired. If access token is expired.
EGS004 Error occurred while validating access token. If we get any error while validating access
token.
EGT001 Missing user token, please provide one. If user token is not specified.
EGT002 Error while fetching token. If database connection error.
EGT003 Error while saving token. If database connection error.
EGT004 Error while generating token. If any error occurs while generating token.
EGT005 Token is not matching the user id, please The token provided does not match the
generate a new token and re-upload. user profile.
EGT006 Token is not matching any of the active user The token provided is not associated with
id, please generate a new token and re- any active user profile.
upload.
ERT001 Error while updating new token. If any error occurs while updating new
token to database.
ERT002 Refresh token update failed. The user token The user token and the expired access
and the expired access token are mis- token are mis-matched for the provided
matched for the given user id. Please check user profile.
both the tokens and retry the command to
generate a new access token.
ERT003 Either user token or expired access token is Either the user token or the expired
missing, please provide both. access token is missing.
ERT004 Error while generating token. If any error while generating token.
9 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.
ERT005 Token is not matching any of the active user If provided token is invalid.
id, please generate a new token and re-
upload.
7 TROUBLESHOOTING STEPS
Note: For questions associated with NetApp Authenticated File Upload CLI Script, contact ng-nafu-cli-
[email protected]. Support for SDK is limited to API reference implementation. Questions will be addressed on
a ‘Best Effort’ basis.
i) If “MemoryError()” is encountered, ensure you have enough memory space on your system before running
again.
ii) In case you get ‘No such file or directory’ error, make sure that you are in the right directory and the correct
script file path.
iii) Please refer to README.txt or UserGuide.pdf for the list of valid arguments if any “Invalid arguments”
related errors are encountered.
iv) If the below error is encountered, try running the same script after 5 minutes.
“Unable to get a (API name) response from a server, retry after 5 minutes!”
v) To troubleshoot script execution with more details, please use -d (or) --debug parameter.
10 NAFU Linux Executable – User Guide © 2021 NetApp, Inc. All Rights Reserved.