Checking ONIE Version on x86 Platforms

Follow

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:

  1. Become the root user:
    cumulus@switch:~$ sudo -i
  2. Make directory /tmp/onie:
    root@switch:/# mkdir /tmp/onie 
  3. Mount partition with LABEL=ONIE-BOOT to /tmp/onie:
    root@switch:/# mount LABEL=ONIE-BOOT /tmp/onie
  4. 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
  5. Unmount /tmp/onie:
    root@switch:/# umount /tmp/onie
  6. Remove the temporary folder:
    root@switch:/# rm -rf /tmp/onie/
  7. Exit root:
    root@switch:/# logout
    cumulus@switch:~$
Have more questions? Submit a request

Comments

Powered by Zendesk