When running 'sim affinity -l' command, the following error is displayed: SIM: failed to open cpuid file

book

Article ID: 167884

calendar_today

Updated On:

Products

XOS

Issue/Introduction

When running the sim affinity -l command, the following error is displayed.

SIM failed to open cpuid file

Resolution

Workaround

The file /tmp/sim_cpuids.tmp, which contains the CPU IDs was either removed or overwritten. 

This /tmp/sim_cpuids.tmp file is recreated automatically during a reboot. 

To get the list of CPU IDs, issue the following command : 

# $FW_BOOT_DIR/fwboot cpuid 

The output should be similar to this : 
3 2 1 0 

If the output is correct, then recreate the file manually without rebooting by issuing the following command : 

# $FW_BOOT_DIR/fwboot cpuid > /tmp/sim_cpuids.tmp