cancel
Showing results for 
Search instead for 
Did you mean: 

Agent Configuration problems.

Former Member
0 Kudos

Hi all.

Now, once I have installed the client SAP, I include a configuration.properties into setting to change some parameters as port, server, lenguage.

I have seen that this process can be done through agents in DOE. Then I have created a agent with next parameter: MobileEngine.Sync.Language=DE then, first time I syncronice the lenguage from my device changed during synchronization to German so it's ok.

The problem is after this when I modify again this parameter to MobileEngine.Sync.Language=ES, during the synchronization does not happen anything. It's possible to return to my original lenguage. Why can I change only once the parameters?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

A part of this problem which is not very very important because the configuration from devices are going to change only once,

I have another important problem:

I have created a Agent called AGENT_VIC with next parametrs:

MobileEngine.Settings.Languages=es

MobileEngine.Settings.Countries=ES

com.sap.tc.mobile.sync.passwordhandling=local

com.sap.tc.mobile.cfs.sync.repetitiveSync.activated=true

com.sap.tc.mobile.cfs.sync.repetitiveSync.maximumNumberOfSyncs=2

com.sap.tc.mobile.cfs.sync.repetitiveSync.timeBetweenSyncs=6000

com.sap.tc.mobile.sync.http.host=xxxx.xxx.es

com.sap.tc.mobile.sync.http.port=8090

com.sap.tc.mobile.sync.client=099

MobileEngine.Sync.Language=es

com.sap.tc.mobile.cfs.deploy.check_authorizations=false

I have asigned this agent to a agent configuration AGENT_CONFIG_VIC and this agent configuration has been asigned to a Device Profile Called PROFILE2_VIC. I have added a new device to this profile.

Before synchronizing, My queue contains a packet with this next information:

- <Msg type='B'>

< AGENT C2="CONFIG" .....C3=""MobileEngine.Sync.Language" C6="ES" C7="X" C4="X"..>

and all my parameters asign to my own agent...

< AGENT C2="AGENT_VIC" .....C3=""MobileEngine.Settings.Countries" C6="ES" C7="X" C4="X"..>

< AGENT C2="AGENT_VIC" .....C3=""com.sap.tc.mobile.sync.client" C6="99" C7="X" C4="X"..>

...

...

...

When I sync, only the lenguage is changed ( first register from xml) and my trace indicated to me that

AGENT_VIC is unknown for each one register indicated in xml except the first one. exactly:

<r id="1270658277233" t="18:37:57" d="2010-04-07" s="E" c="000" u="E011153" g="es" m="Agent AGENT_VIC cannot be found!">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.agent.AgentManager:finishNode)"/>

<f n="ThreadName" v="Thread-37"/>

</r>

<r id="1270658277268" t="18:37:57" d="2010-04-07" s="E" c="000" u="E011153" g="es" m="Agent AGENT_VIC cannot be found!">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.agent.AgentManager:finishNode)"/>

<f n="ThreadName" v="Thread-37"/>

</r>

<r id="1270658277286" t="18:37:57" d="2010-04-07" s="E" c="000" u="E011153" g="es" m="Agent AGENT_VIC cannot be found!">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.agent.AgentManager:finishNode)"/>

<f n="ThreadName" v="Thread-37"/>

.....

what is happening? why does not my device recognize my parameters??

Help please and thanks very much

Former Member
0 Kudos

You can't use Agent_VIC, you have to keep it CONFIG

The mobile client only recognizes a few special named "Agents" like CONFIG, TRACE, MSK

I believe to get other types of AGENTS, there are additional add-ons to install/assign.

If you needed to group Agent Properties or give meaningful names, I did it through Agent Configurations -

so naming the Agent Configuration ID - SERVER.SETTINGS and it would have the assign the Agent - CONFIG

and the parameter ids - com.sap.tc.mobile.sync.client, com.sap.tc.mobile.host, com.sap.tc.mobile.sync.port

or Agent Configuration ID - MountainTimeZone and it would have assign the Agent - CONFIG, Parameter id - MobileEngine.Sync.Timezone = America/Phoenix, and other region specific parameters, etc...

so.... in your example

you would use agent configuration id - AGENT_CONFIG_VIC

but the Agent would remain CONFIG, and you assign appropriate parameters

i successfully changed the language of one of my devices to ES, and it changed it to espagnol, but only once i exited the client and restarted the client, same thing goes for timezone and probably other regional settings, I think it's a CremE\Java issue.

That's why I really like the functionality to enable the mobile client to restart automatically once a successful sync is finished.

Former Member
0 Kudos

Thanks Alan.

I will test your solution because it could work.

I will comment to you.

Former Member
0 Kudos

Thanks again Alan.

I works fine. I have introduced all my parameters in default agent CONFIG and this one has been asigned to my own configuration agent.

Thanks.

Answers (1)

Answers (1)

Former Member
0 Kudos

