npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

onomondo-traffic

v3.2.2

Published

Fetch your organization's traffic based on ip, iccid, or simid

Downloads

183

Readme

onomondo-traffic

Fetch your organization's traffic based on ip, iccid, or simid.

This is a tool for organizations that are using Onomondo Fleet Storage.

Installation

You need to have node.js and wireshark installed on your system. It is recommended to have tcpdump installed as it works better with larger PCAP files.

Install this way: $ npm i -g onomondo-traffic

How to use

onomondo-traffic uses several parameters. All of these can either be passed through command-line arguments, or you can put them in a file called conf.json, which is read from the folder you run the program from.

Is is recommended to put access keys, and token into a conf.json and pass the other parameters to the program, but it can all be combined however you choose.

Examples

These examples downloads traffic from either AWS S3 or Azure Blob Storage

AWS S3

Download traffic between 5 and 7:30 on Dec 20th, from s3, filtering out traffic from a specific iccid.

This is run from the command line:

$ onomondo-traffic \
  --from=2020-12-20T05:00:00Z \
  --to=2020-12-20T07:30:00Z \
  --iccid=8991101200003204514

With conf.json containing:

{
  "token": "abc123def456ghi",
  "s3-bucket": "mycompany-bucket",
  "s3-region": "eu-central-1",
  "aws-access-key-id": "AKAI1234ABCDEFGF",
  "aws-secret-access-key": "ghjKJH1234KJHkjhbnmY"
}

Azure Blob Storage

Download traffic between 5 and 7:30 on Dec 20th, from s3, filtering out traffic from several sim id's and one iccid:

This is run from the command line:

$ onomondo-traffic \
  --from=2020-12-20T05:00:00Z \
  --to=2020-12-20T07:30:00Z \
  --conf=conf-sim-group.json

With conf-sim-group.json containing:

{
  "token": "abc123def456ghi",
  "blob-storage-connection-string": "DefaultEndpointsProtocol=https;AccountName=foobarbaz;AccountKey=a1b2c3;EndpointSuffix=core.windows.net",
  "blob-storage-container-name": "my-container-name",
  "iccid": "8991101200003204514",
  "simid": [
    "000123456",
    "001234567",
    "012345678"
  ]
}

Parameters

--from=2020-12-20T05:00:00Z (required)

Fetch traffic from this time

--to=2020-12-21T05:15:00Z (required)

Fetch traffic until this time

--ip=100.64.12.34 (optional)

Filter traffic based on this IP.

You can specify multiple ip''s like --ip=... --ip=...

--iccid=8991101200003204514 (optional)

Filter traffic based on this iccid. Requires you to specify --token

You can specify multiple iccid''s like --iccid=... --iccid=...

--simid=000000001 (optional)

Filter traffic based on this simid. Requires you to specify --token

You can specify multiple simid''s like --simid=... --simid=...

--token=abc123def456ghi789 (optional)

This is the token for Onomondo api. You only need to specify this if you use --iccid or --simid. This is because onomondo-traffic needs to convert the iccid/simid into an ip address.

--allow-self-signed-certificates (optional)

By default you cannot use self-signed certificates. Setting this allows you to use those.

You can specify this like --allow-self-signed-certificates

--conf

Specify which conf file should be used. This is only available as a command line parameter.

Storage Providers

AWS S3

If you are using AWS S3 then these paramters are required.

--s3-bucket=mycompany-bucket

--s3-region=eu-central-1

--aws-access-key-id=AKAI1234ABCDEFGF

--aws-secret-access-key=ghjKJH1234KJHkjhbnmY

Azure Blob Storage

If you are uzing Azure Blob Storage then these parameters are required. Note that only one of either --blob-storage-sas-uri or --blob-storage-connection-string is required.

--blob-storage-sas-uri

--blob-storage-connection-string

--blob-storage-container-name