Skip to content

Commit 1789657

Browse files
Update troubleshooting.md
1 parent 3f3e71a commit 1789657

File tree

1 file changed

+74
-7
lines changed

1 file changed

+74
-7
lines changed

troubleshooting.md

+74-7
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ Issues covered so far:
55

66
* [COMSAT is crashing on start](#comsat-is-crashing-on-start)
77

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
1010
* `^` 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
1313

1414
## COMSAT is crashing on start
1515
Thanks to eswenson for the intial steps here
1616

17-
In order for INQUIR entries to stick, you must have COMSAT running.
18-
1917
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
2018
```
2119
*:peek
@@ -39,6 +37,10 @@ Logout time = Lost 0% Idle 98% Null time = 5:07
3937
As you can see above none of the COMSAT processes are running.
4038

4139
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+
*
4244
Lets start going through those one by one:
4345

4446
### 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
4850
TOP LEVEL INTERRUPT 200 DETACHED JOB # 4, USR:COMSAT IV     12:09:12
4951

5052
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+
```
5157

5258
If you look at the IP address that COMSAT is configured with:
5359
```
@@ -56,7 +62,12 @@ $l .mail.;comsat launch
5662
bughst/'NEW$:   SHOWQ+50,,PAT+6   =30052000544
5763
```
5864

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+
6071

6172
If you look at the value that ITS has for the machine's IP address:
6273

@@ -82,6 +93,7 @@ The easiest fix is to:
8293
4) fix COMSAT's mailing lists file
8394
5) restart COMSAT
8495

96+
### Fixing the host table
8597
To fix the host table, change the line:
8698
```
8799
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.
100112

101113
Now your host table matches your ITS IP address.
102114

115+
### Fixing the COMSAT binary
103116
Next, you need to fix COMSAT.
104117

105118
To do that, create a job for COMSAT:
@@ -130,6 +143,7 @@ Now, you have an correct `.MAIL.;COMSAT LAUNCH` executable.  This will be
130143
launched by `TARAKA` on startup, or by `:MAIL` when invoked if `COMSAT` isn't
131144
running.
132145

146+
### Create the COMSAT database files
133147
However, before you do this, you need to make sure that COMSAT's database
134148
files are created.
135149

@@ -188,6 +202,7 @@ kill the job by typing:
188202

189203
Then, exit PEEK with the "q" command.
190204

205+
### Verify the changes
191206
Now, send yourself a message:
192207
```
193208
:MAIL <your-uname>
@@ -207,5 +222,57 @@ You also should see that your mail was delivered. Type:
207222
```
208223
to read (and optionally delete) it.
209224

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`
210276

277+
But it’s much more fun to do it the hard/manual way!
211278

0 commit comments

Comments
 (0)