- Community Home
- >
- Welcome
- >
- Other HPE Product Questions
- >
- Re: nnmi webservice for interface
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2017 01:09 PM
05-11-2017 01:09 PM
nnmi webservice for interface
Hello team,
I am using the following code to get node details from nnmi, can we get the interface status using the same way ?
from suds.client import Client from suds.transport.http import HttpAuthenticated import time import json import datetime import time now = datetime.datetime.now() currenttime = now - datetime.timedelta(hours=100) lstime = time.mktime(currenttime.timetuple()) timems = int(lstime)*1000 mgmtip = "192.168.10.20" hosts = open('/etc/hosts','r') for line in hosts: if mgmtip in line: hostname = ', '.join(line.split()[1:]) #print hostname t = HttpAuthenticated(username='user', password='Password') url = 'http://host/NodeBeanService/NodeBean?wsdl' client = Client(url, transport=t) filter1 = client.factory.create('ns3:condition') filter1.name = "sourceNodeName" filter1.operator = "LIKE" filter1.value = hostname filter = client.factory.create('ns3:expression') filter.operator = "AND" filter.subFilters = [filter2, filterlimit] allNodes = client.service.getNodes(filter) #print "Nodes in topology:", len(allNodes.item) print allNodes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2017 03:54 PM
05-13-2017 03:54 PM
Re: nnmi webservice for interface
This is the wrong forum (and in the future the wrong company) for software questions.
https://community.hpe.com/t5/Announcements/Software-Category-Blogs-Forums-in-Read-Only-May-9-15-2017/m-p/6962462
https://community.hpe.com/t5/Announcements/Software-to-split-from-HPE/m-p/6955457
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2017 12:02 PM
05-16-2017 12:02 PM
Re: nnmi webservice for interface
Hello
Sorry for the inconvenience of having the Software content in read-only as we migrated to a new instance. The new Software Community is now live at community.saas.hpe.com. You can use your same credentials to log in.
Please repost your question to the NNM forum here:
https://community.saas.hpe.com/t5/Network-Management-Solutions/ct-p/sws-NNM
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2017 01:39 AM
05-18-2017 01:39 AM
Re: nnmi webservice for interface
Hi,
The mentioned link for https://community.saas.hpe.com/ is not opening...