<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Netsight Flexview rows in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41044#M5149</link>
    <description>Hi Crymond,&lt;BR /&gt;
&lt;BR /&gt;
could you attach the final version of the flexview code?&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to do s script to view netlogin enabled port associated to switch type (or slot type) and slot number.&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Tue, 13 Sep 2016 16:01:00 GMT</pubDate>
    <dc:creator>Luca_Messori</dc:creator>
    <dc:date>2016-09-13T16:01:00Z</dc:date>
    <item>
      <title>Netsight Flexview rows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41041#M5146</link>
      <description>I am trying to create a flexview that contains the IP address, Model #, Serial #, Manufacture date, location, switch type and slot id. I have successfully gotten the all of the columns except for the slot ID to work. I have tried to use entPhysicalDescr which contains the slot number, and extremeSlotNumber &amp;amp; extremeSlotName which also contains the information. But when it is run, the slot numbers do not correspond. the tpl is as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FLEXTABLELIST version="6.3.0.174"&gt;&lt;BR /&gt;
    &lt;FLEXTABLE filterkey="NA" autoexportfilemanagement="Replace" autoexportcsvfielddelimiter="Comma" rowselectionallowed="false" autoexportfrequencyunit="Minutes" class="com.enterasys.netsight.console.client.flexview.FvTable" columnselectionallowed="false" autoexportfilename="" autoexportallowed="false" autoexportformat="HTML" filtershown="true" id="New_device_serial_number.tpl" filteroptions="{0, 4}" highlightbackground="153,255,255,255" autocreatecolumnsfrommodel="false" showhorizontallines="true" autoexportcsvtextdelineation="DQUOTE"&gt;New_device_serial_number.tpl&lt;BR /&gt;
        &lt;TABLEMODEL&gt;com.ets.nac.tables.TbModel&lt;/TABLEMODEL&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.flextable.col.IntStringComparator" id="0" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" fixed="true" hidden="true"&gt;ReqID&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::ReqID:::SNMP::ReqID&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.nac.tables.TbCompOid" id="1" sortorder="ascending" class="com.enterasys.netsight.console.client.flexview.FvColumn" fixed="true" sorted="true" modelindex="1"&gt;IP Address&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::IP Address:::SNMP::IP Address&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.nac.tables.TbCompOid" id="2" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" fixed="true" hidden="true" modelindex="2"&gt;Instance&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::Instance:::SNMP::Instance&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.flextable.col.VarStringComparator" id="106" width="219" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelindex="3"&gt;Name&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::sysName:::SNMP::SNMPW;true;15;3;true;false;1;2;0;0;0;0;0&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.flextable.col.VarStringComparator" id="100" width="196" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelindex="4"&gt;Model Name&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::entPhysicalModelName:::SNMP::SNMP;false;4;4;false;false;4;2;0;0;0;0;0&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.flextable.col.VarStringComparator" id="101" width="298" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" hidden="true" modelindex="5"&gt;Serial&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::entPhysicalSerialNum:::SNMP::SNMPW;false;4;5;true;false;4;2;0;0;0;0;0&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.nac.tables.TbCompExpression" id="102" width="222" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" filtered="true" cellrenderer="com.ets.nac.tables.TbRendNoIconExpression" modelindex="6"&gt;Serial Number&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;SNMP::EXPR;true;2;6;false;false;1;2;0;0;0;0;0&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.nac.tables.TbCompExpression" id="104" width="221" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" cellrenderer="com.ets.nac.tables.TbRendNoIconExpression" modelindex="7"&gt;Date code&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;SNMP::EXPR;true;2;7;false;false;1;2;0;0;0;0;0&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.flextable.col.VarStringComparator" id="103" width="550" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelindex="8"&gt;sysLocation&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::sysLocation:::SNMP::SNMPW;true;15;8;true;false;2;2;0;0;0;0;0&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.flextable.col.VarStringComparator" id="105" width="77" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelindex="9"&gt;Switch_Type&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::entPhysicalDescr:::SNMP::SNMP;false;4;9;false;false;4;2;0;0;0;0;0&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;COLUMN comparator="com.ets.flextable.col.VarStringComparator" id="107" width="80" sortorder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelindex="10"&gt;Slot_ID&lt;BR /&gt;
            &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
            &lt;DATAFIELD&gt;OID::extremeSlotName:::SNMP::SNMP;false;15;10;false;false;4;2;0;0;0;0;0&lt;/DATAFIELD&gt;&lt;/COLUMN&gt;&lt;BR /&gt;
        &lt;NOTES&gt;&lt;/NOTES&gt;&lt;BR /&gt;
        &lt;DATAFIELD&gt;TBLHASH::::TBLHDR::0;0;true;30;None;V.0.3.3.0;0;0;108:::IDS_Y_AXIS_LABEL::% Utilization::::GEMHASH::::00001:Date code::routine 104 serial=({ "Serial":101:[$] } );&lt;BR /&gt;
