9.2.5.1 ahfctl upload

Use the ahfctl upload command to configure upload parameters.

You can run the upload command as root or a non-root user.

Syntax

ahfctl upload 
[-h] 
[-debug] 
[-name NAME] 
[-id ID] 
[-file FILE]
[-header HEADER] 
[-tls TLS] 
[-ciphers CIPHERS]
[-insecure <True/False>]

Parameters

Table 9-18 ahfctl upload Command Parameters

Parameter Description

debug

Specify the name of the debug script file.

name

Specify the name of your configuration. For example, sftpconf to upload a file using SFTP.

id

Specify the identifier number, for example, SR number.

file

Specify the name of the file to upload, for example, /tmp/generated.zip.

header

Stores the executionId in the ahf.properties file.

For example, to set the header:ahfctl setupload -name a1 -type https -header X-TFA-HEADERS:executionId=aeldb1db01_2020.06.16_19.20.55.15336025

tls

Specify the version of TLS for curl OSS upload.

ciphers

Specify ciphers for curl OSS upload.

insecure

Enables or disables security.

Example 9-28 Upload to MOS using ahfctl upload:

ahfctl upload -name mos -id 3-23104325631 -file
/opt/oracle.ahf/data/repository/auto_srdc_ORA-00600_20200706T18:58:09_myserver
1.zip

Example 9-29 Upload to MOS using ahfctl diagcollect:

ahfctl diagcollect -upload mos -srdc ORA-00600 -id 3-23104325631

or

ahfctl diagcollect -srdc ORA-00600 -sr 3-23104325631

Ensure that the MOS configuration name is "mos". For more information, see ahfctl setupload.