Scenario
You need to identify the ONIE machine/platform name of a switch (for SONiC image matching, vendor support, or ONIE installer selection).
Step 1: Boot into ONIE
Power on the switch and make sure it boots into ONIE mode.
You should see something like:
** Rescue Mode Enabled **
ONIE:/
Step 2: Access the ONIE Console
Press Enter to activate the console if needed.
You should now be at the ONIE shell prompt:
ONIE:/
Step 3: Run the Command to Get ONIE_MACHINE
Option 1 (Recommended)
Run:
onie-sysinfo -mExample output:
micas_m2-w6940-640c➡️ This output is the ONIE_MACHINE value.
Option 2 (Manual Check)
You can also inspect the ONIE machine configuration file:
cat /etc/machine.confLook for:
onie_machine=micas_m2-w6940-640c
Step 4: (Optional) Verify Platform Details
To see more platform metadata:
onie-sysinfo -aThis shows:
- ONIE version
- Architecture
- Platform
- ASIC vendor
- Build date
Quick Summary
| Task | Command |
| Get ONIE_MACHINE | onie-sysinfo -m |
| View config file | cat /etc/machine.conf |
| Full system info | onie-sysinfo -a |
Comments
0 comments
Please sign in to leave a comment.