Custom Flexview returns null values in Netsight web page (but works in console)

  • 0
  • 1
  • Problem
  • Updated 2 years ago
  • Solved
Hello Extreme Friends,

I was fooling around with trying to add some Liebert UPS's to Netsight for monitoring. I did the process of importing the MIB's and adding the devices. But the default view doesn't really show much of anything.

So now I am working on a custom Flexview, which is actually quite easy to do. BUT ...

I can load up my Flexview in the Netsight Console, connect to the device, hit Retrieve, and wallah' it works. Yet when I go into the Netsight webpage, and select to view the same device with the Flexview I created, it returns all null values in the fields (a hyphen in place of the data).

Anyone else with this issue, or have an idea of what I did wrong?

I followed this KB to get the Flexview copied from my PC over to the server. Is there an additional step somewhere?

Here is the Flexview TBL file for the sake of examination ...


<?xml version="1.0" encoding="UTF-8"?>
<flextablelist version="7.1.1.9">
    <flextable autoExportCsvTextDelineation="DQUOTE" autoExportFrequencyUnit="Minutes" autoExportFormat="HTML" showHorizontalLines="true" autoExportFilename="" autoExportFileManagement="Replace" highlightBackground="153,204,255,255" class="com.enterasys.netsight.console.client.flexview.FvTable" id="UPS_IS-WEBLB" columnSelectionAllowed="false" autoCreateColumnsFromModel="false" autoExportCsvFieldDelimiter="Comma">UPS_IS-WEBLB
        <tableModel>com.ets.nac.tables.TbModel</tableModel>
        <column id="0" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" fixed="true" hidden="true" cellRenderer="com.ets.nac.tables.TbRendCell">ReqID
            <notes></notes>
            <dataField>OID::ReqID:::SNMP::ReqID</dataField></column>
        <column id="1" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" fixed="true" cellRenderer="com.ets.nac.tables.TbRendCell" modelIndex="1">IP Address
            <notes></notes>
            <dataField>OID::IP Address:::SNMP::IP Address</dataField></column>
        <column id="2" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" fixed="true" cellRenderer="com.ets.nac.tables.TbRendCell" modelIndex="2">Instance
            <notes></notes>
            <dataField>OID::Instance:::SNMP::Instance</dataField></column>
        <column id="100" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="3">Description
            <notes></notes>
            <dataField>OID::sysDescr:::SNMP::SNMP;true;15;3;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="101" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="4">Name
            <notes></notes>
            <dataField>OID::sysName:::SNMP::SNMPW;true;15;4;true;false;1;2;0;0;0;0;0</dataField></column>
        <column id="102" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="5">Location
            <notes></notes>
            <dataField>OID::sysLocation:::SNMP::SNMPW;true;15;5;true;false;1;2;0;0;0;0;0</dataField></column>
        <column id="103" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="6">Contact
            <notes></notes>
            <dataField>OID::sysContact:::SNMP::SNMPW;true;15;6;true;false;1;2;0;0;0;0;0</dataField></column>
        <column id="104" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="7">Manufacturer
            <notes></notes>
            <dataField>OID::upsIdentManufacturer:::SNMP::SNMP;true;15;7;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="105" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="8">Model
            <notes></notes>
            <dataField>OID::upsIdentModel:::SNMP::SNMP;true;15;8;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="106" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="9">Software Version
            <notes></notes>
            <dataField>OID::upsIdentUPSSoftwareVersion:::SNMP::SNMP;true;15;9;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="107" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="10">Agent Software Version
            <notes></notes>
            <dataField>OID::upsIdentAgentSoftwareVersion:::SNMP::SNMP;true;15;10;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="108" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="11">UPS Name
            <notes></notes>
            <dataField>OID::upsIdentName:::SNMP::SNMPW;true;15;11;true;false;1;2;0;0;0;0;0</dataField></column>
        <column id="109" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="12">Battery Status
            <notes></notes>
            <dataField>OID::upsBatteryStatus:::SNMP::SNMP;true;2;12;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="110" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="13">Seconds On Battery
            <notes></notes>
            <dataField>OID::upsSecondsOnBattery:::SNMP::SNMP;true;2;13;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="111" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="14">Estimated Minutes Remaining
            <notes></notes>
            <dataField>OID::upsEstimatedMinutesRemaining:::SNMP::SNMP;true;2;14;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="112" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="15">Estimated Charge Remaining
            <notes></notes>
            <dataField>OID::upsEstimatedChargeRemaining:::SNMP::SNMP;true;2;15;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="113" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="16">Battery Voltage
            <notes></notes>
            <dataField>OID::upsBatteryVoltage:::SNMP::SNMP;true;2;16;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="114" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="17">Battery Current
            <notes></notes>
            <dataField>OID::upsBatteryCurrent:::SNMP::SNMP;true;2;17;false;false;1;2;0;0;0;0;0</dataField></column>
        <column id="115" sortOrder="descending" class="com.enterasys.netsight.console.client.flexview.FvColumn" modelIndex="18">BatteryTemperature
            <notes></notes>
            <dataField>OID::upsInputLineBads:::SNMP::SNMP;true;65;18;false;false;1;2;0;0;0;0;0</dataField></column>
        <notes>For use with larger Liebert/Emerson/VertivCo UPS systems with monitoring card IS-WEBLB.
