DX NetOps

 View Only
  • 1.  Customize OneClick - adding a column to display one value of a table

    Posted May 04, 2016 09:50 PM

    Hi (Spectrum 10.1.1)

    I've mapped an attribute in Spectrum for hrSWInstalledName (1.3.6.1.2.1.25.6.3.1.2) (mapped to 0xfff0051) so I can get all the installed components (this is against the host-resources-mib)

     

    Next step is I want to have a column in oneclick which displays the instance .2 of this attribute as a selectable column as thats the table entry I want

     

    What I have so far is

    <column id="column-juniperOS-config"

            xmlns ="http://www.aprisma.com"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="http://www.aprisma.com

                                ../../common/schema/column-config.xsd">

     

      <name>Juniper OS</name>

     

      <content>

        <attribute>0xfff0051</attribute>

      </content>

     

    </column>

     

    Which obviously wont show a particular instance

    So I'm trying to work out what to add to only display instance 2 in this case

    I've looked at a render

     

      <content>

        <attribute>0xfff0051</attribute>

            <renderer>

                 <param name="oid">1.3.6.1.2.1.25.6.3.1.2.2</param>

                 com.aprisma.spectrum.app.util.render.ListInstanceRenderer

            </renderer>

      </content>

     

    but I get nothing with that

    Also tried

     

      <content>

        <attribute>0xfff0051</attribute>

            <renderer>

                 <param name="oid">2</param>

                 com.aprisma.spectrum.app.util.render.ListInstanceRenderer

            </renderer>

      </content>

     

    Again no joy

     

    Can I refer to the OID directly in a Content call - so replace the <attribute> with that OID?

    Or can someone see anything obvious in what I am missing in the part calling the index ref?

     

    Thanks



  • 2.  Re: Customize OneClick - adding a column to display one value of a table
    Best Answer

    Posted May 09, 2016 04:43 PM

    I used the following in the lab with success:

     

    <column>

    <content>

    <attribute>0xfff00005</attribute>

    <renderer>

    com.aprisma.spectrum.app.util.render.ListInstanceRenderer

    <param name="oid">2</param>

    </renderer>

    </content>

    </column>



  • 3.  Re: Customize OneClick - adding a column to display one value of a table

    Posted May 10, 2016 05:51 PM

    Perfect, thanks for that

    Now opens up a who new set of views and dashboards in my  environment



  • 4.  Re: Customize OneClick - adding a column to display one value of a table

    Posted Jan 14, 2017 03:56 PM

    Hi all, I am trying  add a column in the Alarm tab from the CA SystemEDGE agent attribute, this attribute is logMonitorDescription with oid 1.3.6.1.4.1.546.11.1.1.10.  

     

    Note: All alarms depending on the index have a different description.

     

    In the tab Attributes in CA Spectrum I see this attribute is a table with some values or index.

     

     

    With this code shows the image CA Spectrum logMonitorDescr Alarm.png

     

    <?xml version="1.0" encoding="utf-8"?>
    <table idref="alarm-table-config"
    xmlns="http://www.aprisma.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.aprisma.com
    ../../common/schema/table-config.xsd">

    <column-list>
    <column>
    <name>Monitor Description</name>
    <content>
    <attribute>0x11611a1</attribute>
    </content>
    </column>
    </column-list>
    </table>

     

     

    But when I insert the following code does not show the description.

    <?xml version="1.0" encoding="utf-8"?>
    <table idref="alarm-table-config"
    xmlns="http://www.aprisma.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.aprisma.com
    ../../common/schema/table-config.xsd">

    <column-list>
    <column>
    <name>Monitor Description</name>
    <content>
    <attribute>0x11611a1</attribute>
    <renderer>
    com.aprisma.spectrum.app.util.render.ListInstanceRenderer
    <param name="oid">1.3.6.1.4.1.546.11.1.1.10</param>
    </renderer>
    </content>
    </column>
    </column-list>
    </table>

     

     

    Could you help me please?