# Traffic Monitor CLI

`onomondo-live` is the Traffic Monitor CLI tool that enables you to capture all traffic between a device and the network, seen from the network's perspective. [The source code can be found here](https://github.com/onomondo/onomondo-live).

You can output the captured traffic to PCAP file or pipe it to another tool that can read PCAP files (like Wireshark).

## Installation <a href="#installation" id="installation"></a>

You need to have NodeJS and `npm` installed on your system. Then run this command:

```
$ npm install onomondo-live --global
```

## Usage <a href="#usage" id="usage"></a>

You need to use the SIM ID of one or more of your SIMs, and an Onomondo API key. If you want to listen to multiple sims you can supply multiple `--sim` parameters, e.g. like this: `--sim=111111111 --sim=222222222`.

**Write to file**

```
$ onomondo-live --key=onok_a1b2c3.f00ba5 --sim=012345678 --filename=output.pcap
```

**Write to standard output**

```
$ onomondo-live --key=onok_a1b2c3.f00ba5 --sim=012345678 -
```

**Pipe to Wireshark example**

```
$ onomondo-live --key=onok_a1b2c3.f00ba5 --sim=012345678 - | wireshark -k -i -
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onomondo.com/traffic-monitor-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