"20" + substring(serial[0],0,2) + " Week " + substring(serial[0],2,4);:::00000:Serial Number::routine 102 if { "Serial":101 } == "" then&lt;BR /&gt;
BlueText("NA")&lt;BR /&gt;
else if { "Serial":101 } == "-" then&lt;BR /&gt;
BlueText("NA")&lt;BR /&gt;
else if { "Serial":101 } == "N/A" then&lt;BR /&gt;
BlueText("NA")&lt;BR /&gt;
else { "Serial":101 }&lt;/DATAFIELD&gt;&lt;/FLEXTABLE&gt;&lt;/FLEXTABLELIST&gt;&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 20 May 2016 21:00:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41041#M5146</guid>
      <dc:creator>craymond</dc:creator>
      <dc:date>2016-05-20T21:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Netsight Flexview rows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41042#M5147</link>
      <description>So I figured out a working solution:&lt;BR /&gt;
&lt;BR /&gt;
I used the Instance column and created the following expression=&lt;BR /&gt;
&lt;BR /&gt;
row=({  "Instance":2:[$] } );&lt;BR /&gt;
IF row[0] == 1 THEN  "Stack"&lt;BR /&gt;
ELSE IF row[0] == 3 THEN "Slot-" + (row[0] - 2)&lt;BR /&gt;
ELSE IF row[0] == 5 THEN "Slot-" + (row[0] - 3)&lt;BR /&gt;
ELSE IF row[0] == 7 THEN "Slot-" + (row[0] - 4)&lt;BR /&gt;
ELSE IF row[0] == 9 THEN "Slot-" + (row[0] - 5)&lt;BR /&gt;
ELSE IF row[0] == 11 THEN "Slot-" + (row[0] - 6)&lt;BR /&gt;
ELSE IF row[0] == 13 THEN "Slot-" + (row[0] - 7)&lt;BR /&gt;
ELSE IF row[0] == 15 THEN "Slot-" + (row[0] - &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;BR /&gt;
ELSE IF row[0] == 17 THEN "Slot-" + (row[0] - 9)&lt;BR /&gt;
ELSE IF row[0] == 19 THEN "Slot-" + (row[0] - 10)&lt;BR /&gt;
ELSE IF row[0] == 21 THEN "Slot-" + (row[0] - 11)&lt;BR /&gt;
else "N/A"&lt;BR /&gt;
&lt;BR /&gt;
This gives the slot number for each of the members.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2016 00:03:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41042#M5147</guid>
      <dc:creator>craymond</dc:creator>
      <dc:date>2016-05-25T00:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Netsight Flexview rows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41043#M5148</link>
      <description>It seems the community may have let you down on this one.  Thanks for coming back to post a solution for others who may have the same question!&lt;BR /&gt;
&lt;BR /&gt;
-Drew&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2016 00:03:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41043#M5148</guid>
      <dc:creator>Drew_C</dc:creator>
      <dc:date>2016-05-25T00:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Netsight Flexview rows</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41044#M5149</link>
      <description>Hi Crymond,&lt;BR /&gt;
&lt;BR /&gt;
could you attach the final version of the flexview code?&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to do s script to view netlogin enabled port associated to switch type (or slot type) and slot number.&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Sep 2016 16:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/netsight-flexview-rows/m-p/41044#M5149</guid>
      <dc:creator>Luca_Messori</dc:creator>
      <dc:date>2016-09-13T16:01:00Z</dc:date>
    </item>
  </channel>
</rss>

