Fixlet to change property using hostname and if statements

(imported topic written by SystemAdmin)

I’ve combed through the fixlet guide but I haven’t been able to find an answer for this.

I intend to change a bunch of properties based on a hostname. Namely, I intend to add their RILO IP addresses with documentation that we have available.

To do this, I was trying to do something similar to this:

if hostname is "Computer1" setting "RiloIP"="192%2e168%2e2%2e111" for client
elseif if hostname is "Computer2" setting "RiloIP"="192%2e168%2e2%2e112" for client
endif

I will be adding those IP addresses from a sheet I have and I’d rather run this through a fixlet instead of touching them one at at time.

If I do this by itself, I get “Unimplemented command ‘setting’.”

setting "RiloIP"="192%2e168%2e2%2e111" on "Fri, 05 Oct 2012 19:56:52 +0000" for client

(imported comment written by SystemAdmin)

LukeFoelske91 wrote:

If I do this by itself, I get “Unimplemented command ‘setting’.”

setting "RiloIP"="192%2e168%2e2%2e111" on "Fri, 05 Oct 2012 19:56:52 +0000" for client

I just set a property called “RiloIP” on an endpoint using the action statement of:

setting "RiloIP"="192%2e168%2e2%2e111" on "Tue, 09 Oct 2012 17:36:39 +0000" for client

And all worked as expected.

Action Script Execution Detail
Completed setting "RiloIP"="192%2e168%2e2%2e111" on "Tue, 09 Oct 2012 17:36:39 +0000" for client

I am wondering if you somehow got an unprintable control code in the action script, possibly from a copy-n-paste from another window?

(imported comment written by SystemAdmin)

Unsure. I get the following error in the fixlet debugger:

Error Type: runtime error

Description: Unimplemented command ‘setting’.

Line: 1

(imported comment written by SystemAdmin)

LukeFoelske91 wrote:

Unsure. I get the following error in the fixlet debugger:

Error Type: runtime error

Description: Unimplemented command ‘setting’.

Line: 1

Sorry, I did not understand from your original post that you were getting this error in the Fixlet Debugger.

But yes, you

will

get this error in the Fixlet Debugger. For security reasons (i.e., we don’t want end users to be able to change the client’s settings), the Action Tab in Fixlet Debugger runs under the user’s security context and will not interact with the local client evaluator. So the ‘setting’ command is not implemented.

Sorry…

(imported comment written by SystemAdmin)

Thanks for the info! I’ll put in a test tonight :slight_smile: