Novell ZENWORKS LINUX MANAGEMENT 7.3 IR2 - ADMINISTRATION GUIDE 02-12-2010 Administration Manual page 210

Table of Contents

Advertisement

# All rpms, except src and nosrc rpms, in the directory and all of its
subdirectories will be loaded into the bundle and architecture indicated
below.
#
# Don't forget to enter your admin password below and update the bundlename and
architecture below.
#
if [ $# -lt 3 ]
then
echo "Usage :: zlmload.sh <bundle_name> <arch> <admin_password>"
echo "Example :: zlmload.sh SLES-9-Distro sles-9-i586 novell"
exit
fi
# Create the bundle to load into
zlman -V -U administrator -P$3 bc $1
# loop through these directories and load all of the rpms
STARTDIR=`pwd`
STARTTIME=`date`
time \
for dir in `find . |grep .rpm |grep -v src.rpm|grep -v nosrc.rpm|awk -F / '{NF-
-; OFS="/"; print $0}'| sort | uniq`; do
cd $STARTDIR
cd $dir
echo "Loading RPM's from `pwd`"
zlman -V -U administrator -P$3 bap $1 $2 *.rpm;
done
ENDTIME=`date`
echo "Load started at $STARTTIME"
echo "and ended at $ENDTIME"
210 Novell ZENworks 7.3 Linux Management Administration Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks linux management 7.3 ir2

Table of Contents