GETCONF

Description

Return the field value of the specified "file + section + item".

Command

getconf [-i <index>] <file> <section> [<item>] [<default>]
-i <index>:
<file>: Path+name of the configuration file
<section>: Section name inside the conf file
<item>: Item inside the section
<default>: Default value
getconf -h
REMARKS
getconf <file> <section>  returns the whole section
getconf <file> <section> <item>  returns the value associated to the given section item
getconf <file> <section> <item> <default>  returns the value associated to the given section item or <default> if value is empty
getconf -i <index> <file> <section>  returns the index-th "token=value" or only "token" (if no value)
getconf -i <index> <file> <section> <item>  returns the index-th value for <item>, values must be coma separated
getconf -h
  print this help

Results

Example

VMSNSX00Z0000A0>getconf /usr/Firewall/ConfigFiles/network ethernet1 address 10.X.X.X