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]
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]>
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]
"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>>
