Jim,

Thanks again!
I will open a case. At the end I will share the result on our list.
Best Regards,



Rogério Ferreira da Cunha
------------------------------------------------------------------------------

TIC/ADS-TC/ORS
Consultor
Tel: +55-21-3487-6848  Rota:  818-6848
[email protected]





De:     "Pfleger, Jim" <[email protected]>
Para:   "spectrum" <[email protected]>
Data:   28/10/2010 12:55
Assunto:        Re: [spectrum] List devices, ports and ip addresses



Rogério-

I tried the example you provided, and got the same result. I also tried
just adding a new field directly to the PortExportAttributes like this:

<PortExportAttributes export_changed_attribute_only="false">
        <intf_name attribute_id="0x1006e" />
...
</ PortExportAttributes>

But that didn’t work either.

The manual indicates that you can use different values for the
identifer_name and identifier_value in the <Port> tag when importing, but
it doesn’t indicate how to change these when exporting. I’m afraid your
best bet at this point is to contact support and find out how to do this.

Sorry,
Jim



On 10/28/10 4:29 AM, "[email protected]" <[email protected]>
wrote:

      Jim,

      Thanks! The MGT is very helpful.

      The only thing I did not realize was collect the interface’s name
      (model name). I did some mod on ‘.modelinggatewayresource.xml’
      PortExport (the xml snippet follows), but it didn’t show as expected.

      Is there any thing else I should do?


      <Attributes
               circuit_id                    = "0xc4042f"
               circuit_name                  = "0xc40430"
               community_string              = "0x10024"
               agent_port                    = "0x10023"
               DeviceType                    = "0x23000e"
               is_managed                    = "0x1295d"
               log_ratio                     = "0x10072"
               manager_name                  = "0x3dc0009"
               model_modify_author           = "0x11025"
               model_name                    = "0x1006e"
               name                          = "0x1006e"
      …
      />
      ...

      <PortExportAttributes export_changed_attribute_only="false" >
              <name />
              <ip_address attribute_id="0x12dbb" />
              <ok_to_poll attribute_id="0x11dd8" />
              <Criticality/>
              <NetworkLinkType attribute_id="0x12a79" />
      </PortExportAttributes>

      …

      Best Regards,

      Rogério Ferreira da Cunha
      
------------------------------------------------------------------------------

      TIC/ADS-TC/ORS
      Consultor
      Tel: +55-21-3487-6848  Rota:  818-6848
      [email protected]



      "Pfleger, Jim" ---26/10/2010 14:17:06---Hello Rogério- This sounds
      like a good job for the modeling gateway, which is

      De:        "Pfleger, Jim" <[email protected]>
      Para:        "spectrum" <[email protected]>
      Data:        26/10/2010 14:17
      Assunto:        Re: [spectrum] List devices, ports and ip addresses



      Hello Rogério-

      This sounds like a good job for the modeling gateway, which is
      well-documented in the “Modeling Gateway Toolkit” manual. It will
      export as much or as little information you need to an XML file,
      based on an XML template. If needed, you could then write a small
      script to translate the exported XML file into some other format.
      We’ve even used the modeling gateway to export our entire topology
      and reimport it without any data loss (to fix some corrupted
      connections).

      HTH,
      Jim



      On 10/26/10 8:56 AM, "[email protected] <[email protected]>
      " <[email protected] <[email protected]> > wrote:
                  Hi All,

                  Is there an efficient way to list all devices, ports and
                  its IP addresses to automatically export those
                  information to a third party asset system by a script (I
                  mean using something like the CLI, not oneclick itself)?

                  The only way I figured out is, on CLI, show the devices
                  and interfaces and after all interact over each one to
                  retrieve the ip_address attribute (show attributes). This
                  process has been too slow!

                  Sincerely,



                  Rogério Ferreira da Cunha
                  
