aboutsummaryrefslogtreecommitdiffstats
path: root/common/chapters/vty.xml
blob: 41a277d975941d060ed2ff4b20f8094bdb5a98d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="UTF-8"?>
<chapter>
  <title>VTY reference</title>

  <para>The Virtual Tele Type (VTY) has the concept of nodes and commands. This
  chapter lists all nodes and the commands that are available within the node.
  Each command can consist out of several words followed by a variable number of
  parameters. There are common patterns for the parameters, these include IPv4
  addresses, number ranges, a word, a line of text and choice. The following will
  explain the commonly used patterns.
  </para>

  <table frame='all' id="table.vty_patterns"><title>VTY Parameter Patterns</title>
    <tgroup cols='3' align='left' colsep='1' rowsep='1'>
    <colspec column="1" colname="pattern" colwidth="0.5*" />
    <colspec column="2" colname="example" colwidth="0.5*" />
    <thead>
      <row>
          <entry>Pattern</entry>
          <entry>Example</entry>
          <entry>Explanation</entry>
      </row>
    </thead>
    <tbody>
      <row>
          <entry>A.B.C.D</entry>
          <entry>127.0.0.1</entry>
          <entry>A IPv4 address</entry>
      </row>
      <row>
          <entry>TEXT</entry>
          <entry>example01</entry>
          <entry>A single string without any spaces, tabs</entry>
      </row>
      <row>
          <entry>.TEXT</entry>
          <entry>Some information</entry>
          <entry>A line of text</entry>
      </row>
      <row>
          <entry>(OptionA|OptionB|OptionC)</entry>
          <entry>OptionA</entry>
          <entry>A choice between a list of available options</entry>
      </row>
      <row>
          <entry>&lt;0-10&gt;</entry>
          <entry>5</entry>
          <entry>A number from a range</entry>
      </row>
    </tbody>
    </tgroup>
  </table>

  <para>
   The application is configured through the VTY. For configuring a system
   one needs to enter the <command>enable</command> node and then enter the
   <command>configure terminal</command> command. Then the configuration can be
   made according to the available commands. After the system has been configured
   one can use the <command>write</command> command to write the new configuration
   to the configuration file. The new file will be used after the application
   has been restarted.
  </para>


  <para>
    The following table lists the TCP port numbers of the VTY for the
    various Osmocom GSM related programs as used on sysmocom products:
  </para>

  <table frame="all" id="table.vty_port"><title>VTY port numbers</title>
  <tgroup cols='2' align='left' colsep='1' rowsep='1'>
    <colspec column="1" colname="port_number" colwidth="0.5*" />
    <colspec column="2" colname="software" colwidth="0.5*" />
    <thead>
      <row>
	<entry>Port Number</entry>
	<entry>Software</entry>
      </row>
    </thead>

    <tbody>
      <row>
	<entry>4240</entry>
	<entry>osmo-pcu</entry>
      </row>
      <row>
	<entry>4241</entry>
	<entry>osmo-bts</entry>
      </row>
      <row>
	<entry>4242</entry>
	<entry>osmo-nitb, osmo-bsc</entry>
      </row>
      <row>
	<entry>4243</entry>
	<entry>osmo-bsc_mgcp</entry>
      </row>
      <row>
	<entry>4244</entry>
	<entry>osmo-bsc_nat</entry>
      </row>
      <row>
	<entry>4245</entry>
	<entry>osmo-sgsn</entry>
      </row>
      <row>
	<entry>4246</entry>
	<entry>osmo-gbproxy</entry>
      </row>
    </tbody>
  </tgroup>
  </table>

  &sections-vty;
</chapter>