> For the complete documentation index, see [llms.txt](https://fugolungo.gitbook.io/fugolungo-docs/Sw9EnGkWPJZdpbTYFR6Q/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fugolungo.gitbook.io/fugolungo-docs/Sw9EnGkWPJZdpbTYFR6Q/reference/traffic-monitor-cli.md).

# 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

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

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

### Usage

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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://fugolungo.gitbook.io/fugolungo-docs/Sw9EnGkWPJZdpbTYFR6Q/reference/traffic-monitor-cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
