Simulator Discussions

Re: Changing Serial Num on Simulator

reide
3,597 Views

I'll explain the ,serialno file in a minute, but as for the 'serial number is corrupt' message, I'm not sure why you're getting that.  Since this appears to be a new sim you created, I'd suggest you blow-away this simulator install directory, and then re-install your simulator from scratch.

In a clustered simulator, the ,serialno file contains two numbers.  The first entry is the System ID of *this* node (i.e. /sim/node1) , and the second entry is the System ID of its cluster partner (i.e. /sim/node2).    If you look at the ,serialno file for the cluster partner, it will have the exact same two numbers, but their order is reversed because it lists *its* System ID first.   So, you're going to have to edit the ,serialno file for both nodes of the cluster to make the System IDs unique, and the numbers have to match in both ,serialno files.  For example:

# cat /sim/node1/,serialno

99900111

99900222

# cat /sim/node2/,serialno

99900222

99900111

Note:  Remember that the first entry in each ,serialno file refers to that simulator's System ID.  The second entry is its partner's System ID.   That why the same numbers exist in both files, but the order they're listed in is reversed.

For the ,sys-serial-num file, you only need one entry.  This entry is the serial number of this specific simulator node.  Even if its part of a cluster, you only need one entry.  For example:

# cat /sim/node1/,sys-serial-num

1085111

# cat /sim/node2/,sys-serial-num

1085222

Once you have these files modified, shut down your simulators and then re-start them.

2 REPLIES 2

hanness
3,597 Views

Thank you so much. I won't have a chance to try this untill this evening now, but I'll let yoou know how it went. It sounds like I have everything I need now.

- Hannes

hanness
3,597 Views

Okay - I found the problem I was having. As I should have suspected, it was use error on my part 🙂

I was editing the ,serialno outside of Linux using Notepad and Wordpad, then dragging and dropping it back into my Linux VM (Yes, I'm more comfortable in Windows). I finally used vi to open the file and noticed the carriage return that is not in the original file. A quick edit to take out the carriage return and I'm now up and working.

Thank you for your help!

- Hannes

Public