NAME
sercmd - send commands to SIP Express Router using binrpc
SYNOPSIS
sercmd [options] [-s address] [ cmd ]
DESCRIPTION
sercmd is a tool for controlling SER using its ctl module.
OPTIONS
-s address
unix socket name or host name to send the commands on
-R name
force reply socket name, for the unix datagram socket mode
-D dir create the reply socket in the directory <dir> if no reply
socket is forced (-R) and a unix datagram socket is selected as
the transport
-f format
print the result using format. Format is a string containing %v
at the places where values read from the reply should be
substituted. To print ā%vā, escape it using ā%ā: %%v.
-v verbose mode
-V print version number
-h this help message
address:
[proto:]name[:port]
where proto is one of tcp, udp, unixs or unixd, e.g.,
tcp:localhost:2048 , unixs:/var/run/ser/ser_ctl
cmd:
method [arg1 [arg2...]]
arg:
string or number; to force a number to be interpreted as string
prefix it by "s:", e.g. s:1
EXAMPLES
sercmd -s unixs:/var/run/ser/ser_unix system.listMethods
sercmd -f "pid: %v desc: %v\n" -s udp:localhost:2047 core.ps
sercmd ps # uses default ctl socket
sercmd # enters interactive mode on the default socket
sercmd -s tcp:localhost # interactive mode, default port
SEE ALSO
ser(8)