Sun Update Connection - Enterprise 1.0 User's Guide

Viewing an Inventory with the CLI

The CLI command to view an inventory is for one specific host at a time. It outputs package names only, not categories or package-groups. See List Host Inventory (-lhi) Command.


#! /bin/bash

echo -n “Enter your user name:” 
read user 
echo -n “Enter your password:” 
read password 

echo “The list of hosts is:” 
uce_cli -lah -u “$user” -p “$password” 
echo -n “Copy the name of the host whose inventory you want to see:” 
read hostname 

uce_cli -lhi -h “$hostname” -u “$user” -p “$password”