Setting agent configuration can be tricky.

Is the Prcoess Auto... checked off?

In my experience, not sure if always the case, but when I want to change a parameter after "registration", or assign a new value.

I have to follow these steps:

1) Manage Agents - Set Parameter to "False", if already set to TRUE

2) SAVE

3) Go back in Manage Agents - enter new \ change value

4) Set Parameter to "TRUE"

5) SAVE

Former Member
0 Kudos

Sorry but according to your message:

If you have a parameter with FALSE and If you want to change it to TRUE,

1 - you save it the first time to TRUE and save??

2 - and after that, you change it again to FALSE and save??

3 - and then when you save and synchronize, your device change to TRUE??

Is this correct becouse it looks rare..

Thanks.

Former Member
0 Kudos

I decided to try changing the language setting, from the Language EN to a different Language, FR, through Agents and no need for all that FALSE\TRUE confusion.

When creating the device I had it as EN so it shows under the Agents tab.

I went into Manage Agent mode and change to FR and synchronized.

Then I exited the client and re-opened and the language was set to FR

When you change the language and press SAVE, you should see this in the outbound queue.

Also for these type of NWM client changes, it requires a restart.

<?xml version="1.0" encoding="utf-8" ?>

- <Msg type="I">

<AGENT C0="4B86460015A50310E1008000AC1A2092" ty="D" />

</Msg>

<?xml version="1.0" encoding="utf-8" ?>

- <Msg type="I">

<AGENT C2="CONFIG" C1="4B8645FB15A50310E1008000AC1A2092" C3="MobileEngine.Sync.Language" C6="FR" C7="X" C4="X" C0="4B86460015A50310E1008000AC1A2092" ty="I" />

</Msg>

Edited by: Alan Cheun on Apr 7, 2010 5:07 PM

rohith_deraje
Employee
Employee
0 Kudos

On the device Choose Agents Tab.

Add a agent of type = "CONFIG"

parameter = "MobileEngine.Sync.Language"

Value = "EN"

Get and Set parameters set to "TRUE" and process automatically checked.

Use F4 help while choosing the parameters and value.

Save the changes and sync. This should change the language back to english.

I think in your case you have entered language as "ES" which is invalid. It should be "EN" for english.

Regards

Rohith

Former Member
0 Kudos

Hi.

Yes, I see all you are saying to me and my xml is look correct: <?xml version="1.0" encoding="utf-8" ?>

- <Msg type="I">

<AGENT C0="4BB89F77668B022CE1008000AC1E1065" ty="D" />

</Msg>

<?xml version="1.0" encoding="utf-8" ?>

- <Msg type="I">

<AGENT C2="CONFIG" C1="4BB89F72668B022CE1008000AC1E1065" C5="X" C3="MobileEngine.Sync.Language" C6="EN" C7="X" C4="X" C0="4BB89F77668B022CE1008000AC1E1065" ty="I" />

</Msg>

when I see my trace, it also looks like correct but my language does not change.

<r id="1270710049331" t="09:00:49" d="2010-04-08" s="D" c="000" u="E011153" g="es" m="Reading agent config instance">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.agent.AgentManager:finishNode)"/>

<f n="ThreadName" v="Thread-21"/>

</r>

<r id="1270710049337" t="09:00:49" d="2010-04-08" s="P" c="000" u="E011153" g="es" m="Processing agent CONFIG, key MobileEngine.Sync.Language = EN, set: true, get: true">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.agent.AgentManager:finishNode)"/>

<f n="ThreadName" v="Thread-21"/>

</r>

<r id="1270710049346" t="09:00:49" d="2010-04-08" s="D" c="000" u="E011153" g="es" m="Setting configuration property MobileEngine.Sync.Language = EN">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.agent.Agent:setProperty)"/>

<f n="ThreadName" v="Thread-21"/>

</r>

<r id="1270710049354" t="09:00:49" d="2010-04-08" s="I" c="000" u="E011153" g="es" m="set MobileEngine.Sync.Language = EN ">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.conf.Configuration:setConfiguration)"/>

<f n="ThreadName" v="Thread-21"/>

</r>

<r id="1270710049506" t="09:00:49" d="2010-04-08" s="D" c="000" u="E011153" g="es" m="UPDATE CFS_CONFIGURATION SET CONF_VALUE=&apos;EN&apos; WHERE CONF_KEY=&apos;MobileEngine.Sync.Language&apos;">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.pers.PersistenceManagerImpl:execute)"/>

<f n="ThreadName" v="Thread-21"/>

</r>

<r id="1270710049520" t="09:00:49" d="2010-04-08" s="P" c="000" u="E011153" g="en" m="Sending alert CONFIG, MobileEngine.Sync.Language = EN">

<f n="LocationName" v=" (com.sap.tc.mobile.cfs.agent.AgentManager:sendAlert)"/>

<f n="ThreadName" v="Thread-21"/>