Solution for error "ToolError: command result time out." occurs regularly for CLIDK operations

If "ToolError: command result time out." occurs regularly while networks and devices are running properly, the cause and solution are as follows:
Cause:
When CLIDK establishes a connection, it saves the password input by a user and executes AES encryption for the password using java.security.SecureRandom. By default, the /dev/random file is used to generate the security random numbers on Linux. The random numbers are of limited quota and require time to generate once used up.
Solution:
Find the JRE security setting file (in Windows, generally stored in %JAVA_HOME%/lib/security/java.security; in Linux, generally stored in $JAVA_HOME/lib/security/java.security). Then change the value of securerandom.source=file:/dev/urandom to securerandom.source=file:/dev/./urandom.

Scroll to top