You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: troubleshooting.md
+74-7
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,15 @@ Issues covered so far:
5
5
6
6
*[COMSAT is crashing on start](#comsat-is-crashing-on-start)
7
7
8
-
through out the document you will see certain special characters mentioned. They are slightly different depending on your keyboard and terminal
9
-
*`$` means the ALT or ESC key
8
+
Throughout the document you will see certain special characters mentioned. They are slightly different depending on your keyboard and terminal
9
+
*`$` means the ESC key
10
10
*`^` means the CTRL or STRG key
11
-
*`<escape>` means the ALT or ESC key in EMACS
12
-
*`<control>` means the Control key in EMACS
11
+
*`<escape>` means the ESC key
12
+
*`<control>` means the CTRL or STRG key
13
13
14
14
## COMSAT is crashing on start
15
15
Thanks to eswenson for the intial steps here
16
16
17
-
In order for INQUIR entries to stick, you must have COMSAT running.
18
-
19
17
If you run PEEK, you should see two COMSAT jobs. One has the JNAME IV and the other JOB.nn. If these jobs are not present, then COMSAT may have started and died or not started at all
20
18
```
21
19
*:peek
@@ -39,6 +37,10 @@ Logout time = Lost 0% Idle 98% Null time = 5:07
39
37
As you can see above none of the COMSAT processes are running.
40
38
41
39
There are several reasons why COMSAT may die upon startup The most common are:
40
+
* Network configuration issues
41
+
* Uninitialzed Mail directory structure
42
+
* Other configuration issues
43
+
*
42
44
Lets start going through those one by one:
43
45
44
46
### Network parameters for COMSAT are not correct.
@@ -48,6 +50,10 @@ When you bring up KA ITS, you'll see a message on the operator console like this
48
50
TOP LEVEL INTERRUPT 200 DETACHED JOB # 4, USR:COMSAT IV 12:09:12
49
51
50
52
This means that COMSAT has crashed.
53
+
The next series of steps assumes you have logged into ITS using
54
+
```
55
+
< your username>$$u
56
+
```
51
57
52
58
If you look at the IP address that COMSAT is configured with:
53
59
```
@@ -56,7 +62,12 @@ $l .mail.;comsat launch
56
62
bughst/'NEW$: SHOWQ+50,,PAT+6 =30052000544
57
63
```
58
64
59
-
you'll note that that octal address is: 192.168.1.100
65
+
you'll note that that octal address translates to: 192.168.1.100
66
+
67
+
>![NOTE]
68
+
> To convert from the Octal representation of the IP Address to the tuple representation you can use the approach listed below at
69
+
>(Convert IP address)[#convert-ip-address]
70
+
60
71
61
72
If you look at the value that ITS has for the machine's IP address:
62
73
@@ -82,6 +93,7 @@ The easiest fix is to:
82
93
4) fix COMSAT's mailing lists file
83
94
5) restart COMSAT
84
95
96
+
### Fixing the host table
85
97
To fix the host table, change the line:
86
98
```
87
99
HOST : CHAOS 177002, 192.168.1.100 : DB-ITS.EXAMPLE.COM, DB : PDP-10 : ITS : :
@@ -100,6 +112,7 @@ the `FN2` of the `SYSHST;H3TEXT NNNNNN` you just created.
100
112
101
113
Now your host table matches your ITS IP address.
102
114
115
+
### Fixing the COMSAT binary
103
116
Next, you need to fix COMSAT.
104
117
105
118
To do that, create a job for COMSAT:
@@ -130,6 +143,7 @@ Now, you have an correct `.MAIL.;COMSAT LAUNCH` executable. This will be
130
143
launched by `TARAKA` on startup, or by `:MAIL` when invoked if `COMSAT` isn't
131
144
running.
132
145
146
+
### Create the COMSAT database files
133
147
However, before you do this, you need to make sure that COMSAT's database
134
148
files are created.
135
149
@@ -188,6 +202,7 @@ kill the job by typing:
188
202
189
203
Then, exit PEEK with the "q" command.
190
204
205
+
### Verify the changes
191
206
Now, send yourself a message:
192
207
```
193
208
:MAIL <your-uname>
@@ -207,5 +222,57 @@ You also should see that your mail was delivered. Type:
207
222
```
208
223
to read (and optionally delete) it.
209
224
225
+
### Convert IP address
226
+
If you are wondering how to convert octal IP addresses on ITS to the familiar octet pattern, see this example:
227
+
228
+
Let’s say you want to convert 1200600006 to a standard-formatted IP address. First ensure that the value has 12 octal digits. In this case, you’ll have to add two 0s at the left to get:
229
+
230
+
001200600006
231
+
232
+
Then, break that value up into octal values:
233
+
234
+
001 200 600 006
235
+
236
+
Then, convert the above to binary:
237
+
238
+
000 000 001 010 000 000 110 000 000 000 000 110
239
+
240
+
Then, group into 4 (ignored) bits, followed by 4 8-bit bytes:
241
+
242
+
0000 00001010 00000011 00000000 00000110
243
+
244
+
Then, ignoring the first 4 bits, convert each 8-bit byte to decimal:
245
+
246
+
10 3 0 6
247
+
248
+
So 10.3.0.6 is the same as 1200600006 octal.
249
+
250
+
Lars created a shell script that will do the trick too. You *have* to make sure the input is 12 octal digits long when invoking it:
251
+
252
+
```
253
+
#!/bin/bash
254
+
255
+
if [ $# -eq 0 ]; then
256
+
echo "Please provide an IP address as an argument"
257
+
exit 1
258
+
fi
259
+
260
+
octal=$1
261
+
ip=""
262
+
for i in {1..4}; do
263
+
octet=$(echo $(( $octal >> 8*(4-$i) & 255 )))
264
+
ip="$ip$octet."
265
+
done
266
+
267
+
echo ${ip%?}
268
+
```
269
+
You could invoke it like this:
270
+
271
+
`./ipconvert.sh 001200600006`
272
+
273
+
And it should respond:
274
+
275
+
`10.3.0.6`
210
276
277
+
But it’s much more fun to do it the hard/manual way!
0 commit comments