Re: Easiest way to get databases for a server from UNIX
Posted in 1997
> Kate_Tomchik@HomeDepot.COM wrote: > > I am writing a shell script that searches all the configs on a machine > for a particular table. I need a way to dynamically get the current > list of database for each config for the search. What is the easiest > way to get this? I don't think it is in any of the system tables, and > I don't know of a way to run tbmonitor in a parameter driven mode. > I'm using version 5.03.uc1 on an HP9.04. > > Currnenty I using the tbcheck -cc option and grepping for > Validating database, but this can take a few minutes on > some of the configs. tbcheck -pe|grep '\\.'|grep -v \\[A-Z\\]|cut -f1 -d:|sort|uniq This, with some editing errors but good explanation, can be found in TechNotes Volume-4, Issue 1 (1994). -- -- Jake (Lost in thought but won't ask for directions) . . _..-'( )`-.._ ./'. '||\\\\. }\\_/{ .//||` .`\\. ./'.|'.'||||\\\\|.. )o o( ..|//||||`.`|.`\\. ./'..|'.|| |||||\\`````` \\'@'/ ''''''/||||| ||.`|..`\\. ./'.||'.|||| ||||||||||||. | .|||||||||||| ||||.`||.`\\. /'|||'.|||||| ||||||||||||{ | }|||||||||||| ||||||.`|||`\\ '.|||'.||||||| ||||||||||||{ | }|||||||||||| |||||||.`|||.` '.||| ||||||||| |/' ``\\||`` | ''||/'' `\\| ||||||||| |||.` |/' \\./' `\\./ \\!|\\ /|!/ \\./' `\\./ `\\| V V V }' `\\ /' `{ V V V \\ \\ \\ V / / / +-----------------------------------------------------------+ | Impeccable Logic: A thought process which successfully | | resists chicken bites | +-----------------------------------------------------------+