<div dir="ltr">Thank you Hal and Al, I did try the nodeid with the H-xxx, but the trick was the quotes. I'm used to only using quotes when there are spaces in argument, I'll have to remember this quirk.<div><br></div>
<div>As far as the fifo (not my strong point), I suppose I would just set up a fifo in the shell, start up ibsim and then !<name of fifo> and then echo/write the commands into the fifo. Does that sound right?</div><div>
<br></div><div>Thanks again!</div></div><div class="gmail_extra"><br clear="all"><div><div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Robert LeBlanc</span><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">OIT Infrastructure & Virtualization Engineer</span><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Brigham Young University</span></div>
<br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 2:15 PM, Hal Rosenstock <span dir="ltr"><<a href="mailto:hal.rosenstock@gmail.com" target="_blank">hal.rosenstock@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>The only doc is a README in the ibsim git tree (<a href="http://git.openfabrics.org/git?p=~halr/ibsim.git;a=blob;f=README;h=8606da57cc418fbdc9233b76c99a9643f3da158d;hb=3aaf933565e0db800cd25fc332e088b7318d3571" target="_blank">http://git.openfabrics.org/git?p=~halr/ibsim.git;a=blob;f=README;h=8606da57cc418fbdc9233b76c99a9643f3da158d;hb=3aaf933565e0db800cd25fc332e088b7318d3571</a>) but it does not go into the commands.</div>
<div> </div><div>You can see the commands by getting into ibsim and using help command:</div><div>help<br>sim> Commands:<br> !<filename> - run commands from the file<br> Start network<br> Dump ["nodeid"] : dump node information in network<br>
Route <from-lid> <to-lid><br> Link "nodeid"[port] "remoteid"[port]<br> ReLink "nodeid" : restore previously unconnected link(s) of the node<br> ReLink "nodeid"[port] : restore previously unconnected link<br>
Unlink "nodeid" : remove all links of the node<br> Unlink "nodeid"[port]<br> Clear "nodeid" : unlink & reset all links of the node<br> Clear "nodeid"[port] : unlink & reset port<br>
Guid "nodeid" : set GUID value for this node<br> Guid "nodeid"[port] : set GUID value for this port<br> Error "nodeid"[port] <error-rate> [attribute]: set error rate for<br>
port/node, optionally for specified attribute ID<br> Some common attribute IDs:<br> NodeDescription : 16<br> NodeInfo : 17<br>
SwitchInfo : 18<br> PortInfo : 21<br> PerformanceSet "nodeid"[port] [attribute].[field]=[value] : set perf. counters values<br> Baselid "nodeid"[port] <lid> [lmc] : change port's lid (lmc)<br>
Verbose [newlevel] - show/set simulator verbosity<br> 0 - silent<br> 1 - debug verbose<br> Wait <sec> : suspend simulator prompt<br> Attached : list attached clients<br>
X <client num> : (force) disconnect client<br> #... : comment line (for scripts) - ignored<br> Help/?<br> Quit<br></div><div>You don't use the GUID but "nodeid" which can be seen with dump</div>
<div> </div><div>e.g.</div><div> </div><div>unlink "S-0002c9020041b6b8"[1]</div><div> </div><div>would unlink that switch's port 1</div><div> </div><div>"nodeid" is S for switch and H for HCA followed by - followed by node GUID. An example for HCA is "H-0002c9030003dd10".</div>
<div> </div><div>-- Hal</div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Oct 9, 2013 at 3:30 PM, Robert LeBlanc <span dir="ltr"><<a href="mailto:robert_leblanc@byu.edu" target="_blank">robert_leblanc@byu.edu</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I'm not a programmer, so please excuse me if this should be obvious. I was able to get IBsim running with the topology from our IB fabric loaded, I've got opensm running against IBsim and doing things like ibtracert gives back the exact results as we get on our IB fabric.<div>
<br></div><div>When trying to do commands in IBsim like clear to reset the links for a node, I can't find the correct nodeid vaule to pass in. Here is a dump and what I've tried.</div><div><br></div><div>...snip...</div>
<div><div>Ca 2 "H-0002c903002b174a" nodeguid 2c903002b174a sysimgguid 2c903002b174a</div><div>2c903002b174b [1] "S-001397010a000043"[7] lid 75 lmc 0 smlid 52 4x 2.5G Active/LinkUp</div>
<div>2c903002b174c [2] "S-001397010a000043"[6] lid 76 lmc 0 smlid 52 4x 2.5G Active/LinkUp</div><div># dumped 94 nodes</div><div><br></div><div>sim> clear 2c903002b174a</div><div># unlink: bad parameter in "clear 2c903002b174a</div>
<div>"</div><div>sim> clear 0002c903002b174a </div><div># unlink: bad parameter in "clear 0002c903002b174a</div><div>"</div><div>sim> clear 0x0002c903002b174a</div><div># unlink: bad parameter in "clear 0x0002c903002b174a</div>
<div>"</div><div>sim> </div><div><br></div><div>If there is some documentation available for IBsim? I was not able to find it through searching on Google. I am also interested in setting up a fifo so that I can use a script to pass in fabric changes, then run some commands, make fabric changes, run commands, rinse and repeat. I could use some help/documentation for that as well.</div>
<div><br></div><div>Thanks,</div><div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><span style="font-family:arial,sans-serif;font-size:13px">Robert LeBlanc</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">OIT Infrastructure & Virtualization Engineer</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">Brigham Young University</span></div>
</div></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openfabrics.org" target="_blank">Users@lists.openfabrics.org</a><br>
<a href="http://lists.openfabrics.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openfabrics.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>