In the VCSAgStartup function, if you do not set a C++ function for an entry point using the VCSAgValidateAndSetEntryPoint() API, then the agent framework assumes the entry point is script-based.
Verify the name of the script file is the same as the entry point name.
Place the file in the $VCS_HOME/bin/resource_type directory or in the directory mentioned in the AgentDirectory attribute. If for example, the online entry point for Oracle were implemented using Perl, the online script must be:
$VCS_HOME/bin/Oracle/online
If you write scripts in shell, verify the PATH environment variable includes the directory where sh is installed.