article Custom script returns ERR

This condition is usually caused by improper agentcmd usage. Use the following format for guidance:

agentcmd.exe -s -p <agent port> <agent hostname> "rexec <password in .uptmpasswd file> <unix path to script on agent host or (windows) script path in the registry"

For Example:

agentcmd.exe -s -p 9998 sql2005 "rexec password cpu"

Where:

sql2005 = client hostname where the custom script resides
password = password value for the agent.CmdsPassword value
cpu = the name assigned to the script path in the Windows registry (i.e. cpu = cmd.exe /c c:\scripts\typecpu.bat)

Related Articles


Error running Custom Script or Agent-Side Script

RatingViews
article

Symptom: script is unable to successfully pass the value for a variable name. Resolution: try using %UPTIME_VARIABLENAME% (add UPTIME_ in front of the variable name in your XML script).

By: uptime Support | Date Created: 7-12-2011 | Last Modified: 8-11-2011 | Index: 543

  2202

Creating Custom Alert Scripts in up.time Alert Profiles

RatingViews
article

By: uptime Support | Date Created: 5-17-2006 | Last Modified: 8-9-2011 | Index: 065

  11775

Custom VBS script error due to wrong locale

RatingViews
article

The up.time agent for Windows by default runs with the "English US locale. If a VBS script is handling dates and is expecting them in different format, just put the following line at the beginning...

By: uptime Support | Date Created: 10-2-2009 | Last Modified: 8-13-2011 | Index: 380

  2812

How to get custom script retained data values

RatingViews
article

Integer Data SELECT e.name,p.name,d.value,d.sampletime FROM erdc_int_data d, erdc_instance e, erdc_parameter p where e.erdc_instance_id = d.erdc_instance_id and p.erdc_parameter_id =...

By: uptime Support | Date Created: 10-10-2009 | Last Modified: 8-10-2011 | Index: 425

  2814

Agent running wrong custom script

RatingViews
article

This commonly happens when the first field of the uptmagent file isn't unique. The first field - the secretpassword - is used as a line identifier to decide which script should be launched....

By: uptime Support | Date Created: 8-28-2010 | Last Modified: 8-13-2011 | Index: 499

  2364

User Comments



No comments have been posted.

Copyright © 2021 IDERA, Inc.   Legal   Privacy Statement