--- layout: default title: usr/share/doc/sysbox/html/tool/svccall.html --- Sysbox: svccall

Sysbox: svccall

Usage: svccall DEVNAME SVCNAME [KEYVAL]...

Invoke a servicecall and print result to stdout. Gather servicecall information with svcinfo tool.

A KEYVAL has the format of key=value.

Options:

Examples:

$ svccall vfs mkdir
svccall: key "dir" not found in KEYVALs
$
$ svccall vfs mkdir dir=/tmp/test
svccall: key "attr" not found in KEYVALs
$
$ svccall vfs mkdir dir=/tmp/test attr=0770
$
$ stat /tmp/test
  File: '/tmp/test'
  Size: 0          Blocks: 0        IO Block: 4096     directory
Device: 1300001h/19922945d Inode: 8959       Links: 1    
Access: (0770/drwxrwx---)  Uid: 0     Gid: 0    
Access: 2017-08-09 18:11:54.625000000
Change: 2017-08-09 18:11:54.625000000
Modify: 2017-08-09 18:11:54.625000000
 Birth: 2017-08-09 18:11:54.625000000
$
$ svccall vfs rmdir
svccall: key "dir" not found in KEYVALs
$
$ svccall vfs rmdir dir=/tmp/test
$
$ stat /tmp/test
stat: /tmp/test: No such file or directory
$
$ svccall vfs compdev dev_name=vfs dev_unit=0
dev: 27262976
$