PASOE - add directory to propath using oeprop

Posted by gdb390 on 17-Dec-2019 10:16

Hi,

Is there a possibility using the oeprop to add a directory to existing propath of agent ? 

Kind regards

Gerd 

Posted by Ram Krushna Mishra on 17-Dec-2019 11:04

Hi Gred,

Try using the '-f' option for merging the properties. But the input it takes is another property file.

example is : oeprop -f myfile.props

See the article : knowledgebase.progress.com/.../PASOE-equivalent-of-mergeprop-000084179.

search for the section : To modify a set of properties:

Hopefully that helps.

Thanks and Regards,

Ram Krushna

Posted by Sanjeva Manchala on 17-Dec-2019 10:54

Hi Gred,
 
I think that is not possible directly, but you can achieve that by running the following:
  1. First query the PROPATH using oeprop
../oeprop.sh AppServer.Agent.fiveNines1.PROPATH – It’ll give existing Propath
  1. Add your new propath entry to the existing path
../ oeprop.sh AppServer.Agent.fiveNines1.PROPATH=<old_value>,<new_value>
Note: oeprop +<PROPATH> will add a new property name called PROPATH, it won’t add value to the existing PROPATH.
 
Thanks,
Sanjeev
 

All Replies

Posted by Sanjeva Manchala on 17-Dec-2019 10:35

Hi Gred,
 
Yes, you can use oeprop utility to set PROPATH. Here is a KB article which explains on how to set PROPATH using oeprop utility.
 
Thanks,
Sanjeev
 

Posted by gdb390 on 17-Dec-2019 10:42

Hi Sanjeva,

Thank you for the response , but my question was in fact adding an entry to the propath without erasing what was in it

eg.  

oeprop <.......PROPATH>=c:\temp

add an entry to propath with oeprop so that we get c:\temp,c:\temp\test

I hoped the oeprop +<.......PROPATH> would do something like that

there are some defaults that are already in the propath (after creating the instance with pasman create)  that we want to keep, but we want to add our proper entries to it also

Posted by Sanjeva Manchala on 17-Dec-2019 10:54

Hi Gred,
 
I think that is not possible directly, but you can achieve that by running the following:
  1. First query the PROPATH using oeprop
../oeprop.sh AppServer.Agent.fiveNines1.PROPATH – It’ll give existing Propath
  1. Add your new propath entry to the existing path
../ oeprop.sh AppServer.Agent.fiveNines1.PROPATH=<old_value>,<new_value>
Note: oeprop +<PROPATH> will add a new property name called PROPATH, it won’t add value to the existing PROPATH.
 
Thanks,
Sanjeev
 

Posted by Ram Krushna Mishra on 17-Dec-2019 11:04

Hi Gred,

Try using the '-f' option for merging the properties. But the input it takes is another property file.

example is : oeprop -f myfile.props

See the article : knowledgebase.progress.com/.../PASOE-equivalent-of-mergeprop-000084179.

search for the section : To modify a set of properties:

Hopefully that helps.

Thanks and Regards,

Ram Krushna

Posted by gdb390 on 17-Dec-2019 11:08

Thanks Ram, that works

It also works like this 

Posted by Peter Judge on 06-Jan-2020 16:08

Just wanted to highlight that oeprop -f will not merge values from the input properties file but rather will overwrite the instance's values with those from the file (ie a destructive write).

The approach @gdb390 shows is how you have to do it today (store in an intermediary variable).

This thread is closed