The Net-Brainer

The Net-Brainer (http://forums.netbraintech.com/index.php)
-   NetBrain Product (http://forums.netbraintech.com/forumdisplay.php?f=19)
-   -   Webservice for integration into other tools (http://forums.netbraintech.com/showthread.php?t=21332)

dominique.vocat 02-09-2016 01:31 PM

Webservice for integration into other tools
 
Hi,

i would like to get data from Netbrain via a Webservice.
Stuff i would like to get is
- data like in the inventory report
- data like the netcool integration i.e. send source and dest ip and get a visualization OR tabular data

I would like to be able to integrate the rich data source into our problem analysis tools.

NetBrainTAC 02-14-2016 09:35 PM

Re: Webservice for integration into other tools
 
Hello,

NetBrain provides the command line interface to map the path between two points or map around a single device. Ticket systems such as Netcool and NetView can integrate with NetBrain via this command line interface. While the command line is invoked from an alert, the map will be created for this alert. With one click, a NetBrain map can be exported to a Visio or PNG file.

Here's the document about NetBrain Third Party Integration Details and it include Netcool in section 4

https://c.na2.content.force.com/servlet/servlet.FileDownload?file=00P4000000ZzmsW

Case# 15175

dominique.vocat 03-29-2018 07:31 AM

Re: Webservice for integration into other tools
 
So, we have now Netbrain 7 and the REST api does not seem to provide any means to list all nodes - what am i doing wrong?

I aim to get a list of all known devices.

NetBrainTAC 04-15-2018 11:51 PM

Re: Webservice for integration into other tools
 
Hi,

Yes, the REST api doesn't provide a list of all nodes.
Please try Inventory report>Device report. https://www.netbraintech.com/ftp/IE70b/OnlineHelp/index.html?inventory-report.htm

lheavrin 04-17-2018 02:58 PM

Re: Webservice for integration into other tools
 
Quote:

Originally Posted by NetBrainTAC (Post 24215)
Hi,

Yes, the REST api doesn't provide a list of all nodes.
Please try Inventory report>Device report. https://www.netbraintech.com/ftp/IE70b/OnlineHelp/index.html?inventory-report.htm

I created a group and set a dynamic search that would always match our devices like "device name always includes hyphen". Then I just did an API call to list the devices in that group. It's not perfect but it does the job as long as you have a variable that will always match.

Declanw 06-06-2018 09:30 AM

Re: Webservice for integration into other tools
 
Hi there,

The URL directs me to something called Salesforce. I'm not sure what that is.
Is there another link to the document?

Regards

Declan Watts
BT plc.

Quote:

Originally Posted by NetBrainTAC (Post 23095)
Hello,

Here's the document about NetBrain Third Party Integration Details and it include Netcool in section 4

https://c.na2.content.force.com/servlet/servlet.FileDownload?file=00P4000000ZzmsW

Case# 15175


NetBrainTAC 06-07-2018 03:31 AM

Re: Webservice for integration into other tools
 
Quote:

Originally Posted by Declanw (Post 24264)
Hi there,

The URL directs me to something called Salesforce. I'm not sure what that is.
Is there another link to the document?

Regards

Declan Watts
BT plc.

Hi Declan,

Please refer to the 7.0 NetBrain_API_and_System_Integration_Guide from this link: http://ws2.netbraintech.com/download/NetBrain_API_and_System_Integration_Guide.pdf

Thanks!

jrsikors 11-21-2018 02:10 PM

Re: Webservice for integration into other tools
 
Hello -

Brand new to NetBrain and the API. I'm not sure if I missed something obvious, but I'm just trying to test out the basics.

https://www.netbraintech.com/ftp/IE70b/OnlineHelp/index.html?getallinterface.htm

So if I do:
https://myNBIP/ServicesAPI/API/CMDB/interface/getAllInterfaces/

I get a:
{"statusCode":790005,"statusDescription":"Inval id token."}

Great -- that error is expected -- I didn't put in a parameter.

If I do a
https://myNBIP/ServicesAPI/API/CMDB/interface/getAllInterfaces/MYSWITCH

I get a:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Am I missing something obvious?

Thanks!
Jeff

NetBrainTAC 11-22-2018 02:10 AM

Re: Webservice for integration into other tools
 
Hi Jeff,

Could you please try URL like below example with GET method instead of POST:
http://10.10.13.89/ServicesAPI/API/CMDB/interface/getAllInterfaces?hostname=BJ_Acc_SW1

Please note: BJ_Acc_SW1 is a device hostname

Hope this helps.

Thanks


Quote:

Originally Posted by jrsikors (Post 24434)
Hello -

Brand new to NetBrain and the API. I'm not sure if I missed something obvious, but I'm just trying to test out the basics.

https://www.netbraintech.com/ftp/IE70b/OnlineHelp/index.html?getallinterface.htm

So if I do:
https://myNBIP/ServicesAPI/API/CMDB/interface/getAllInterfaces/

I get a:
{"statusCode":790005,"statusDescription":"Inval id token."}

Great -- that error is expected -- I didn't put in a parameter.

If I do a
https://myNBIP/ServicesAPI/API/CMDB/interface/getAllInterfaces/MYSWITCH

I get a:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Am I missing something obvious?

Thanks!
Jeff


jrsikors 11-22-2018 01:26 PM

Re: Webservice for integration into other tools
 
Thanks for the assistance!

I'm getting a:
{"statusCode":790005,"statusDescription":"Inval id token."}

When I use that URL format:
<my server>/ServicesAPI/API/CMDB/interface/getAllInterfaces?hostname=<my switch>

I know the switch exists, I just did an export of the Inventory Report.

Thanks again!
Jeff


All times are GMT -4. The time now is 04:17 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2009 NetBrain, Inc. All rights reserved.