1 2 Previous Next 20 Replies Latest reply on Sep 19, 2019 12:01 AM by Amol Kotwal

    Device import from Entuity to TSNA

    Amol Kotwal
      Share This:

      Hello Experts,

       

      We are planning to on-board network devices from Entuity to TSNA through import job.

       

      In import job we provide below hard coded Entuity URL:-

       

      http://<entuityServer>:<entuityWebport>/EOS/cgi/GenerateReport?noCreate=1&of=xml&DeviceEx.filter=all&DeviceEx.attr=id%2Cname%2CdevPolledIpAddr%2CsysOid&DeviceEx.attr.1=%23entuity_server_info()%5B0%5D%23%2C%22serverId%22%2C%22displayType%3Dstring%22&login=<userName>:<password>

       

      Can we modify the above url to define the scope of the devices from Entuity, such as can we modify this url to import devices to TSNA from Specific Entuity view?

       

      Thanks & Regards,

      Amol Kotwal

        • 1. Re: Device import from Entuity to TSNA
          Laurence Balon

          Amol,

           

          Let me know what version of Entuity you are using. I think I may be able to give you a new report definition. You will need to know the StormWorks view id number and that is located within the UI. However, the method for getting it is different depending on which version of Entuity you are running. Once you get the version number to me, I will set something up in my lab and get back to you.

           

          Larry

          • 2. Re: Device import from Entuity to TSNA
            Amol Kotwal

            Hi Larry,

             

            Entuity Version 17.0 (P05)

            TSNA 8.9.04

             

            Thanks & Regards,
            Amol Kotwal

            • 3. Re: Device import from Entuity to TSNA
              Laurence Balon

              Amol,

               

              The report template can be modified to include a specific view. The view id is a unique number assigned to a view by Entuity when the Administrator creates the view. To find the view, in the UI, go to the Contents dashboard. Browse to the view you want to use in the report. In the example below, I have selected the Burbank office view.

               

              view_id_01.jpg

              Next, select the All Dashboards pull-down and then select the Attributes dashboard. Locate the field named View ID. The numerical value indicates the view ID for this view. This is the number you will use in the URL.

               

              view_id_02.jpg

              An example of the URL is below. The &viewId=<view_name> parameter is placed just after the output format parameter

               

              http://<entuityServer>:<entuityWebport>/EOS/cgi/GenerateReport?noCreate=1&of=xml&viewId=7&DeviceEx.filter=all&DeviceEx.attr=id%2Cname%2CdevPolledIpAddr%2CsysOid&DeviceEx.attr.1=%23entuity_server_info()%5B0%5D%23%2C%22serverId%22%2C%22displayType%3Dstring%22&login=<userName>:<password>

               


              Larry

              1 of 1 people found this helpful
              • 4. Re: Device import from Entuity to TSNA
                Amol Kotwal

                Great!!!

                 

                Thanks Larry for the information.


                Thanks & Regards,
                Amol Kotwal

                • 5. Re: Device import from Entuity to TSNA
                  Amol Kotwal

                  Hi Larry,

                   

                  In this case then we have to create multiple Import tasks in TSNA per Entuity remote pollers? or we can do only one import job with Entuity Consolidation Server?

                   

                  Thanks & Regards,

                  Amol Kotwal

                  • 6. Re: Device import from Entuity to TSNA
                    Laurence Balon

                    Amol,

                     

                    This report template uses Entuity's old Flex reporting engine which does not allow for multi-server reports. You must install the template on all polling servers.

                     

                    Larry

                    1 of 1 people found this helpful
                    • 7. Re: Device import from Entuity to TSNA
                      Amol Kotwal

                      Thanks Larry for the information.

                       

                      So this means we need to create import job for all the servers where devices from Specific view resides?

                       

                      Thanks & Regards,
                      Amol Kotwal

                      • 8. Re: Device import from Entuity to TSNA
                        Laurence Balon

                        Amol,

                         

                        That is correct.

                         

                        Larry

                        1 of 1 people found this helpful
                        • 9. Re: Device import from Entuity to TSNA
                          Amol Kotwal

                          Thanks Larry for the confirmation.

                           

                          Thanks & Regards,
                          Amol Kotwal

                          • 10. Re: Device import from Entuity to TSNA
                            Amol Kotwal

                            Hi Larry,

                             

                            I'm updating the provided url as per our environment, however I'm unable to generate xml when hitting this url in the browser. I'm getting logged into Entuity. how can we verify this is working as expected before adding it to import job in TSNA?

                             

                            http://10.20.110.30:80/EOS/cgi/GenerateReport?noCreate=1&of=xml&viewId=4&DeviceEx.filter=all&DeviceEx.attr=id%2Cname%2CdevPolledIpAddr%2CsysOid&DeviceEx.attr.1=%23entuity_server_info()%5B0%5D%23%2C%22serverId%22%2C%22displayType%3Dstring%22&login=username:password

                             

                            Thanks & Regards,
                            Amol Kotwal

                            • 11. Re: Device import from Entuity to TSNA
                              Laurence Balon

                              Amol,

                               

                              You should be getting back the xml. I've pasted the URL into my browser and just changed the base URL to our demo Entuity server and the username/password to the the proper username and password. It returns the expected output (below). Insure that the viewId value is valid for your server. In the request in your previous reply, the viewId=4 which is the view ID for the By Office/Tampa Office subview. I have verified this by looking at the view attributes in the web UI:

                               

                              View_id_04.jpg

                               

                              XML Output:

                               

                              <instance name="report">

                               

                              <instance name="header" id="0.0">

                               

                               

                              <property name="id" displayType="integer-pair">0.0</property>

                               

                              <property name="title" displayType="string">Flex Report</property>

                              <property name="start-timestamp" displayType="unix-time">1560052800</property>

                              <property name="end-timestamp" displayType="unix-time">1560139200</property>

                              <property name="start-time" displayType="asc-time">Sun Jun 09 00:00:00 2019</property>

                              <property name="end-time" displayType="asc-time">Mon Jun 10 00:00:00 2019</property>

                              <property name="run-time" displayType="asc-time">Mon Jun 10 10:57:17 2019</property>

                              <property name="view" displayType="view">By Office/Tampa Office</property>

                              <property name="page-size" displayType="string">letter</property>

                              <property name="page-style" displayType="string">standard</property>

                              <property name="page-orientation" displayType="string">portrait</property>

                              <property name="company-name" displayType="string"/>

                              <property name="company-logo-url" displayType="string">/EOS/reporting/stylesheets/default.gif</property>

                              <property name="primetime" is-null="T" displayType="string"/>

                              </instance>

                               

                              <property name="content">

                               

                               

                              <instance name="content" id="0.0">

                               

                               

                              <property name="id" displayType="integer-pair">0.0</property>

                               

                               

                              <property name="Fully Managed Devices" id="0.0" displayType="string" isInstanceList="1">

                               

                               

                              <instance name="Fully Managed Device" id="0.862">

                               

                               

                              <property name="id" displayType="integer-pair">0.862</property>

                               

                              <property name="StormWorks ID" displayType="uint32">862</property>

                              <property name="Name" displayType="string">fl01</property>

                              <property name="Polled IP Address" displayType="string">10.12.1.2</property>

                              <property name="System Object Identifier" displayType="string">.1.3.6.1.4.1.9.1.577</property>

                              <property name="serverId" displayType="string">5ba829fa-86d9-4246-b4ce-24cc896180c0</property>

                              </instance>

                               

                              <instance name="Fully Managed Device" id="0.863">

                               

                               

                              <property name="id" displayType="integer-pair">0.863</property>

                               

                              <property name="StormWorks ID" displayType="uint32">863</property>

                              <property name="Name" displayType="string">flfw</property>

                              <property name="Polled IP Address" displayType="string">10.13.1.1</property>

                              <property name="System Object Identifier" displayType="string">.1.3.6.1.4.1.94.1.21.2.1.137</property>

                              <property name="serverId" displayType="string">5ba829fa-86d9-4246-b4ce-24cc896180c0</property>

                              </instance>

                               

                              <instance name="Fully Managed Device" id="0.864">

                               

                               

                              <property name="id" displayType="integer-pair">0.864</property>

                               

                              <property name="StormWorks ID" displayType="uint32">864</property>

                              <property name="Name" displayType="string">fl02</property>

                              <property name="Polled IP Address" displayType="string">10.13.1.2</property>

                              <property name="System Object Identifier" displayType="string">.1.3.6.1.4.1.2011.10.1.11</property>

                              <property name="serverId" displayType="string">5ba829fa-86d9-4246-b4ce-24cc896180c0</property>

                              </instance>

                               

                              <instance name="Fully Managed Device" id="0.865">

                               

                               

                              <property name="id" displayType="integer-pair">0.865</property>

                               

                              <property name="StormWorks ID" displayType="uint32">865</property>

                              <property name="Name" displayType="string">flwc01</property>

                              <property name="Polled IP Address" displayType="string">10.13.48.14</property>

                              <property name="System Object Identifier" displayType="string">.1.3.6.1.4.1.14823.1.1.9999</property>

                              <property name="serverId" displayType="string">5ba829fa-86d9-4246-b4ce-24cc896180c0</property>

                              </instance>

                              </property>

                              </instance>

                              </property>

                              </instance>

                               

                              Larry

                              1 of 1 people found this helpful
                              • 12. Re: Device import from Entuity to TSNA
                                Amol Kotwal

                                Hi Larry,

                                 

                                Thanks for the information.

                                 

                                I'm trying to import device into TSNA 8.9.04 from Entuity 17.0 P06 but getting below error:-

                                 

                                Check source file format and name, and file contents: ErrorException: SAXParseException: Premature end of file.

                                 

                                I have provided below in the source url:-

                                 

                                http://ENA01/EOS/cgi/GenerateReport?noCreate=1&of=xml&viewId=1&DeviceEx.filter=all&DeviceEx.attr=id%2Cname%2CdevPolledIpAddr%2CsysOid&DeviceEx.attr.1=%23entuity_server_info()%5B0%5D%23%2C%22serverId%22%2C%22displayType%3Dstring%22&login=abc:abc123

                                 

                                can you help on this?

                                 

                                Thanks & Regards,
                                Amol Kotwal

                                • 13. Re: Device import from Entuity to TSNA
                                  Matt Laurenceau

                                  Thanks, also looping in TrueSight Network Automation community members

                                  1 of 1 people found this helpful
                                  • 14. Re: Device import from Entuity to TSNA
                                    Laurence Balon

                                    Thanks Matt. I think someone from the TSNA side will need to look at this. I've run the report on my 17.0P06 Entuity lab system and I get a valid XML output from the report URL that Amol posted.

                                     

                                    Larry

                                    2 of 2 people found this helpful
                                    1 2 Previous Next