</notes>
        <dataField>TBLHASH::::TBLHDR::0;0;true;30;None;V.0.3.3.0;0;0;116</dataField></flextable></flextablelist>
Photo of Steve Ballantyne

Steve Ballantyne

  • 5,806 Points 5k badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Murphy, Daniel

Murphy, Daniel, Employee

  • 632 Points 500 badge 2x thumb
FlexViews use MIB OID Names as well as type definitions in the MIB to render and set values.
The FlexView editor works with MIBs on the client and creates FlexViews on the client.

if you want to run these from the server in OneView not just the FlexViews but also the MIBs are required on the server.

Please keep the 'new' MIBs in 'myMibs' and same with the FlexViews.
Realize that adding MIBs to the server can cause issues so by keeping the MIBs in there only directory you can quickly recover if there is a problem.

A server restart will also be required.
Photo of Steve Ballantyne

Steve Ballantyne

  • 5,806 Points 5k badge 2x thumb
... I think I know what I did. Don't anybody waste any more time on me for now.

Update coming soon!  :-)
Photo of Steve Ballantyne

Steve Ballantyne

  • 5,806 Points 5k badge 2x thumb
OK - it turns out, I still need help. I thought perhaps I was referencing MIB objects with the same name that are higher up in the tree. But this time I went back and forth with the MIB crawler and verified that the path is one of the additional MIB files.

Still comes up with "-" for all fields except IP address.
Photo of Murphy, Daniel

Murphy, Daniel, Employee

  • 632 Points 500 badge 2x thumb
Looks like you have default settings on your server.
OneView - Administration - Options - SNMP  
check box "User MyMibs Directory on the Server [x]  
I also believe this requires a server restart to load the MIBs.
Note:  if server.log contains SNMP MIB messages there I would fix those or not use MIBs until that is addressed.
Photo of Murphy, Daniel

Murphy, Daniel, Employee

  • 632 Points 500 badge 2x thumb
Photo of Steve Ballantyne

Steve Ballantyne

  • 5,806 Points 5k badge 2x thumb
Right on Daniel, that missing checkbox was my problem. Checked it, restarted, and now all the values are populating.

Could someone add this note to the KB? I would have never thought to come looking for that checkbox.

Thanks for the help!

** EDIT: I heeded your warning and checked /usr/local/Extreme_Networks/NetSight/appdata/logs/server.log for errors and didn't find any ... looks like I am in the clear **
(Edited)
Photo of Rich Upshaw

Rich Upshaw

  • 1,140 Points 1k badge 2x thumb
Steve, You got your Liebert MIB to work then?  The set kept breaking NetSight (EWC) for me.  Did you need to load and compile a bunch of them in sequence?  I'm interested in what you did.  Thanks!
(Edited)
Photo of Steve Ballantyne

Steve Ballantyne

  • 5,806 Points 5k badge 2x thumb
Funny that you should ask ... now that I got it working I went back and added more fields to my Flexviews. And now when I apply it to a device, I am seeing all hyphens with the exception of two random fields. When I use the same Flexview in the Java console, it all displays just fine. It makes me think that something is being returned that Netsight can't parse or process. Perhaps there is some sort of extra spacing or hidden special characters in there?