chC2admin Command

Purpose

Changes the name of the administrative host for a system.

Syntax

chC2admin [ -a address ] hostname

Description

The chC2admin command maintains the name of the C2 System Administrative Host as well as the NFS mount points and hostname entries as defined in /etc/filesystems.

Changing the name of the Administrative Host will cause the NFS file systems listed in /etc/filesystems to be updated and the contents of /etc/security/admin_host to be replaced.

The given hostname must be defined when this command is executed. If hostname cannot be resolved, a warning will be given. The -a option may be used to specify the IP address of hostname. When the -a option is given, hostname and address will be added to the /etc/hosts file.

Flags

Item Description
-a address  

Parameters

Item Description
hostname Specifies the hostname.

Exit Status

0
All updates have been made successfully.
1
Command has been executed on a non-C2 System.
2
Command failed while changing the administrative host.

Files

Item Description
/usr/sbin/chC2admin Contains the chC2admin commnad.