This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
def main(): | |
ele=getNeDataFromSolarwinds(ip="1.1.1.1", username="x", password="x") | |
with open('elements.json', 'w') as outfile: | |
json.dump(ele, outfile) | |
def getNeDataFromSolarwinds(username="",password="",ip=""): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
lets assume, | |
1. | |
we have file elements.json in same directory as script below | |
structure of elements.json is : | |
[{"vendor": "HUAWEI Technology Co.,Ltd", "DisplayName": "AAAAAAAAA", "IP": "1.1.1.1."},] | |
element is NE40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
def main(): | |
ele=getNeDataFromSolarwinds(ip="11.1", username="asdada", password="sdsdf") | |
with open('elements.json', 'w') as outfile: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
curl | |
"http://172.21.168.120:5601/elasticsearch/_msearch?timeout=0&ignore_unavailable=true&preference=1477387351450" - H | |
"Origin: http://172.21.168.120:5601" - H | |
"Accept-Encoding: gzip, deflate" - H | |
"Accept-Language: en-US,en;q=0.8,cs;q=0.6,sk;q=0.4" - H | |
"kbn-version: 4.4.2" - H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
answers: | |
1. It is part of project, to visualise communication between processes on server. I am | |
coming to freelancer, because i need visualisation layer. | |
example of usage: | |
1)userX will open web page (i am puting as example what popotojs shared)http://www.popotojs.com/live/simple-graph/index.html . | |
library will take as parameter cypher query, and will show graph` | |
indenpendently on step 1 | |
neo4j db is continously updated by external processes | |
if there is some change, database shall triger event towards all connected web clients. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head><meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>obecne</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> | |