|
hi there- more input
hi mate,
below i paste the exact section that i need for my bash script.
so i need to isolate it in order to display it or extract some text from it.
note that some of the input is unique for this module (nm="db") but not for the entire configuration file- once i will isolate this module it will be much easier to extract the relevant text.
the section that i need to isolate from the file content:
<Module nm="db" service="DB" element="Physical connection" desc="Configurations for Database connection - server, s
chema, connections " exp="Production">
<ParamSubList nm="db" service="DB" element="Physical connection" desc="Configurations for Database connection - s
erver, schema, connections " exp="Internal" sectionType="" keyDesc="" valDesc="" paramsTp="None">
<Param key="username" v="clients_46_sp6" machine="" site="" tp="string" desc="DB Username" exp="CustomerSupport
" hot="false" cat="Basic" layer="Installation" mandatory="false" id="8954" service="General" element="Database" />
<Param key="password" v="clients_46_sp6" machine="" site="" tp="string" desc="DB Password" exp="CustomerSupport
" hot="false" cat="Basic" layer="Installation" mandatory="false" id="8955" service="General" element="Database" />
<Param key="host" v="qa158" machine="" site="" tp="string" desc="Service name of the local database, as configu
red in the TNS names .ora file" exp="CustomerSupport" hot="false" cat="Basic" layer="Installation" mandatory="false"
id="8956" service="General" element="Database" />
<Param key="connections_amount" v="3" machine="" site="" tp="string" desc="" exp="CustomerSupport" hot="false"
cat="None" layer="Installation" mandatory="false" id="0" service="DB" element="Physical connection" />
<Param key="override_language" v="10" machine="" site="" tp="string" desc="System preferred language" exp="Cust
omerSupport" hot="false" cat="Basic" layer="Installation" mandatory="false" id="8953" service="General" element="Loca
lization" />
<Param key="system_language_string" v="SYSTEM PREFERRED LANGUAGE" machine="" site="" tp="string" desc="Language
description for system preferred language" exp="CustomerSupport" hot="false" cat="Basic" layer="Installation" mandat
ory="false" id="0" service="DB" element="Physical connection" />
<Param key="repository_debug_mode" v="no" machine="" site="" tp="string" desc="This parameter is used to show a
message if a missing Repository entry is found" exp="CustomerSupport" hot="false" cat="Basic" layer="Installation" m
andatory="false" id="18791" service="General" element="Database" />
<Param key="empty_string" v="MISSING REPOSITORY" machine="" site="" tp="string" desc="" exp="Internal" hot="fal
se" cat="None" layer="Installation" mandatory="false" id="0" service="DB" element="Physical connection" />
<Param key="use_oci_corba" v="no" machine="" site="" tp="string" desc="" exp="CustomerSupport" hot="false" cat=
"None" layer="None" mandatory="false" id="18903" service="General" element="Database" />
<Param key="connection_expiration" v="900" machine="" site="" tp="string" desc="refresh time for DB connection"
exp="Internal" hot="false" cat="None" layer="None" mandatory="false" id="0" service="DB" element="Physical connectio
n" />
<Param key="take_db_connection_timeout_sec" v="4" machine="" site="" tp="string" desc="Enables timeout in secon
ds when waiting for free db connections. Default is 0. 0-wait forever, 1 and more - seconds to wait for a free db con
nection" exp="Internal" hot="false" cat="None" layer="Installation" mandatory="false" id="0" service="General" elemen
t="Physical connection" />
<Param key="extended_log_level" v="0" machine="" site="" tp="string" desc="Enables extended debug logging. Defa
ult is 0. 0-Disabled, 1-Basic, 2-Verbose, 3-Full" exp="Internal" hot="false" cat="None" layer="Installation" mandator
y="false" id="0" service="General" element="Physical connection" />
<Param key="latency_warning_threshold" v="22000" machine="" site="" tp="string" desc="Sets the max latency in D
B calls (milliseconds), after which a warning is logged" exp="Internal" hot="false" cat="None" layer="None" mandatory
="false" id="0" service="DB" element="Physical connection" />
</ParamSubList>
</Module>
thanks dude...
|