Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..
439 views

Timeout for shell.execCmd() on UDA Agent

Jump to solution

Hi,

I'm trying to run shell.execCmd('some_cmd_command', 600000) while running the custom shell job on UDA agent. The 600 millisecond works as a command on all shells but UDA. 

The script is failing after approximately 15 sec with following error:

 <ERROR class="com.hp.ucmdb.discovery.library.clients.ddmagent.AgentSessionException">
<message>[CDATA: java.net.SocketTimeoutException: Read timed out]</message> 

 

How to extend UDA command timeout?

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
1 Solution

Accepted Solutions
Highlighted
marsella Honored Contributor.
Honored Contributor.

Re: Timeout for shell.execCmd() on UDA Agent

Jump to solution
4 Replies
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: Timeout for shell.execCmd() on UDA Agent

Jump to solution

I found that as a workaround I could extend the default shell timeout by changing a value of "shellGlobalCommandTimeout" property of globalSettings.xml. 

Still, I'm wondering why timeout of shell.execCmd() is ignored on UDA. Is there any other method that I could use?

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
popadiyski Outstanding Contributor.
Outstanding Contributor.

Re: Timeout for shell.execCmd() on UDA Agent

Jump to solution

HI Dima, 

 

timeout setting is available on every credentials entry. Check what you have there and if needed you can raise it:

 

timeout.PNG

 

Regards,

Petko

Likes are appreciated!
0 Likes
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: Timeout for shell.execCmd() on UDA Agent

Jump to solution

Thanks for your reply.

I'm interested not in connection timeout, but in command timeout.

 

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
marsella Honored Contributor.
Honored Contributor.

Re: Timeout for shell.execCmd() on UDA Agent

Jump to solution
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.