Template Variable command

show template-variable

Overview

Display list and details of Template Variable information.

Syntax

msh(tsa********)> show template-variable <Templateset ID> [name <Variable Name>]

Parameter

Parameter

Description

<Templateset ID>

ID of the Template

(Optional) <Variable Name>

Name of the Template Variable

Description

Output examples for commands are shown below.

Display list of Template Variables

msh(tsa********)> show template-variable 3
---
- TemplateVariable_0:
    TemplateVariable Name: HOSTNAME
    TemplateVariable DefaultValue: hostname
- TemplateVariable_1:
    TemplateVariable Name: LAN0ADDRESS
    TemplateVariable DefaultValue: 192.168.0.1
- TemplateVariable_2:
    TemplateVariable Name: LAN0PREFIX
    TemplateVariable DefaultValue: '24'

Display Template Variable details

msh(tsa********)> show template-variable 3 name HOSTNAME
---
TemplateVariable Name: HOSTNAME
TemplateVariable DefaultValue: hostname
Values:
  - Value_0:
      SA Code: tsw00000000
      Value: SA_1

add template-variable

Overview

Adds a Template Variable.

Syntax

msh(tsa********)> add template-variable <Templateset ID> <Variable Name> [defaultvalue <Default Value>]

Parameter

<Templateset ID>

ID of the Template

<Variable Name>

Name of the Template Variable

(Optional) <Default Value>

Template Variable default values

Description

Output examples for commands are shown below.

Add Template Variable

msh(tsa********)> add templaset-variable 3 name DHCP defaultvalue disable
---
TemplateVariable Name: DHCP
TemplateVariable DefaultValue: disable
msh(tsa********)>

set template-variable

Overview

Updates Template Variable detailed information.

Syntax

msh(tsa********)> set template-variable <Templateset ID> <Variable Name> [defaultvalue <Default Value>] [values [<SA Code> <Value>]...]

Parameter

Parameter

Description

<Templateset ID>

ID of the Template

<Variable Name>

Name of the Template Variable

(Optional) <Default Value>

Template Variable default values

(Optional) <SA Code>

SA code for service adaptor for which values are specified individually

(Optional) <Value>

Values specified on individual service adaptors

Description

Output examples for commands are shown below.

Add Template Variable

msh(tsa********)> set template-variable 3 name DHCP defaultvalue enable values tsw00000000 disable tsw11111111 disable
---
TemplateVariable Name: DHCP
TemplateVariable DefaultValue: enable
Values:
  - Value_0:
      SA Code: tsw00000000
      Value: disable
  - Value_1:
      SA Code: tsw11111111
      Value: disable
msh(tsa********)>

delete template-variable

Overview

Allows you to delete a Template Variable.

Syntax

msh(tsa********)> delete template-variable <Templateset ID> <Variable Name>

Parameter

Parameter

Description

<Templateset ID>

ID of the Template

<Variable Name>

Name of the Template Variable

Description

Output examples for commands are shown below.

Add Template Variable

msh(tsa********)> delete template-variable 3 name DHCP
template-variable: TemplateVariable (TemplateSet ID 3, TemplateVariable Name DHCP) was deleted.
msh(tsa********)>