Solaris™ Operating Environment Boot Camp By David Rhodes, Dominic Butler
Table of Contents
Chapter 14. Connecting Serial Devices
We've already mentioned that ttyadm is the helper program for ttymon and is used to generate the colon-separated string for the _pmtab file that we saw in the earlier example. We did this by embedding the ttyadm output into the pmadm command, but in this section we'll run ttyadm as a standalone program. This will enable us to see its output and let us examine the values supplied to it at the same time.
First, let's run the command we used in the earlier example:
hydrogen# ttyadm -l contty5H -d /dev/term/a T vt100 -s /usr/bin/login S y /dev/term/a:::/usr/bin/login::contty5H::login\: ::vt100:y: hydrogen#
This confirms that ttyadm simply returns a correctly formatted string to suit the parameters passed onto it. This string is passed onto pmadm, where it is inserted into the _pmtab file. In fact, if we compare the earlier _pmtab entry to the output above we should see that they both match. Table 14.6 shows what each of the parameters in the earlier example refers to.