{"id":422,"date":"2011-01-28T00:30:38","date_gmt":"2011-11-09T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/physical-pci-card-position-in-sunfire-e12ke15ke20ke25k\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-11-09T13:51:50","slug":"physical-pci-card-position-in-sunfire-e12ke15ke20ke25k","status":"publish","type":"post","link":"\/blog\/index.php\/physical-pci-card-position-in-sunfire-e12ke15ke20ke25k\/","title":{"rendered":"Physical PCI card position in sunfire E12k\/E15k\/E20k\/E25k"},"content":{"rendered":"<p>if you need to know where, for instance is &#8220;qfe0&#8221; in your e25k, so someone can connect a cable there&#8230; you can use sun<br \/>\ndoc #202571, which i have transformed to a script called &#8220;pos.ksh&#8221;:<br \/>\n#!\/bin\/ksh<br \/>\necho &#8220;Expander Slot Device&#8221;<br \/>\ngrep pci \/etc\/path_to_inst |while read nic;do<br \/>\nA=`echo $nic | awk -F&#8221;@&#8221; &#8216;{ print $2 }&#8217; | awk -F&#8221;,&#8221; &#8216;{print $1}&#8217;`<br \/>\nO=`echo $nic | awk -F&#8221;,&#8221; &#8216;{print $2}&#8217;| awk -F&#8221;\/&#8221; &#8216;{ print $1 }&#8217;`<br \/>\nT1=`grep &#8221; $A&#8221; t1.txt`<br \/>\nE=`echo $T1 | awk &#8216;{ print $2 }&#8217;`<br \/>\nC=`echo $T1 | awk &#8216;{ print $1 }&#8217;`<br \/>\nS=`grep &#8220;^$C&#8230;$O&#8221; t2.txt | awk &#8216;{ print $2 }&#8217;`<br \/>\necho &#8220;$E $S $nic&#8221;<br \/>\ndone<br \/>\nYou will need t1.txt:<br \/>\nIOC Expander AgentID<br \/>\n0 0 1c(28)<br \/>\n1 0 1d(29)<br \/>\n0 1 3c(60)<br \/>\n1 1 3d(61)<br \/>\n0 2 5c(92)<br \/>\n1 2 5d(93)<br \/>\n0 3 7c(124)<br \/>\n1 3 7d(125)<br \/>\n0 4 9c(156)<br \/>\n1 4 9d(157)<br \/>\n0 5 bc(188)<br \/>\n1 5 bd(189)<br \/>\n0 6 dc(220)<br \/>\n1 6 dd(221)<br \/>\n0 7 fc(252)<br \/>\n1 7 fd(253)<br \/>\n0 8 11c(284)<br \/>\n1 8 11d(285)<br \/>\n0 9 13c(316)<br \/>\n1 9 13d(317)<br \/>\n0 10 15c(348)<br \/>\n1 10 15d(349)<br \/>\n0 11 17c(380)<br \/>\n1 11 17d(381)<br \/>\n0 12 19c(412)<br \/>\n1 12 19d(413)<br \/>\n0 13 1bc(444)<br \/>\n117\/433<br \/>\n1 13 1bd(445)<br \/>\n0 14 1dc(476)<br \/>\n1 14 1dd(477)<br \/>\n0 15 1fc(508)<br \/>\n1 15 1fd(509)<br \/>\n0 16 21c(540)<br \/>\n1 16 21d(541)<br \/>\n0 17 23c(572)<br \/>\n1 17 23d(573)<br \/>\nand t2.txt<br \/>\nIOC Slot Offset<br \/>\n0 0 600000<br \/>\n0 1 700000<br \/>\n1 2 600000<br \/>\n1 3 700000<br \/>\nSo basically, inside any given domain you can do:<br \/>\n#.\/pos.ksh &gt; slotmap.txt<br \/>\nthen, if you want to know where your Quad Fast Ethernet &#8220;qfe&#8221; cards are, you can do:<br \/>\nbash-2.03# egrep &#8220;qfe|Expander&#8221; slotmap.txt<br \/>\nExpander Slot Device<br \/>\n2 3 &#8220;\/pci@5d,700000\/pci@1\/SUNW,qfe@0,1&#8221; 0 &#8220;qfe&#8221;<br \/>\n2 3 &#8220;\/pci@5d,700000\/pci@1\/SUNW,qfe@1,1&#8221; 1 &#8220;qfe&#8221;<br \/>\n2 3 &#8220;\/pci@5d,700000\/pci@1\/SUNW,qfe@2,1&#8221; 2 &#8220;qfe&#8221;<br \/>\n2 3 &#8220;\/pci@5d,700000\/pci@1\/SUNW,qfe@3,1&#8221; 3 &#8220;qfe&#8221;<br \/>\n17 3 &#8220;\/pci@23d,700000\/pci@1\/SUNW,qfe@0,1&#8221; 4 &#8220;qfe&#8221;<br \/>\n17 3 &#8220;\/pci@23d,700000\/pci@1\/SUNW,qfe@1,1&#8221; 5 &#8220;qfe&#8221;<br \/>\n17 3 &#8220;\/pci@23d,700000\/pci@1\/SUNW,qfe@2,1&#8221; 6 &#8220;qfe&#8221;<br \/>\n17 3 &#8220;\/pci@23d,700000\/pci@1\/SUNW,qfe@3,1&#8221; 7 &#8220;qfe&#8221;<br \/>\nAnd you&#8217;ll find out you have 2 quads, one is at IOBoard 2 slot 3, the other is at IOBoard 17 slot 3<br \/>\nA typical IOBoard has 4 slots, numbered from 0-3,<br \/>\n|&#8212;&#8211;|&#8212;&#8211;|<br \/>\n| | |<br \/>\n| slot|slot |<br \/>\n| 3 | 1 |<br \/>\n| | |<br \/>\n| | |<br \/>\n|&#8212;&#8211;|&#8212;&#8211;|<br \/>\n| | |<br \/>\n| | |<br \/>\n| slot|slot |<br \/>\n| 2 | 0 |<br \/>\n| | |<br \/>\n|&#8212;&#8211;|&#8212;&#8211;|<br \/>\n118\/433<br \/>\nSo Both cards are at the upper left, one on IOBoard 2 the other on IOBoard 17<br \/>\nQfe0 is at IOBoard 2 slot 3<br \/>\n119\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>if you need to know where, for instance is &#8220;qfe0&#8221; in your e25k, so someone can connect a cable there&#8230; you can use sun doc #202571, which i have transformed to a script called &#8220;pos.ksh&#8221;: #!\/bin\/ksh echo &#8220;Expander Slot Device&#8221; grep pci \/etc\/path_to_inst |while read nic;do A=`echo $nic | awk -F&#8221;@&#8221; &#8216;{ print $2 }&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-422","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/422\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}