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

This support portal has moved

Cumulus Networks is now part of the NVIDIA Networking Business Unit! The NVIDIA Cumulus Global Support Services (GSS) team has merged its operations with the NVIDIA Mellanox support services team.

You can access NVIDIA Cumulus support content from the Mellanox support portal.

You open and update new cases on the Mellanox support portal. Any previous cases that have been closed have been migrated to the Mellanox support portal.

Cases that are still open on the Cumulus portal will continue to be managed on the Cumulus portal. Once these cases close, they will be moved to the Mellanox support portal.

Powered by Zendesk