#!/bin/sh
#
# @(#)db_gather.sh	3.3 04/13/99 Sun Microsystems, Inc.
#
# Collect all the non-standard databases and express them in text form.
#

read SUNSCREEN_BASE <${SUNSCREEN_ETC:-/etc/opt/SUNWicg/SunScreen}/location
. $SUNSCREEN_BASE/bin/.ssenv.profile

echo "//Data gathered from ezdb databases"

{
    $LIB_DIR/vars $* list
    $LIB_DIR/vars $* match 'prg:unknown=;' list
    $LIB_DIR/vars $* match 'prg:unknown=; pgrp:unknown=;' list
    $LIB_DIR/vars $* match 'sys:unknown=;' list
    $LIB_DIR/vars $* match 'sys:unknown=; prg:unknown=;' list
    $LIB_DIR/vars $* match 'sys:unknown=; prg:unknown=; pgrp:unknown=;' list
} | sed 's/^/@db vars /'

{
    $LIB_DIR/logmacro $* list
    $LIB_DIR/logmacro $* match 'deleted:unsigned32=1;' list
    $LIB_DIR/logmacro $* match 'sys:unknown=;' list
    $LIB_DIR/logmacro $* match 'sys:unknown=; deleted:unsigned32=1;' list
} | sed 's/^/@db logmacro /'

$LIB_DIR/authuser $* list | sed 's/^/@db authuser /'

$LIB_DIR/proxyuser $* list | sed 's/^/@db proxyuser /'
