Unsolved
This post is more than 5 years old
1 Rookie
•
79 Posts
0
939
September 3rd, 2008 02:00
adapter
I have a third party application that is inhouse written and i need to pull information into the underlying domains of smarts e.g IPAM/PM, MPLS, OTM
and because it is inhouse wriiten there is no adapter wriiten by smarts.
Is there anyone who have pulled information from by script or adapter into smarts domains.
I am not sure where to start.
daley
and because it is inhouse wriiten there is no adapter wriiten by smarts.
Is there anyone who have pulled information from by script or adapter into smarts domains.
I am not sure where to start.
daley
No Events found!
Christian4
30 Posts
0
September 3rd, 2008 04:00
You can either try to do it with perl, asl or java.
I think the easiest way to do is to do it with perl. There you can connect easy to a database or read information out of a file.
Have a look to the perl API documentation. There you will find enough information how to put the data into an Smarts object.
Regards,
Christian
dele1
1 Rookie
•
79 Posts
0
September 3rd, 2008 05:00
The application is an inhouse inventory and there is a seed file that needs to be extracted and create a model for the smarts database. i thought an adapter has to be written to perform this magic.
as we have third party application like remedy, concord which has there own adapter.There is also an adapter framework kit i am not sure if this is valuable for this type of work.
dele1
1 Rookie
•
79 Posts
0
September 3rd, 2008 05:00
I have not done this before from writing perl script to dynamic modelling.
The issue is with OTM where it is not always IP address and what info needs to be extracted into smarts OTM domain.
Christian4
30 Posts
0
September 3rd, 2008 05:00
What you mean with creating a model? What do you think of? Do you mean own created objects with dynamic modeling or to put data on a already existing object, e.g. Router, GA_StringDictionary?
If you want to create your own objects you have to do that with dynamic modeling.
Therefore you have to create an .mdl file in the local/model directory.
If you want you to put data into an existing object, perl will be the best way to do that. That's my opinion.
We have also remedy in place and wrote the interface between SMARTS and remedy from scratch with java webservices.
If you are more specific I can give you a more specific answer.
Regards,
Christian
dele1
1 Rookie
•
79 Posts
0
September 4th, 2008 02:00
is there any example script that someone has written to extract data from a third party application.
Dinand1
89 Posts
0
September 4th, 2008 09:00
If you want to add data you need to use either the GA_StringDictionary or the Dynamic model
if you need to extract data from SMARTS from different domains just write either and asl or perl script that pulls out data from the different domains and merge it
but if you need to write data into SMARTS repositories and have this data availble you either do it with the StringDisctionary or the dynamic model.
Although if you have data in one domain you can do that data available to SAM through the dxa integration and so on and pull out the data from SAM
examples: here u have an asl script that extracts data from SAM
START {
..eol
}
do {
listnames=getInstances("Switch");
print("Name|IP|Vendor|OID");
foreach mem (listnames) {
x=object("Switch",mem);
name=x->Name;
svendor=x->Vendor;
soid=x->SystemObjectID;
ipadd=x->SNMPAddress;
print(name."|".ipadd."|".svendor."|".soid);
}
}
it does list all switches with name, ip, vendor and snmp oid ...
save it as listswitches.asl
and execute it like this
sm_adapter -s INCHARGE-SA listswitches.asl
cheers
Berkay1
36 Posts
0
September 4th, 2008 10:00
This is not feasible. IP/AM and MPLS needs to do their own discovery. It is very unlikely that you have the necessary data somewhere else anyway, but even if you did, it would be major undertaking, if possible, to replicate the Smarts discovery functionality.
OTM is a whole different monster. Direct opposite to IPAM and MPLS, OTM cannot do directly discovery as there is no SNMP agent on optical devices. Instead it relies on external data sources. There are adapters for some of the optical element managers and you can write adapters if you have a good inventory. However, again, this is significant amount of work, not some script someone can provide.
Have you already purchased these Smarts product? I'm surprised to hear that they have not told you about these.
Regards,
Berkay Mollamustafaoglu
http://www.mberkay.com
http://www.ifountain.com
dele1
1 Rookie
•
79 Posts
0
September 5th, 2008 03:00
I think we might be misinforming/misunderstanding each other about what I need to do.
I have an inventory which is inhouse written and i want to extract the data into the underlying domains such as AM/PM OTM and MPLS so as to feed SAM to get notifications on the global console.
I know a discovery is possible after feeding the SMARTs database with a seed file from the 3rd party application. but is there not another way of telling the smarts about from discovery.
Also with 3rd party applications i think i need to extract the infor using perl, and write an adapter file to process this extracted information for smarts to turn it into notifications. I am not a big fan of ASL and i am trying to understand what it does.
The optical transport manager i need to talk to smarts about this. as they are not IP .
Please i need some more input.