[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3

isC2host Command

Purpose

Determine the C2 status of a system.

Syntax

isC2host [ -i | -s ]

Description

The isC2host command returns the configuration status of the host machine. If the host has been configured to operate in C2 mode, the command exits with a zero (true) code. If the host has not been configured to operate in C2 mode, the command exits with a non-zero (false) code.

This command may be used in shell scripts where the security status of the host must be known.

The -i option is used to determine the installation status of the system. The C2 status of the system is determined by examining the ODM database, and the exit status indicates whether or not the system was installed in C2 mode.

The -s option is used to initialize AIX in C2 mode and may only be issued by the root user. The C2 status of the system is determined by examining the ODM database. On a system that has not been installed with C2, as indicated by the ODM, this option performs no operation.

Flags

-i Determine the C2 installation status of the system.
-s Set the C2 status of the system from the ODM.

Subcommands

Exit Status

0
When used with no options, the system has been initialized to operate in C2 mode. When used with the -s flag, the system was successfully initialized according to the C2 mode setting defined in the ODM database. When used with the -i flag, the system was installed with C2 enabled.
1
When used with no options, the system has not been initialized to operate in C2 mode. When used with the -s flag, the system could not be initialized to operate in the security mode that was defined in the ODM. When used with the -i flag, the system was installed with C2 enabled but is not currently operating in C2 mode.
2
When used with the -s option, the isC2host command was executed by a non-root user. When used with the -i option, the system was not installed with C2 enabled.
3
The isC2host command was executed with an invalid command line option.

Files

/usr/sbin/isC2host Contains the isC2host command.

Related Information

The chC2admin command, lsC2admin command, mkC2admin command, rmC2admin command.

The sysconfig() subroutine.

The Object Data Manager subsystem.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]