I figured put-file may show where the export is going, but it did not...thats all : )
Sure, here is what I get when I run the other script:
[Expert@tarion-mgmt:0]# ./cli_api_export_objects_to_csv.sh
./cli_api_export_objects_to_csv.sh
Script: cli_api_export_objects_to_csv Script Version: 00.50.00 Revision: 055
-------------------------------------------------------------------------------------------------
Check API Operational Status before starting
-------------------------------------------------------------------------------------------------
First make sure we do not have any issues:
product-version: "Check Point Gaia R80.40"
os-build: "294"
os-kernel-version: "3.10.0-957.21.3cpx86_64"
os-edition: "64-bit"
API is operating as expected so api status should work as expected!
Next check api status:
API Settings:
---------------------
Accessibility: Require ip 127.0.0.1
Automatic Start: Enabled
Processes:
Name State PID More Information
-------------------------------------------------
API Started 5340
CPM Started 9868 Check Point Security Management Server is running and ready
FWM Started 8909
APACHE Started 8508
Port Details:
-------------------
JETTY Internal Port: 50276
APACHE Gaia Port: 443
Profile:
------------
Machine profile: Medium env resources profile
CPM heap size: 1024m
API heap size: 256m
--------------------------------------------
Overall API Status: Started
--------------------------------------------
API readiness test SUCCESSFUL. The server is up and ready to receive connections
Notes:
------------
To collect troubleshooting data, please run 'api status -s <comment>'
API status check result ( 0 = OK ) : 0
API is operating as expected so API calls should work!
Current Log output in file /var/tmp/cli_api_export_objects_to_csv_v00x50x00_2020-12-10-164050EST.log
-------------------------------------------------------------------------------------------------
./common/identify_gaia_and_installation.action.common.006.v00.50.00.sh: line 402: [: -gt: unary operator expected
Gaia Version : $gaiaversion = R80.40
System is Security Management Server!
Security Management Server version R80.40
Final $gaiaversion = R80.40
NEW Kernel version 3.10.0-957.21.3cpx86_64
sys_type = SMS
System Type : SMS :true
System Type : MDS :false
System Type : SmartEvent :false
System Type : SmEv Correlation Unit :false
System Type : GATEWAY :false
System Type : STANDALONE :false
System Type : VSX :false
System Type : UEPM Endpoint Server :false
System Type : UEPM Policy Server :false
System Type : UEPM Installed :true
mkdir: created directory './dump'
Output and Log file, folder locations:
$APICLIpathbase : ./dump/2020-12-10-1640EST
$APICLIlogfilepath : ./dump/2020-12-10-1640EST/cli_api_export_objects_to_csv_v00x50x00_2020-12-10-164050EST.log
mgmt_cli Login!
Login to mgmt_cli as administrator and save to session file : id.20201210-164058EST.txt
Password:
mgmt_cli login error! EXITCODE = 1
{
"code" : "err_login_failed",
"message" : "Authentication to server failed."
}
Terminating script...
Exitcode 255
Log output in file ./dump/2020-12-10-1640EST/cli_api_export_objects_to_csv_v00x50x00_2020-12-10-164050EST.log