Hello,
I have a problem. :
C:\import_export_objects>export_hosts.py -m 192.168.20.90 -o hosts.csv
Trying to get login credentials...
Trying to login via `mgmt_cli login -r true`.
Trying to get username and password.
Enter username: admin
Enter password:
Got the following login credentials:
Username: admin
Password: *********
Session ID: None
50/33159 objects retrieved.
100/33159 objects retrieved.
150/33159 objects retrieved.
200/33159 objects retrieved.
...
4750/33159 objects retrieved.
4800/33159 objects retrieved.
4850/33159 objects retrieved.
Traceback (most recent call last):
File "C:\import_export_objects\export_hosts.py", line 15, in <module>
get_objects("hosts", fields)
File "C:\import_export_objects\get_objects.py", line 130, in get_objects
data = get_data(client, showparameter=showparameter if showparameter else args.showparameter[0], dependency_solver_args=dependency_solver_args)["objects"]
File "C:\import_export_objects\get_objects.py", line 104, in get_data
data = get_raw_data(param=showparameter, client=client)
File "C:\import_export_objects\get_objects.py", line 157, in get_raw_data
for current_res in results:
File "C:\import_export_objects\mgmt_api_lib\cp_mgmt_api.py", line 232, in gen_api_query
raise APIException(api_res.error_message)
mgmt_api_lib.api_exceptions.APIException: APIResponse received a response which is not valid JSON.
C:\import_export_objects>
When 4850 obejcts were retrieved, API Daemon died.
I think this problem happens because of too many objects.
Do you have any solution to get all objects?
Please help me
Additionally, I applied this commands. :
export NGM_WEB_API_JRE_64=1
export NGM_WEB_API_MAX_MEMORY=2048