------------------------------------------------------------------------------

                  TIC/ADS-TC/ORS
                  Consultor
                  Tel: +55-21-3487-6848  Rota:  818-6848
                  [email protected] <[email protected]>


                  "O emitente desta mensagem é responsável por seu conteúdo
                  e endereçamento. Cabe ao destinatário cuidar quanto ao
                  tratamento adequado. Sem a devida autorização, a
                  divulgação, a reprodução, a distribuição ou qualquer
                  outra ação em desconformidade com as normas internas do
                  Sistema Petrobras são proibidas e passíveis de sanção
                  disciplinar, cível e criminal."

                  "The sender of this message is responsible for its
                  content and addressing. The receiver shall take proper
                  care of it. Without due authorization, the publication,
                  reproduction, distribution or the performance of  any
                  other action not conforming to Petrobras System internal
                  policies and procedures is forbidden and liable to
                  disciplinary, civil or criminal sanctions."

                  "El emisor de este mensaje es responsable por su
                  contenido y direccionamiento. Cabe al destinatario darle
                  el tratamiento adecuado. Sin la debida autorización, su
                  divulgación, reproducción, distribución o cualquier otra
                  acción no conforme a las normas internas del Sistema
                  Petrobras están prohibidas y serán pasibles de sanción
                  disciplinaria, civil y penal."
                              --To unsubscribe from spectrum, send email to
                              [email protected] <[email protected]>  with the
                              body: unsubscribe spectrum
                              [email protected] <
                              [email protected]>
            --To unsubscribe from spectrum, send email to [email protected]
            <mailto:[email protected]>  with the body: unsubscribe spectrum
            [email protected]

      "O emitente desta mensagem é responsável por seu conteúdo e
      endereçamento. Cabe ao destinatário cuidar quanto ao tratamento
      adequado. Sem a devida autorização, a divulgação, a reprodução, a
      distribuição ou qualquer outra ação em desconformidade com as normas
      internas do Sistema Petrobras são proibidas e passíveis de sanção
      disciplinar, cível e criminal."

      "The sender of this message is responsible for its content and
      addressing. The receiver shall take proper care of it. Without due
      authorization, the publication, reproduction, distribution or the
      performance of  any other action not conforming to Petrobras System
      internal policies and procedures is forbidden and liable to
      disciplinary, civil or criminal sanctions."

      "El emisor de este mensaje es responsable por su contenido y
      direccionamiento. Cabe al destinatario darle el tratamiento adecuado.
      Sin la debida autorización, su divulgación, reproducción,
      distribución o cualquier otra acción no conforme a las normas
      internas del Sistema Petrobras están prohibidas y serán pasibles de
      sanción disciplinaria, civil y penal."
            --To unsubscribe from spectrum, send email to [email protected]
            with the body: unsubscribe spectrum [email protected]

      --To unsubscribe from spectrum, send email to [email protected] with
      the body: unsubscribe spectrum [email protected] 
"O emitente desta mensagem é responsável por seu conteúdo e endereçamento. Cabe 
ao destinatário cuidar quanto ao tratamento adequado. Sem a devida autorização, 
a divulgação, a reprodução, a distribuição ou qualquer outra ação em 
desconformidade com as normas internas do Sistema Petrobras são proibidas e 
passíveis de sanção disciplinar, cível e criminal."
 
"The sender of this message is responsible for its content and addressing. The 
receiver shall take proper care of it. Without due authorization, the 
publication, reproduction, distribution or the performance of  any other action 
not conforming to Petrobras System internal policies and procedures is 
forbidden and liable to disciplinary, civil or criminal sanctions."
 
"El emisor de este mensaje es responsable por su contenido y direccionamiento. 
Cabe al destinatario darle el tratamiento adecuado. Sin la debida autorización, 
su divulgación, reproducción, distribución o cualquier otra acción no conforme 
a las normas internas del Sistema Petrobras están prohibidas y serán pasibles 
de sanción disciplinaria, civil y penal."

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

<<inline: graycol.gif>>

Reply via email to