mirror of
https://github.com/inexio/thola.git
synced 2026-10-24 03:08:55 +03:00
24 lines
597 B
Go
24 lines
597 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/inexio/thola/internal/request"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
addDeviceFlags(readSBCCMD)
|
|
readCMD.AddCommand(readSBCCMD)
|
|
}
|
|
|
|
var readSBCCMD = &cobra.Command{
|
|
Use: "sbc",
|
|
Short: "Read out SBC specific information of a device",
|
|
Long: "Read out SPC specific information of a device like global call per second or active local contacts, including information per agent and per realm.",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
request := request.ReadSBCRequest{
|
|
ReadRequest: getReadRequest(args[0]),
|
|
}
|
|
handleRequest(&request)
|
|
},
|
|
}
|