Copying the value of one property to other

(imported topic written by SystemAdmin)

I am trying to copy the value of RAM to new property(_diffram) in the registry.

setting “_diffram”="{(value of settings “RAM” of client)}" on “{now}” for client

But it is not working for me.

I tried the same to copy the value of Location by IP Range to new property(_BranchLocation) in the registry.

setting “_BRANCHLOCATION”="{(value of settings “Location By IP Range” of client)}" on “{now}” for client

wondering it works. I want for RAM too.

Any one help me to find the difference ?

Thanks

(imported comment written by SystemAdmin)

Not sure what you are doing, but the actionscript as written is taking another setting on the client enpoint and setting it to a different same.

So if you already have a setting called ‘RAM’ on the client, it will set the same value to the setting ‘_diffram’

I think you are trying to take the value of a property on the server and set it on the client. That’s a very different operation and not sure how you can get a session relevance result put into a client action.

(imported comment written by SystemAdmin)

Thanks Alan, you are right I am trying to take the value of a property on the server and set it on the client. how can I achieve that?

(imported comment written by SystemAdmin)

This is because when you run the wizard it creates an action that, in turn, creates a STATIC setting called “Location by subnet”. “Ram” is a property, which is basically DYNAMIC relevance that is constantly evaluated on the endpoint. They may seem similar but they are in fact different. So if you want a setting to constantly compare the current RAM property to a static setting you only have to use the relevance from the RAM property. You can find that in the console at “Tools” | “Manage Properties” | “RAM”. If that confused you here is what you need to do:

setting “_diffram”="{(relevance_for_setting)}" on “{now}” for client

or

setting “_diffram”="{(if (exists true whose (if true then exists ram else false)) then (if (it > 128) then ( ((it / 32) * 32) + (if (it mod 32 > 16) then 32 else 0) ) else it) of (size of ram / (1024*1024)) as string & " MB" else “”)}" on “{now}” for client

Also here is a historical thread that looks like what you are trying to accomplish:

http://www.ibm.com/developerworks/forums/thread.jspa?threadID=410581

(imported comment written by SystemAdmin)

Great this is what I am exactly looking for. Thanks Jimmie :slight_smile: