Sun Management Center 3.6.1 User's Guide

Module Extended Commands

Seven extended commands are available for managing modules.

Parameters for the Module Command

The following parameters can be used by the module commands. For details about the a and m parameters, refer to Predefined Parameters and Flags.

moduleName

The internationalized name of the module

moduleDesc

The text description of the module

moduleParams

The comma-separated list of module parameters

-default

The default settings of the module

Module Commands

disableModule

Description

The disableModule command disables a module or modules in an agent or agents.

Syntax

disableModule a=host[:port][,host[:port]]* m=module[+instance][,module[+instance]]*

Parameters

a and m

enableModule

Description

The enableModule command enables a module or modules in an agent or agents.

Syntax

enableModule a=host[:port][,host[:port]]* m=module[+instance][,module[+instance]]*

Parameters

a and m

getLoadedModules

Description

The getLoadedModules command obtains a list of loaded modules in an agent or agents.

Syntax

getLoadedModules a=host[:port][,host[:port]]*

Parameter

a

getModule

Description

The getModule command obtains information for a particular module in an agent or agents.

Syntax

getModule a=host[:port][,host[:port]]* m=module[+instance]

Parameters

a and m

getModules

Description

The getModules command obtains a list of all available modules in an agent or agents.

Syntax

getModules a=host[:port][,host[:port]]*

Parameter

a

loadModule

Description

The loadModule command loads a module in an agent or agents.

Syntax

loadModule a=host[:port][,host[:port]]* m=module[+instance] [moduleName= name] [moduleDesc=description] [moduleParams= key=value[,key=value]*] [-default]

Parameters

a, m, moduleName, moduleDesc, moduleParams, and -default.

unloadModule

Description

The unloadModule command unloads one or more modules in an agent or agents.

Syntax

unloadModule a=host[:port][,host[:port]]* m=module[+instance][,module[+instance]]*

Parameters

a and m

Module Command Examples

To determine which modules are loaded on a host whose agentHost name is seattle, you would type the following command at the CLI prompt:


> getLoadedModules a=seattle

To load the kernel-reader module on the host seattle at port 1776, you would type the following command:


> loadModule a=seattle:1776 m=kernel-reader