Sun Management Center 3.5 User's Guide

Topology Commands

There are nine extended commands for managing topology.

createEntity

The createEntity command creates a managed entity. Properties of the managed entity are specified with the following parameters: agentPort, arch, family, fullDesc, isPolled, pollType, readInfo, targetHost, targetIP, topoCfg, topoType, url, columns, f, and t.

If the url or agentPort parameters are specified, the default port of 161 is not used.

createGroup

The createGroup command creates a topology domain or group. If the entity being created is a group, the group properties are specified with the following parameters: family and fullDesc. The createGroup command also takes the following parameters: columns, f, and t.

If the entity being created is a domain, the family and fullDesc parameters are ignored.

delTopoObjects

The delTopoObjects command deletes a managed topology object in the managed topology hierarchy. All objects under the specified topology object are deleted as well. The delTopoObjects command takes the following parameters: columns, f, and t.

getAgentPort

The getAgentPort command returns a port number of the Sun Management Center agent running on the specified host in a topology domain. If there are multiple agents, a list of port numbers is returned. The getAgentPort command takes the following parameters: columns, f, and t.

If t is not specified, the default domain is used.

getAllTopoObjects

The getAllTopoObjects command returns a list of all managed objects in the managed topology hierarchy that satisfy conditions specified by the arch, family, or pollType parameters. The getAllTopoObjects command also takes the following parameters: columns, f, and t.

getCurrentDomain

The getCurrentDomain command returns the name of the current domain.

getDomains

The getDomains command returns a list of all managed domains.

getTopoObject

The getTopoObject command returns a list of managed topology objects directly under the topology object specified by parameter t that satisfy conditions specified by the arch, family, or pollType parameters. The getTopoObject command also takes the following parameters: columns and f.

setCurrentDomain

The setCurrentDomain command sets the home domain to the value specified in the domain parameter.

For information about exporting and importing topology information from the CLI, see Import and Export CLI Interface.