[Users] Help with IBsim
Hal Rosenstock
hal.rosenstock at gmail.com
Wed Oct 9 13:15:18 PDT 2013
The only doc is a README in the ibsim git tree (
http://git.openfabrics.org/git?p=~halr/ibsim.git;a=blob;f=README;h=8606da57cc418fbdc9233b76c99a9643f3da158d;hb=3aaf933565e0db800cd25fc332e088b7318d3571)
but it does not go into the commands.
You can see the commands by getting into ibsim and using help command:
help
sim> Commands:
!<filename> - run commands from the file
Start network
Dump ["nodeid"] : dump node information in network
Route <from-lid> <to-lid>
Link "nodeid"[port] "remoteid"[port]
ReLink "nodeid" : restore previously unconnected link(s) of the node
ReLink "nodeid"[port] : restore previously unconnected link
Unlink "nodeid" : remove all links of the node
Unlink "nodeid"[port]
Clear "nodeid" : unlink & reset all links of the node
Clear "nodeid"[port] : unlink & reset port
Guid "nodeid" : set GUID value for this node
Guid "nodeid"[port] : set GUID value for this port
Error "nodeid"[port] <error-rate> [attribute]: set error rate for
port/node, optionally for specified attribute ID
Some common attribute IDs:
NodeDescription : 16
NodeInfo : 17
SwitchInfo : 18
PortInfo : 21
PerformanceSet "nodeid"[port] [attribute].[field]=[value] : set
perf. counters values
Baselid "nodeid"[port] <lid> [lmc] : change port's lid (lmc)
Verbose [newlevel] - show/set simulator verbosity
0 - silent
1 - debug verbose
Wait <sec> : suspend simulator prompt
Attached : list attached clients
X <client num> : (force) disconnect client
#... : comment line (for scripts) - ignored
Help/?
Quit
You don't use the GUID but "nodeid" which can be seen with dump
e.g.
unlink "S-0002c9020041b6b8"[1]
would unlink that switch's port 1
"nodeid" is S for switch and H for HCA followed by - followed by node GUID.
An example for HCA is "H-0002c9030003dd10".
-- Hal
On Wed, Oct 9, 2013 at 3:30 PM, Robert LeBlanc <robert_leblanc at byu.edu>wrote:
> 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.
>
> 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.
>
> ...snip...
> Ca 2 "H-0002c903002b174a" nodeguid 2c903002b174a sysimgguid
> 2c903002b174a
> 2c903002b174b [1] "S-001397010a000043"[7] lid 75 lmc 0 smlid 52 4x
> 2.5G Active/LinkUp
> 2c903002b174c [2] "S-001397010a000043"[6] lid 76 lmc 0 smlid 52 4x
> 2.5G Active/LinkUp
> # dumped 94 nodes
>
> sim> clear 2c903002b174a
> # unlink: bad parameter in "clear 2c903002b174a
> "
> sim> clear 0002c903002b174a
> # unlink: bad parameter in "clear 0002c903002b174a
> "
> sim> clear 0x0002c903002b174a
> # unlink: bad parameter in "clear 0x0002c903002b174a
> "
> sim>
>
> 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.
>
> Thanks,
>
> Robert LeBlanc
> OIT Infrastructure & Virtualization Engineer
> Brigham Young University
>
> _______________________________________________
> Users mailing list
> Users at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/users/attachments/20131009/d4128163/attachment.html>
More information about the Users
mailing list