Skip to main content

InfraSonar Toolkit

Project description

CI Release Version

Installation

Using pip:

pip install infrasonar

Or, clone this project and use the setup

python setup.py install

Apply assets

Create a yaml file, for example: assets.yaml

labels:
  windows: 3257

configs:
  tcp:
    checkCertificatePorts: [443, 995, 993, 465, 3389, 989, 990, 636, 5986]

assets:
- name: foo.local
  kind: Windows
  labels: ["windows"]
  collectors:
  - key: lastseen
  - key: ping
  - key: tcp
    config: tcp
  - key: wmi

Next, use the following command to apply the assets: (-a will only add labels and collectors, -d perform a dry-run without applying the changes)

infrasonar apply-assets assets.yaml -a -d

The script will create a new asset if an asset with the given name cannot be found, otherwise it will apply the changes to the existing asset. Existing labels and/or collectors will not be removed, but a kind will be overwritten if one is given. The properties kind, description, mode, labels and collectors are all optional.

Token

A token might be included in the yaml file:

token: xxxxxx

Or, it will be asked in a prompt when starting the script.

:point_right: Note that a token with Agent flags must be used for the apply-assets action to work. A container token is required when no container Id is given or when one or more assets without an asset Id are used.

Get assets

Get container assets. (in the example below, 123 is a container Id)

infrasonar get-assets 123 -o yaml

Help

infrasonar -h
infrasonar get-assets -h
infrasonar apply-assets -h

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infrasonar-0.1.2.tar.gz (22.5 kB view details)

Uploaded Source

File details

Details for the file infrasonar-0.1.2.tar.gz.

File metadata

  • Download URL: infrasonar-0.1.2.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for infrasonar-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b1cae58af83953e54101bf2cb9563daf13dc79cda5413532b6f1d377e9e3332a
MD5 bd1deaa7e0ae19e04c2d372f23b1ad8b
BLAKE2b-256 daf8400836699cb0489407b405d4e0527a1c1486e9264c2953e3e1fc6514ca95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page