Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/cmd/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ With this command you can list the networks in use by VMs and clusters.`,
replicated network ls

# Update a network with an airgap policy
replicated network update <network-id> --policy airgap
replicated network update NETWORK_ID --policy airgap
`,
Hidden: false,
}
Expand Down
10 changes: 5 additions & 5 deletions cli/cmd/network_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ import (

func (r *runners) InitNetworkReport(parent *cobra.Command) *cobra.Command {
cmd := &cobra.Command{
Use: "report [network-id]",
Use: "report [NETWORK_ID]",
Short: "Get network report",
Long: `Get a network report showing detailed network activity for a specified network.

The report shows individual network events including source/destination IPs, ports, protocols,
pods, processes, and DNS queries. Reports must be enabled with 'replicated network update <network-id> --collect-report'.
pods, processes, and DNS queries. Reports must be enabled with 'replicated network update NETWORK_ID --collect-report'.

Output formats:
- Default: Full event details in JSON format
- --summary: Aggregated statistics with top domains and destinations
- --watch: Continuous stream of new events in JSON Lines format`,
Example: `# Get full network traffic report (external traffic only)
replicated network report <network-id>
replicated network report NETWORK_ID

# Get aggregated summary with statistics. Only available for networks that have been terminated.
replicated network report <network-id> --summary
replicated network report NETWORK_ID --summary

# Watch for new network events in real-time
replicated network report <network-id> --watch`,
replicated network report NETWORK_ID --watch`,
RunE: r.getNetworkReport,
ValidArgsFunction: r.completeNetworkIDs,
Hidden: false,
Expand Down
10 changes: 5 additions & 5 deletions cli/cmd/network_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ Network policies control network traffic behavior:
- open: No restrictions on network traffic (default)
- airgap: Blocks all network egress to simulate air-gapped environments`,
Example: `# Set network policy to airgap
replicated network update <network-id> --policy airgap
replicated network update NETWORK_ID --policy airgap

# Set network policy to open
replicated network update <network-id> --policy open
replicated network update NETWORK_ID --policy open

# Enable network traffic reporting
replicated network update <network-id> --collect-report
replicated network update NETWORK_ID --collect-report

# Disable network reporting
replicated network update <network-id> --collect-report=false
replicated network update NETWORK_ID --collect-report=false

# Update multiple settings at once
replicated network update <network-id> --policy airgap --collect-report
replicated network update NETWORK_ID --policy airgap --collect-report
`,
RunE: r.updateNetwork,
SilenceUsage: true,
Expand Down
Loading