SERctl untuk administrator SER

From OnnoWiki
Jump to navigation Jump to search

Siapkan file yang dibutuhkan

# touch /tmp/ser_fifo
# chown -Rf www-data /tmp/ser_fifo



Menggunakan SERctl

# serctl 
/usr/sbin/serctl $Revision: 1.83.2.2 $
parameter usage: 
          * subscribers *
add <username> <password> <email> .. add a new subscriber (*)
passwd <username> <passwd> ......... change user's password (*)
rm <username> ...................... delete a user (*)
mail <username> .................... send an email to a user
alias show [<alias>] ............... show aliases
alias rm <alias> ................... remove an alias
alias add <alias> <uri> ............ add an aliases 
rpid add <username> <rpid> ......... add rpid for a user (*)
rpid rm <username> ................. set rpid to NULL for a user (*)
rpid show <username> ............... show rpid of a user
          * access control lists *
acl show [<username>] .............. show user membership
acl grant <username> <group> ....... grant user membership (*)
acl revoke <username> [<group>] .... grant user membership(s) (*)
          * usrloc *
ul show [<username>]................ show in-RAM online users
ul rm <username> ................... delete user's UsrLoc entries
ul add <username> <uri> ............ introduce a permanent UrLoc entry
showdb [<username>] ................ show online users flushed in DB
          * pa *
pa pres <p_uri> <pstate>............ set pstate for a presentity
pa loc <p_uri> <loc>................ set location for a presentity
          * domains *
domain show ........................ show list of served domains
domain add <domainname> ............ add a new served domain
domain rm <domainname> ............. remove a served domain
          * control and diagnostics *
moni ... show internal status      start .... start ser
ps ..... show runnig processes     stop ..... stop ser
fifo ... send raw FIFO commands    restart .. restart ser
ping <uri> .. ping a URI (OPTIONS)
cisco_restart <uri> .. restart a Cisco phone (NOTIFY)


  Commands labeled with (*) will prompt for a MySQL password.
  If the variable PW is set, the password will not be prompted.
    ACL privileges are: local ld int voicemail free-pstn prepaid




Menambahkan user

# serctl add <username> <password> <e-mail>
# serctl add 2000@192.168.0.2 123456 nama@host.com
Mysql password: (isikan password admin, default heslo)




Melihat proses yang berjalan

# serctl ps



Melihat Cache Memory

# serctl ul show



Pranala Menarik