module product-number

Syntax

module <SLOT-ID> product-number [<PRODUCT-NUM>]

no module <SLOT-ID>

Description

Changes the configuration of the switch to indicate that the specified member and slot number contains or will contain a line module.

The no form of the command removes the line module and its interfaces from the configuration. If there is a line module installed in the slot, the line module is powered off and then powered on.

Command context

config

Parameters

<SLOT-ID>

Specifies the member and slot in which the module is or will be installed. For example, to specify the module in member 1, slot 3, enter the following:

1/3

<PRODUCT-NUM>

Specifies the product number of the line module. For example: JL363A

If there is a line module installed in the slot when you execute this command, <PRODUCT-NUM> is optional. The switch reads the product number information from the module that is installed in the slot.

If there is no line module installed in the slot when you execute this command, <PRODUCT-NUM> is required.

Authority

Administrators

Usage

The module command changes the configuration of the switch to indicate that the specified member and slot number contains or will contain a line module.

The default configuration associated with a line module slot is the following:

  • There is no module product number or interface configuration information associated with the slot. The slot is available for the installation with any supported line module.

  • The Admin State is Up (which is the default value for Admin State).

To add a line module to the configuration, you must use the module command either before or after you install the physical module.

If you execute the module command after you install a line module in an empty slot, you can omit the <PRODUCT-NUM> variable. The switch reads the product information from the installed module.

If the module is not installed in the slot when you execute the module command, you must specify a value for the <PRODUCT-NUM> variable:

  • The switch validates the product number of the module against the slot number you specify to ensure that the right type of module is configured for the specified slot.

    For example, the switch returns an error if you specify the product number of a line module for a slot reserved for management modules.

  • You can configure the line module interfaces before the line module is installed.

When you install the physical line module in a preconfigured slot, the following actions occur:

  • If a product number was specified in the command and it matches the product number of the installed module, the switch initializes the module.

  • If a product number was specified in the command and the product number of the module does not match what was specified, the module device initialization fails.

The no form of the command removes the line module and its interfaces from the configuration and restores the line module slot to the default configuration.

If there is a line module installed in the slot when you execute the no form of the command, the command also powers off and then powers on the module. Traffic passing through the line module is stopped. Management sessions connected through the line module are also affected.

If the slot associated with the line module is in the default configuration, you can remove the module from the chassis without disrupting the operation of the switch.

Examples

Configuring slot 1/1 for future installation of a JL363A line module:

switch(config)# module 1/1 product-number jl363a

Configuring a line module that is already installed in slot 1/1:

switch(config)# module 1/1 product-number

Attempting to configure slot 1/3 for the future installation of a line module without specifying the product number (returned error shown):

switch(config)# module 1/3 product-number
Line module '1/3' is not physically available.  Please provide the product
number to preconfigure the line module.

Attempting to configure a line module in a slot that does not support line modules (returned error shown):

switch(config)# module 1/5 product-number jl363a
1/5 is not a valid slot ID for line module.

Configuring a JL363A line module in a slot that has already been used to configure a different module:

switch(config)# no module 1/2
switch(config)# module 1/2 product-number jl363a

Removing a module from the configuration:

switch(config)# no module 1/1
This command will power cycle the specified line module and restore its default
configuration. Any traffic passing through the line module will be interrupted.
Management sessions connected through the line module will be affected. It
might take a few minutes to complete this operation.

Do you want to continue (y/n)? y
switch(config)#