SCO OpenServer Admin Commands: scoadmin, custom, mkdev and Kernel Relink

SCO UNIX series, part 2. Part 1, SCO UNIX Overview and History, covered the product line. This part is the everyday OpenServer 5 admin toolkit: scoadmin, the older sysadmsh, custom, mkdev, hwconfig and a kernel relink. Commands are not identical on OpenServer 6 or UnixWare 7; where they differ I say so. For the same kind of first-day command set on IRIX, see Essential SGI IRIX Admin Commands.

This is a reference post, not a lab. I did not run these commands on OpenServer hardware for this post. Option letters and paths come from SCO OpenServer 5 documentation and the standard admin guides. Confirm them with the man pages on the release you have before you relink a kernel or overwrite /unix.

Prerequisites

  • Root access on an OpenServer 5 system (or a close reading of the equivalent tool on OpenServer 6). A character terminal is enough; a graphical console is optional for scoadmin.
  • A known-good boot method (emergency boot/root media, or a VM snapshot) before you relink the kernel. A broken /unix will not boot.
  • The exact release string from part 1 (uname -X, /etc/.relid).

Identify the machine again

uname -a
uname -X
cat /etc/.relid
who -r
df -v

uname -X on OpenServer prints an extended block (system, node, release, kernel ID, machine, bus type, serial, licensed users). who -r shows the run level. OpenServer, like other System V systems, normally runs multi-user at run level 2.

scoadmin: the main admin menu

On OpenServer 5, scoadmin is the supported administration launcher. From a character terminal it is a text menu. On a graphical desktop it can open the same managers in windows. Run it as root:

scoadmin

From the menu you reach the managers you will use for the rest of this series:

  • Account / user managers — add and disable logins, set groups and passwords.
  • Filesystem and disk managers — mount, fsck-related tasks, and some disk setup (part 3).
  • Backup managers — scheduled and ad-hoc backups (part 3).
  • Network and protocol managers — the same ground as netconfig (part 4).
  • Printer managers — the lp system (part 4).
  • Hardware / kernel-related managers — devices, and often a prompt to relink.
  • System logs and process tools — a front end to the usual log files under /usr/adm and /var/adm.

You can also start one manager by name, for example scoadmin printer or scoadmin network, when that short name is installed. If a manager is missing, the corresponding package was not selected in custom.

On UnixWare 7, and in parts of OpenServer 6, the SCOadmin family still exists but you will also meet SVR4-style tools (pkgadd, pwconv, idbuild). Use the manager that matches the product, not a random OpenServer 5 how-to, when the files are clearly UnixWare-style.

sysadmsh: the older shell

sysadmsh is the character-based system administration shell from SCO UNIX and Open Desktop. Some OpenServer 5 systems still have it. It covers users, backups, filesystems and devices in a text form. Prefer scoadmin when both exist; use sysadmsh when you are on an ODT-era box or when a site’s runbook still names it. Do not mix the two in one change window if they might edit the same files behind your back.

custom: install and remove software

On OpenServer 5, custom is the software installer (the rough equivalent of IRIX inst or AlmaLinux dnf). Run it as root, usually with the OS or application media mounted or in the drive:

custom

From custom you can view installed products, install or remove packages, and apply some patches. On OpenServer 6 and UnixWare 7, also expect pkgadd, pkgrm and pkginfo for SVR4-style packages, and Xinuos patchck on Definitive 2018 systems (part 1) for current patches. After any install that includes a driver, you will usually be offered a kernel relink — that is the next section, not an optional afterthought.

Record what you install. A short inventory from the command line is:

# OpenServer 5
custom
# UnixWare / many OpenServer 6 systems
pkginfo
pkginfo -l

hwconfig: what the kernel can see

hwconfig prints the hardware the running kernel knows about: disk controllers, serial boards, network adapters, and similar. It is the first command to run when a new board does not appear, or before you run mkdev:

hwconfig
hwconfig -h

If a card is physically present but missing from hwconfig, the driver is not in the running kernel, the board is not supported, or the resources (I/O, IRQ, memory) clash with something else. That is a mkdev and relink problem, or a hardware problem, not a custom problem.

