How to modify configuration settings using selang commands.

Document ID : KB000033578
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary: 

We do not want to use the seini tool to modify configuration files because the information output to the seaudit file is rather limited and we know that selang can achieve the same results but with more valuable output in the audit file.  An example of selang commands used to modify configuration settings are detailed below.

 

Instructions:  

To make config changes (for example; in seos.ini) via the selang shell submit; 

 

selang 

 env config 

 er config seos.ini section(seos) token(parent_pmd) value(PMDB@REMOTEHOST)



or from a shell prompt

 

selang -c "env config; er config seos.ini section(seos) token(parent_pmd) value(PMDB@REMOTEHOST)"

 

To see the resulting output in the seaudit (in this example on a Unix box) please run

 

seaudit -a | grep -i UPDATE | grep -i CONFIG | grep -i seos.ini

 

 

Additional Information: 

For more detailed information about selang please see the selang Reference Guide