The onconfig_diff utility

Use the onconfig_diff utility to compare two onconfig files.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-onconfig_diff--+- -d-----------------------------------+----><
                  '- -c-- -f--filepath_1-- -s--filepath_2-'   

Element Description
-d Compares the current onconfig settings to the default settings.
-c Compares one onconfig file to another.
-f filepath_1 Specifies the first file name to compare. Provide the path to the file unless the file is in the $INFORMIXDIR/bin directory.
-s filepath_2 Specifies the second file name to compare. Provide the path to the file unless the file is in the $INFORMIXDIR/bin directory.

Usage

Run the onconfig_diff utility to compare two different onconfig files. The onconfig_diff utility is in $INFORMIXDIR/bin.

The two files that you want to compare must be in the same directory.

Here are some ways that you can use the utility:
  • Compare your current onconfig with the onconfig.std of same version.
  • Compare your current onconfig with the onconfig.std of a newer version.
  • Compare two onconfig files from different servers.

Example

In this example, the onconfig.std file is compared against the onconfig.production file:
$ onconfig_diff -c -f onconfig.std -s onconfig.production
Here is the output from this command:
==========================================
File 1: onconfig.std
File 2: onconfig.production
==========================================
Parameters Found in File 1, not in File 2
==========================================

FULL_DISK_INIT  0

NETTYPE         ipcshm,1,50,CPU

NUMFDSERVERS    4
...
============================================== 
Parameters Found in File 2, not in File 1 
============================================== 

JVPJAVAHOME    $INFORMIXDIR/extend/krakatoa/jre

...
============================================== 
Parameters Found in both files, but different 
==============================================  
ROOTPATH  

File 1: $INFORMIXDIR/tmp/demo_on.rootdbs 
File 2: /usr2/support/grantf/g1150fc8/rootdbs  

LOGFILES  

File 1: 6 
File 2: 10  

LOGSIZE  

File 1: 10000 
File 2: 3000 
...

Copyright© 2019 HCL Technologies Limited