Sun Update Connection - Enterprise 1.0 User's Guide

List Host Properties (-lh) Command

The list-host command outputs the properties (such as IP address, distribution, and so on) of a given host.

Parameter

-h hostname Specify the host name.

Syntax

uce_cli -lh -h hostname -u username -p password

Example

uce_cli -lh -h webserver2 -u admin -p 123

Result Example


Host Data:
Host ID = 1
Host Name = webserver2
Unique String = lnx013
Host IP = 127.0.0.2
Host Type is: standard Host (maybe Master)
Host is Connected
Distribution ID is 9
Master Group ID = 0
Master Host ID =0
listen on port 8001

To get valid values for the -h parameter, use the -lah command.

Note that even if a managed host is not connected to Sun Update Connection – Enterprise at the time of the command, the data is still retrieved. An error number will be given (example: FailedErrCode = 34014464) if the host is not online.