Issue
At the time of writing this article (March, 2015), switches with x86 processors do not have a Linux command to display the ONIE version. This article describes how to get the same output as fw_printenv onie_version
on PowerPC platforms.
Environment
- Cumulus Linux
- x86 processor
Resolution
Until this ONIE issue is fixed, follow these steps to get the same version:
- Become the root user:
cumulus@switch:~$ sudo -i
- Make directory
/tmp/onie
:
root@switch:/# mkdir /tmp/onie
- Mount partition with
LABEL=ONIE-BOOT
to/tmp/onie
:
root@switch:/# mount LABEL=ONIE-BOOT /tmp/onie
- Look for the ONIE version:
root@switch:/# grep onie_version= /tmp/onie/grub/grub.cfg
For example:
root@switch:/# grep onie_version= /tmp/onie/grub/grub.cfg
onie_version=2015.02.01 - Unmount
/tmp/onie
:
root@switch:/# umount /tmp/onie
- Remove the temporary folder:
root@switch:/# rm -rf /tmp/onie/
- Exit root:
root@switch:/# logout cumulus@switch:~$
Comments