4thel00z / upnpctl

Upnp utility for device discovery and scan (+ export as json)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

upnpctl

Usage:

                                                                             _..._                
                                                                          .-'_..._''.       .---. 
           _________   _...._         _..._   _________   _...._        .' .'      '.\      |   | 
           \        |.'      '-.    .'     '. \        |.'      '-.    / .'                 |   | 
            \        .'''''.    '. .   .-.   . \        .'''''.    '. . '               .|  |   | 
             \      |       \     \|  '   '  |  \      |       \     \| |             .' |_ |   | 
   _    _     |     |        |    ||  |   |  |   |     |        |    || |           .'     ||   | 
  | '  / |    |      \      /    . |  |   |  |   |      \      /    . . '          '--.  .-'|   | 
 .' | .' |    |     |\''-.-'   .'  |  |   |  |   |     |\''-.-'   .'   \ '.          .|  |  |   | 
 /  | /  |    |     | '-....-''    |  |   |  |   |     | '-....-''      '. '._____.-'/|  |  |   | 
|   ''.  |   .'     '.             |  |   |  |  .'     '.                 '-.______ / |  '.''---' 
'   .'|  '/'-----------'           |  |   |  |'-----------'                        '  |   /       
 '-'  '--'                         '--'   '--'                                        ''-'

Usage:
  upnpctl [flags]
  upnpctl [command]

Available Commands:
  help        Help about any command
  monitor     Monitor HTTPU packages and print them on stdout
  scan        Scan the network for possible Devices and persist them

Flags:
  -h, --help   help for upnpctl

Use "upnpctl [command] --help" for more information about a command.

Example Usages

Scanning

Save a scan of your local network to a json file:

upnpctl scan > /tmp/scan.json

Usage:

Scan the network for possible Devices and persist them

Usage:
  upnpctl scan [flags]

Flags:
  -h, --help       help for scan
  -j, --json       --json (default true)
  -n, --num int    --num <num> (default 10)
  -w, --wait int   --wait <num> (default 30)

Monitor

Monitor the device discovery (or other httpu packages):

upnpctl monitor

Usage:

Monitor HTTPU packages and print them on stdout

Usage:
  upnpctl monitor [flags]

Flags:
  -a, --addr string    --addr <hostname>:<port> (default "239.255.255.250:1900")
  -h, --help           help for monitor
  -i, --iface string   --iface <interfacename>
  -m, --multicast      --multicast <true|false> (default true)
  -p, --print-body     --print-body <true|false> (doesn't really make sense for ssdp discovery)

About

Upnp utility for device discovery and scan (+ export as json)

License:MIT License


Languages

Language:Go 100.0%