I was asked to provide a query that pulls together some of the basic identity detail for the IBM i you're connect to... which got me to this....
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|-- Who am i?|
|select s.host_name, e.host_name, 'IBM i ' concat os_version concat '.' concat os_release as ibmi_level,|
|serial_number, machine_type, machine_model,|
|ipl_mode, ipl_type, attention_light,|
|from sysibmadm.env_sys_info e, qsys2.system_status_info s;|