[ofa-general] RE: [ewg] RE: OFED 1.2 beta blocking bugs

Roland Dreier rdreier at cisco.com
Thu Mar 8 10:39:29 PST 2007


 > No standalone script, sorry.  But it's simple to automate with expect or
 > autoexpect using the switch CLI.

Or you can use SNMP to set the interface admin status.  Something like
this one-liner for example (using snmpset from the NET SNMP package):

    snmpset -v2c -cprivate <switch IP> interfaces.ifTable.ifEntry.ifAdminStatus.<port #> = 2

where port # for an IB port is the real physical port # + 64 (eg port
19 would use port number 83 in the snmp request).

(And yes this is another advantage of a managed switch beyond the
embedded SM :)

 - R.




More information about the ewg mailing list