chgnod(1M) chgnod(1M)
NAME
chgnod - change current Oreo system nodename
SYNOPSIS
chgnod new-name [kernel-file]
DESCRIPTION
chgnod accesses the structure defined in sys/utsname.h:
struct utsname {
char sysname[9];
char nodename[9];
char release[9];
char version[9];
};
chgnod changes the nodename of the currently running kernel
to new-name. kernel-file is the name of the kernel that was
last booted. If you don't specify a kernel-file, /unix is
assumed. nodename is a null-terminated string containing
the name the system is known by on a communications network.
new-name must not be longer than eight characters; longer
names are truncated to eight. It prints the old and new
nodenames on completion.
chgnod only changes the nodename of the kernel in memory.
The next time you reboot your system, your nodename will not
reflect this change. If you want to permanently change your
nodename, you must edit the configuration file name.c and
remake your kernel.
EXAMPLE
chgnod user10 /unix.current
changes your nodename to user10 if /unix.current was the
last kernel booted.
FILES
/etc/chgnod
SEE ALSO
uucp(1C), uname(2).
Page 1 (last mod. 1/15/87)