mkdev: add a device and its driver

mkdev is a family of interactive scripts that configure devices and, when needed, add the driver to the kernel build. You almost always run it as root, and you almost always finish with a relink and a reboot. Common entry points:

mkdev hd        # additional hard disk
mkdev tape      # tape drive
mkdev serial    # serial board or additional ports (part 4)
mkdev tty       # tty / terminal setup
mkdev cdrom     # CD-ROM
mkdev mouse
mkdev high-speed   # on some releases, "fast" serial
# list what mkdev knows about on THIS system
ls /usr/lib/mkdev
# or: mkdev  (and read the usage)

Answer the resource questions from the board documentation and from hwconfig, not from a generic web table. A wrong IRQ on an old ISA board will either fail to probe or will take down a disk controller. After mkdev says it is done, relink if it asks, then reboot and run hwconfig again before you declare success.

Relink the kernel

OpenServer 5 kernels are built from the link kit under /etc/conf. The usual interactive path is the prompt at the end of mkdev or a scoadmin hardware change. The manual path, documented throughout the OpenServer system administrator’s guides, is:

cd /etc/conf/cf.d
./link_unix

A successful relink installs a new /unix and typically keeps the previous kernel as /unix.old (confirm the backup name on your release before you overwrite anything). Reboot so the new kernel is the one that is running:

# after a clean relink
shutdown -y -g0 -i6
# once the system is back:
hwconfig
uname -X

On UnixWare 7, and in some OpenServer 6 paths, the rebuild tool is idbuild rather than ./link_unix. Use the command the product manual names. Do not copy an OpenServer 5 relink procedure onto UnixWare and assume the same /unix backup behavior.

If the new kernel does not boot, use your emergency boot media or the boot-prompt option to load /unix.old (the exact boot-prompt syntax is on the emergency-boot documentation for that release). Fix the driver or undo the mkdev change, relink again, and only then boot the new kernel.

Verification checklist

  • uname -X and who -r show the release and run level you expect.
  • scoadmin opens, and the managers you need are present.
  • hwconfig lists the devices you just added, after the reboot that followed the relink.
  • A new /unix is in place, a previous kernel was kept, and the system has rebooted once on the new kernel.
  • No new errors in the system log immediately after the reboot (/usr/adm/syslog or the log scoadmin points you at on that release).

Troubleshooting

ProblemLikely causeFix
scoadmin missing a managerThe package was not installedInstall it with custom (or pkgadd on UnixWare) and retry.
Card not in hwconfig after mkdevYou did not relink, you did not reboot, or the resources are wrongRelink, reboot, then recheck IRQs and I/O against hwconfig and the board manual.
System will not boot after a relinkBad driver, bad resources, or a failed copy of /unixBoot /unix.old or emergency media, undo the change, relink a known-good kernel.
./link_unix not foundUnixWare-style system, or the link kit is not installedInstall the link kit with custom/pkgadd, or use idbuild on UnixWare / OS6.
Two admins edited devices at onceOverlapping mkdev and scoadmin sessionsMake device changes one at a time, relink once, reboot, and only then start the next change.

AlmaLinux equivalents

  • No scoadmin: use Cockpit, nmcli, firewall-cmd and the usual command-line tools.
  • Packages: dnf / rpm, not custom.
  • Hardware: lscpu, lspci, dmesg, journalctl -b. There is no mkdev and no routine kernel relink; drivers are modules (lsmod, modprobe).
  • A new kernel comes from dnf update and GRUB, with the previous kernel kept as a boot entry.

Next in this series

Part 3 covers disks, filesystems and backups: fdisk, divvy, mkdev hd, HTFS and EAFS, and tar/cpio tape backups.

Sources

  • SCO OpenServer 5 System Administration Guide (scoadmin, custom, mkdev, the link kit and link_unix).
  • SCO / Xinuos OpenServer 6 and UnixWare 7 administration guides for idbuild and pkgadd differences.
  • AlmaLinux and RHEL documentation for DNF, kernel updates and Cockpit.

Leave a Reply

Your email address will not be published. Required fields are marked *