9.2.5.4 ahfctl setupload
Use the ahfctl setupload
command to set upload
parameters.
AHF 23.8
Starting in AHF 23.8, you will be able to upload AHF Insights report automatically if Object Store is configured as part of AHF. Uploading AHF Insights reports helps Oracle Cloud Operations to identify, investigate, track, and resolve system health issues and divergences in best practice configurations quickly and effectively.
Oracle Autonomous Database on Dedicated Exadata Infrastructure and Oracle SaaS
ahfctl setupload -name oss -type https -user <user> -url <object_store> -password
ahf analysis create --type insights
.You can run the setupload
command as root
or a non-root
user.
Syntax
ahfctl setupload
[-h][--help]
[-all]
[-type TYPE]
[-name NAME]
[-user USER]
[-password]
[-server SERVER]
[-url URL]
[-proxy PROXY]
[-noauth NOAUTH]
[-https_token HTTPS_TOKEN]
[-request REQUEST]
[-header HEADER]
[-secure SECURE]
[-connectstring CONNECTSTRING]
[-uploadtable UPLOADTABLE]
[-port PORTNUMBER]
Parameters
Table 9-21 ahfctl setupload Command Parameters
Parameter | Description |
---|---|
|
All of the parameters. |
|
Specify the type of an endpoint. For example, |
|
Specify a unique descriptive name to your configuration. For example, mosconfig to upload to My Oracle Support. |
|
Specify the user who has the privileges to access the endpoint. For example, upload.user@example.com. |
|
If this option is passed, AHF will prompt you to enter the password. You can also set the password using the environment variable AHF_SERVICE_PASSWORD. For example: |
|
Specify the name of the server to which you want to upload files. For example, bugsftp.example.com. |
|
Specify the target URL to upload files in case of HTTPS type. For example, https://samplehost.com. |
|
Specify the URL of the proxy server. For example, www.example.com:80. |
|
Specify If For example, upload files to PAR, Pre Authenticated URL where no user/password authentication is required. |
|
Specify the request type, for example, |
|
Specify any static header values while configuring. For example, set auth tokens while configuring the HTTPS end point. For example, You can also pass dynamic headers at upload time by passing the
For example: |
|
Stores the For example, to set the header: |
|
Specify Specifying the secure value checks for certificates. If |
|
Specify the database connect string to log in to the database where you want to upload files. For example, |
|
Specify the name of the table where
you want to upload files as For example, for uploading Oracle Orachk collections to the Collection Manager, it is set to |
|
Specify a custom port number. If you do not specify a port, then 443 is used by default. You can set a port number in the range of 0 - 65353. |
ahfctl setupload -name mos -type https -user sample_user@domain.com -url https://transport.oracle.com/upload/issue
ahfctl setupload -name mos -type https -proxy www-proxy.server.com:80
ahfctl setupload -name my_upload -type https -url 'https://samplehost.com' -https_token "abc:13" -header Content Type:application/json -port 4545
tfactl
upload
:tfactl upload -name mos -id 3-23104325631 -file /opt/oracle.ahf/data/repository/auto_srdc_ORA-00600_20200706T18:58:09_myserver1.zip
tfactl
diagcollect
:tfactl diagcollect -upload mos -srdc ORA-00600 -id 3-23104325631
ortfactl diagcollect -srdc ORA-00600 -sr 3-23104325631
Note:
Ensure that the configuration name is mos
.
Parent topic: Running AHFCTL Upload Commands to Upload Diagnostics