Giter VIP home page Giter VIP logo

steelscript-appresponse's People

Contributors

djvernon68 avatar gwenblum avatar mgarabed avatar mzetea avatar pendleto avatar rvbd-wimv avatar saurabhjain06 avatar savo-kovacevic-devtech avatar wenxuan-guo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

steelscript-appresponse's Issues

.py example scripts fail in the docker due to CRLF end of line, simply changing to LF fixes

root@ee4c5ff0836a:~/steelscript-workspace# examples/appresponse-examples/certificate.py
/usr/bin/env: ‘python\r’: No such file or directory

dos2unix examples/appresponse-examples/certificate.py

dos2unix: converting file examples/appresponse-examples/certificate.py to Unix format...
root@ee4c5ff0836a:~/steelscript-workspace# examples/appresponse-examples/certificate.py
Usage: certificate-lf.py [options] ...

upload_pcap.py issue

when i execute this script always give me string index out of range error. any thoughts how i can solve this issue?

C:\Python27\lib\site-packages\urllib3\connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Uploading http.pcap
Traceback (most recent call last):
File "upload_pcap.py", line 51, in
app.run()
File "C:\Python27\lib\site-packages\steelscript\common\app.py", line 35, in run
self.parse(sys.argv[1:])
File "C:\Python27\lib\site-packages\steelscript\commands\steel.py", line 306, in parse
self.main()
File "upload_pcap.py", line 41, in main
local_file=self.options.filepath
File "C:\Python27\lib\site-packages\steelscript\appresponse\core\appresponse.py", line 256, in upload
if dest_dir[0] == '/':
IndexError: string index out of range

update_host_groups example fails on AR 11.10 with AttributeError(key) error in steelscript/common/datastructures.py

This script example run against an AR instance version 11.10 raises AttributeError(key) error in steelscript/common/datastructures.py

repro:
~/steelscript-workspace# python examples/appresponse-examples/update_host_groups.py -u admin -p admin --operation show appresponse-ip-address

output:
/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py:1020: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.10.10.55'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
Traceback (most recent call last):
File "/src/steelscript/steelscript/common/datastructures.py", line 314, in getattr
return self.getitem(key)
KeyError: 'hosts'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "examples/appresponse-examples/update_host_groups.py", line 159, in
app.run()
File "/src/steelscript/steelscript/common/app.py", line 35, in run
self.parse(sys.argv[1:])
File "/src/steelscript/steelscript/commands/steel.py", line 310, in parse
self.main()
File "examples/appresponse-examples/update_host_groups.py", line 98, in main
for hg in self.appresponse.classification.get_hostgroups()
File "examples/appresponse-examples/update_host_groups.py", line 98, in
for hg in self.appresponse.classification.get_hostgroups()
File "/src/steelscript/steelscript/common/datastructures.py", line 316, in getattr
raise AttributeError(key)
AttributeError: hosts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.