Project

General

Profile

Menu Commands » History » Version 5

Hamish, 2008-04-24 10:40

1 1 Hamish
h1. Menu Commands
2
3 4 Hamish
Note that it is currently planned to completely replace the menu system for the next version of wconsd, so these commands will be changing.
4
5 1 Hamish
h2. close
6
7
  close
8
9 4 Hamish
If the serial port is current open, this command will close it and stop any serial communications.
10 3 Hamish
11 1 Hamish
h2. copyright
12
13 3 Hamish
  copyright
14 1 Hamish
15 3 Hamish
Print the copyright notice
16
17 1 Hamish
h2. data
18 3 Hamish
19 1 Hamish
  data *5|6|7|8*
20
21 4 Hamish
Sets the number of data bits.  This command will not have any affect until the port is closed and re-opened.
22 3 Hamish
23 1 Hamish
h2. help
24
25 3 Hamish
Show some quick help for the menu commands
26 1 Hamish
27 5 Hamish
h2. keepalive
28
29
  keepalive
30
31
Toggles the state of Telnet keepalives.  If keepalives are turned on, then a Telnet Keepalive option is sent approximately once every two seconds.  This will create significantly more network traffic than normal, but will help to avoid sessions being terminated unexpectedly
32
33 1 Hamish
h2. kill_conn
34
35 3 Hamish
  kill_conn *Connection ID*
36 1 Hamish
37 4 Hamish
Stop a given connection's serial communications.  This will close the serial port being used by the given *connection ID* and thus allow someone else to open that port.  This command can be used when an existing session has crashed, or if someone else has logged in and is blocking your work.  Since there is no authentication, this command is obviously open to abuse.
38 1 Hamish
39
h2. open
40
41 3 Hamish
  open *[port number]*
42 1 Hamish
43 4 Hamish
Connect or resume communications with a serial port.  If no port number is specified then the current default port number is used.  If an serial port is already open, this will just resume communication with that port.
44 1 Hamish
45
h2. parity
46
47 3 Hamish
  parity *no|even|odd|mark|space*
48
49 4 Hamish
Set the serial parity.  This command will not have any affect until the port is closed and re-opened.
50 3 Hamish
51 1 Hamish
h2. port
52
53 3 Hamish
  port *port number*
54 1 Hamish
55 4 Hamish
Set serial port number.  This command will not have any affect until the port is closed and re-opened.
56 3 Hamish
57 1 Hamish
h2. quit
58
59
  quit
60
61 3 Hamish
Exit from this session
62
63 1 Hamish
h2. show_conn_table
64
65
  show_conn_table
66
67
Show the connections table.  This table is mostly used for internal debugging information, however it contains the connection ID for all the current connections, which can be used with the *kill_conn* command
68
69
<pre style="background-color:black; color:green">
70
w000c2989d2df> show_conn_table
71 5 Hamish
Flags: A - Active Slot, N - Network active, S - Serial active,
72
       M - Run Menu, E - Echo enabled, K - Telnet Keepalives
73
       * - This connection
74
75
s flags  id mThr net  netTh serial serialTh netrx nettx peer address
76
- ------ -- ---- ---- ----- ------ -------- ----- ----- ------------
77
0    ME   1 1884                               55  1598 192.168.1.1:43686
78
1 ANSMEK  2 1888 1880     0   1844     1836    68  4264 192.168.1.1:57184
79
2*AN ME   3 1856 1868     0                   109  4657 127.0.0.1:4629
80
3         0    0                                0     0
81
4         0    0                                0     0
82
5         0    0                                0     0
83
6         0    0                                0     0
84
7         0    0                                0     0
85 4 Hamish
</pre>
86
87
* *id* contains the connection ID for this slot
88
89 2 Hamish
h2. speed
90
91 3 Hamish
  speed *bits per second*
92 1 Hamish
93 4 Hamish
Set serial port speed.  This command will not have any affect until the port is closed and re-opened.
94 1 Hamish
95 3 Hamish
h2. status
96 1 Hamish
97
  status
98 3 Hamish
99 1 Hamish
Show current serial port status
100 3 Hamish
101
<pre style="background-color:black; color:green">
102 2 Hamish
w000c2989d2df> status
103
status:
104
105
  port=1  speed=9600  data=8  parity=0  stop=0
106
  state=open
107
108 1 Hamish
  connectionid=1  hostname=w000c2989d2df
109 5 Hamish
  echo=1  keepalive=0
110 2 Hamish
111
</pre>
112
113
h2. stop
114 1 Hamish
115 3 Hamish
  stop *1|1.5|2*
116
117 4 Hamish
Set number of stop bits.  This command will not have any affect until the port is closed and re-opened.