How To
Summary
How to identify, and remove a duplicate SMIT menu option
Objective
SMIT menu options are added to the ODM by products, during installation. Sometimes, update errors can cause ODM corruption. The menus might have missing, or duplicate stanzas.
The following is an example of a duplicate stanza in the SMIT mlang menu.

The following steps demonstrate how to remove a duplicate entry for the AIX "Manage Language Environment" menu.
Steps
1) Run smitty in debug to get the ODM information:
Find the menu screen, and duplicate entries:
|
Menu screen information:
(Menu screen selected as FastPath,
id = "system", id_seq_num = "052", next_id = "mlang", title = "Manage Language Environment".) Object class: sm_menu_opt,
id = "system", id_seq_num = "052", next_id = "mlang", text = "Manage Language Environment" (Menu screen selected,
FastPath = "mlang", id_seq_num = "052", next_id = "mlang", title = "Manage Language Environment".) ODM Object class information:
Object class: sm_menu_opt,
id = "mlang", id_seq_num = "030", next_id = "mle_rm_lang_hdr", text = "Remove Language Environments" Object class: sm_menu_opt,
id = "mlang", id_seq_num = "030", next_id = "mle_rm_lang_hdr", text = "Remove Language Environments" |
The following information will be used to retrieve and the duplicate stanzas:
Default smitty uses /usr/lib/objrepos ODMDIR. However, you can verify the ODM files with a simple truss:
# truss -t kopen -feado /tmp/truss.out smitty mlang5636210: 9175255: 0.1485: kopen("/usr/lib/objrepos/sm_cmd_opt", O_RDWR) = 14
# odmget -q 'id=mlang AND id_seq_num="030"' sm_menu_opt > sm_cmd_opt.dupe
# cd /; tar -cvf /tmp/all_odm_files.tar ./etc/objrepos ./usr/lib/objrepos ./usr/share/lib/objrepos
0518-307 odmdelete: 2 objects deleted.
# smitty mlang
--> "Remove Language Environments" is no longer listed.
# cp sm_cmd_opt.dupe sm_cmd_opt.add
# vi sm_cmd_opt.add
| sm_menu_opt: id_seq_num = "030" id = "mlang" next_id = "mle_rm_lang_hdr" text = "Remove Language Environments" text_msg_file = "smit.cat" text_msg_set = 53 text_msg_id = 22 next_type = "d" alias = "" help_msg_id = "2850302" help_msg_loc = "" help_msg_base = "" help_msg_book = "" |
# odmadd sm_cmd_opt.add
# smitty mlang
--> "Remove Language Environments" is correctly listed once.
# IMPORTANT!!!
# export ODMDIR=/etc/objrepos
Additional Information
| SUPPORT |
|---|
|
If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract. 1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, see the IBM Support Community: 4. Provide a clear, concise description of the issue. - For more information, see: Working with IBM AIX Support: Describing the problem. 5. If the system is accessible, collect a system snap, and upload all of the details and data for your case. - For more information, see: Working with IBM AIX Support: Collecting snap data |
Related Information
Was this topic helpful?
Document Information
Modified date:
12 October 2021
UID
ibm16498139