Config command

show config

Overview

Read config or information for config of service adaptor registered in SACM.

Syntax

msh(tsa********)> show config <SA Code> [type <Type> [module <Module ID>]]

Parameter

Parameter name

Description

<SA Code>

SA code

(Optional) <Type>

Config type

working

Working config

startup

Startup config

running

Running config

preview

Reflecting config

(Optional) <Module ID>

Module ID of displayed config

  • Can be specified only when <type> has been specified

  • Required if preview has been specified

Description

Note

If <Module ID> parameter has been specified, then the actual config is displayed. If not specified, then the config information including module name, version, etc., are displayed.

Output examples for commands are shown below.

Displays information for all configs set in the service adaptor

msh(tsa********)> show config tsw00000000
---
- Working Config:
    - Module ID: 0
      Module Name: SA-W1 1.00 (Beta39)
      Version: 1.0.2-39
      Binary: false
- Startup Config:
    - Module ID: 0
      Module Name: SA-W1 1.00 (Beta27)
      Version: 1.0.2-27
      Binary: false
- Running Config:
    - Module ID: 0
      Module Name: SA-W1 1.00 (Beta27)
      Version: 1.0.2-27
      Binary: false
msh(tsa********)>

Displays information for service adaptor working config

msh(tsa********)> show config tsw00000000 type working
---
Working Config:
 - Module ID: 0
   Module Name: SA-W1 1.00 (Beta39)
   Version: 1.0.2-39
   Binary: false
msh(tsa********)>

Displays the working config for module 0 of the service adaptor

msh(tsa********)> show config tsw00000000 type working module 0
interface.ge0.ipv4.address: dhcp
route.ipv4.0.destination: default
route.ipv4.0.gateway: dhcp
resolver.service: enable
resolver.1.address: dhcp
resolver.domain: example.jp
dns-forwarder.service: enable
msh(tsa********)>

set config

Overview

Registers/reflects the service adaptor config in the SACM.

Syntax

msh(tsa********)> set config <SA Code> <Type> [module <Module ID> [config <Config PATH>]]

Parameter

Parameter name

Description

<SA Code>

SA code

<Type>

Config type

working

Working config

startup

Startup config

running

Running config

(Optional) <Module ID>

ID of the module with the config to be updated

  • Can be specified only when <type> is set to working

(Optional) <Config PATH>

Path of the config file (local)

  • Read from standard input if omitted

  • Can be specified only when <type> is set to working

Description

Note

  • Can only set configs in text format.

  • To update the startup config and running config, first update and save the working config and then reflect that content onto each config to update content.

Output examples for commands are shown below.

Specify config file and configure config

msh(tsa********)> set config tsw00000000 working module 0 config /tmp/config.txt
set config: Working Config was updated.
  • Sample config

interface.ge0.ipv4.address: dhcp
route.ipv4.0.destination: default
route.ipv4.0.gateway: dhcp
interface.pppoe0.id: sacm@example.jp
interface.pppoe0.password: sacm
interface.pppoe0.ipcp: enable
resolver.service: enable
resolver.1.address: dhcp
resolver.domain: example.jp
dns-forwarder.service: enable
dns-forwarder.1.address: ipcp
dns-forwarder.2.address: 192.168.1.100
dns-forwarder.listen.ipv4.100.interface: pppoe0

Set config by reading config content from standard input

msh(tsa********)> set config tsw00000000 working module 0
please enter data ("." for end of data)
interface.ge0.ipv4.address: dhcp
route.ipv4.0.destination: default
route.ipv4.0.gateway: dhcp
interface.pppoe0.id: sacm@example.jp
interface.pppoe0.password: sacm
interface.pppoe0.ipcp: enable
resolver.service: enable
resolver.1.address: dhcp
resolver.domain: example.jp
dns-forwarder.service: enable
dns-forwarder.1.address: ipcp
dns-forwarder.2.address: 192.168.1.100
dns-forwarder.listen.ipv4.100.interface: pppoe0
.
set config: Working Config was updated.