Regular Contributor.. swethaps5 Regular Contributor..
Regular Contributor..
688 views

Execute a server script using Global shell from HP OO

I want to execute a server script from global shell command by passing scrpit name. It doesn't need any argument inputs. The script output is more than 10kb, and since the OO operator has a limitation on it, I am trying using "Remote Command Execution" option to execute the script from OO.

Labels (1)
0 Likes
3 Replies
Regular Contributor.. swethaps5 Regular Contributor..
Regular Contributor..

Re: Execute a server script using Global shell from HP OO

The command I am trying is by using a method startServerScript  by passing the objectID of the script

./.startServerScript:i self:i=34270001

But it throws an exception : NULLPointerException. Below is

"

Exception occurred while calling: startServerScript

RemoteException occurred in server thread; nested exception is:
        java.rmi.RemoteException: EJB Exception: ; nested exception is:
        java.lang.NullPointerException
Extended info can be found in /sys/last-exception.

"

0 Likes
Bridges Respected Contributor.
Respected Contributor.

Re: Execute a server script using Global shell from HP OO

Here is an example of what I use to execute the script via OGFS and setting the output size. 

/opsw/api/com/opsware/script/ServerScriptService/method/.startServerScript\:i self:i=${scriptId} "args={timeOut=${timeoutValue} tailOutputSize=${outputSize} targets:i=com.opsware.server.ServerRef:${serverOID}}"

It looks like you are missing the target argument at a minimum.

 

Regular Contributor.. swethaps5 Regular Contributor..
Regular Contributor..

Re: Execute a server script using Global shell from HP OO

I am able to execute from Global shell directly now.

But from OO operator "Remote Command", the same fails.

I see this below error :

"

Exception occurred while calling: startServerScript.i

ID:   HPSA-001
Code:   com.opsware.common.MessageSpec.INTERNAL_ERROR
Details:   A server error has occurred.

Extended info can be found in /sys/last-exception.

"

0 Likes
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.