smit [ -C | -M ] [ -D ] [ -f ] [ -h ] [ -l File ] [ -o PathName ] [ -p Entity/ValueString ] [ -r RunMode ] [ -s File ] [ -t ] [ -v ] [ [ -m | -n | -d ] FastPath ] [ -X ] [ -x ]
The smit command invokes the System Management Interface Tool (SMIT). SMIT is an interactive interface application designed to simplify system management tasks. The smit command displays a hierarchy of menus that can lead to interactive dialogues. SMIT builds and runs commands as directed by the user. Because SMIT runs commands, you need the authority to execute the commands that SMIT runs.
SMIT creates two files, the smit.script file and the smit.log file. Invoking the smit command with the -s PathName flag saves the smit.script file in the file specified by the PathName parameter. If the -s flag is not specified, the script information is saved in the $HOME/smit.script file. Invoking the smit command with the -l PathName flag saves the smit.log file in the file specified by the PathName parameter. If the -l flag is not specified, the log information is recorded in the $HOME/smit.log file. You must have write permission for the directory in which you have requested the smit file to be written or the smit.script file and smit.log file are not created. SMIT does not overwrite the smit.log file or the smit.script file. The files are appended when possible.
The smit.script file automatically records the commands with the command flags and parameters used. The smit.script file can be used as an executable shell script to duplicate system configuration. SMIT creates the smit.log file, which contains additional detailed information that can be used by programmers in extending the SMIT system. The smit.log file is affected by the -D, -l, -t, and -v flags.
The smit command takes you to the top level of the menu hierarchy if you do not use the FastPath parameter. To enter the menu at lower levels, use the FastPath parameter. All commands run by SMIT can be used as FastPaths. The FastPath parameter will assist you as you become familiar with the commands. For example, you can enter: smit chuser to go directly to the dialog from which you can change user characteristics. To learn more about FastPaths see, How to Define FastPaths in SMIT in AIX Version 4.3 System Management Guide: Operating System and Devices.
SMIT requires access to the following files:
sm_menu_opt | SMIT database |
sm_name_hdr | SMIT database |
sm_cmd_hdr | SMIT database |
sm_cmd_opt | SMIT database |
smit.log | SMIT log file |
smit.script | SMIT script file |
/usr/lpp/msg/.../smit.cat | Message Catalog |
Note: If any of these files are corrupt, or exist on an NFS server and that server goes down, SMIT may fail to respond.
smit
smit chuserThe chuser command is an example of a FastPath parameter. The smit command and the FastPath parameter chuser takes you directly to the dialog, Change User Attributes, which guides you through changing the characteristics of a user.
chmod +x smit.scriptThen, to duplicate your configuration, enter:
smit.scriptThe smit.script file can be edited to create slight variations in the configuration commands, or to use only subsets of the commands. The smit.script file should be renamed or copied to prevent SMIT from modifying it.
Note: SMIT runs commands under the Korn shell (/usr/bin/ksh). Some command strings in the smit.script file may require this environment to run correctly.
/usr/bin/smit | Contains the smit command. |
/etc/objrepos | Specifies the default directory for the SMIT database. |
smit.log | Specifies detailed information of your session, with time stamps. |
smit.script | Specifies only the target task commands run by SMIT, with time stamps. |
The chmod command.
System Management Interface Tool (SMIT): Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.
System Management Interface Tool (SMIT) Overview for Programming in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.