Comments (10)
Nevermind - just read the subject. Is port 444 open on your firewall for your tanium server? Port 444 is necessary for pytan to access /info (and /info.json) in 6.2
from pytan.
Yeah the connection is made to 444 just fine and everything works it's just returning that weird string instead of json. I hard-coded the "server version" to 6.2 so get_server_info is never called and everything works fine (question fires and returns the expected results).
from pytan.
That's.. odd. I've never seen that. Though that string aligns with what would be a session-id, possibly. I'm about to check in a change to pytan.sessions.Sessions.get_server_info() that makes that function a little more error proof. Mind trying with the develop branch?
from pytan.
Point of note, http_post is SUPPOSED to return a string.
get_server_info() is supposed to parse that string as json into a python dict here: https://github.com/tanium/pytan/blob/2.0.3/lib/pytan/sessions.py#L389
from pytan.
Oh right when I said string I just meant it wasn't a json structure (ie it wouldn't be a dictionary which was expected). I went home for the day but I can checkout the dev branch (just master or is there another one?) and see what happens.
from pytan.
The develop branch is here: https://github.com/tanium/pytan/tree/develop
It contains the next version of PyTan (which is likely to be 2.1.0, although it's currently marked as 2.0.4).
I check in all my changes to develop and once I've fully tested them all, I push to master and do version increments/etc.
from pytan.
Okay cool I'll give it a shot tomorrow and let you know how it goes. Thanks!
from pytan.
Wow that's a lot of documentation in that branch; nice job!
Anyway got this exception now:
2015-08-28 15:19:28,949 WARNING pytan.sessions.Session: Unable to find Version key in Settings: {}
2015-08-28 15:19:28,949 WARNING pytan.sessions.Session: Unable to find Version key in Settings: {}
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "../lib/pytan/handler.py", line 194, in get_server_version
self.server_version_dict = self._parse_versioning()
File "../lib/pytan/handler.py", line 2320, in _parse_versioning
raise pytan.exceptions.VersionParseError(m(self.server_version))
VersionParseError: Unable to parse major, minor, revision, and build from server version string: Unable to determine
info_dict is what you're setting in the json.loads exception body; with a value equal to the string I posted above.
from pytan.
Are you able to webex with me? let's take this direct to email, something is going on that I can't see through what you've provided me.
from pytan.
Fixed in 2.1.0. Thanks!
from pytan.
Related Issues (20)
- Exports of questions with repeated column names returns incorrectly HOT 1
- Submit pytan package to PyPI HOT 7
- Action targets Computer Group instead of Action Group
- requests has issues with connecting to SSL servers that have more securely. HOT 1
- pytan does not recognize/know about new object types in Tanium v7.2
- release
- remove BUILD directory
- run unit / functional tests HOT 2
- update README.md before release
- lint all of pytan
- get rid of 6.2/6.5 branching logic
- remove debug method locals methods/calls/loggers
- change default of xml cleaner to false
- add command line arguments to ask_manual and deploy_action
- add computer_group native support to methods
- Change get_server_version() to be more error proof
- rework logging system for file logging support
- modify and add methods & scripts for RBAC
- Deploy Action throws RBAC error HOT 4
- How do you specify the content set when calling create_package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytan.