---
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:
- -d
Print integers in decimal form. Enabled by default. - -h
Print integers in hexadecimal form. - -p
Display port number in socket addresses. Enabled by default. - -P
Hide port number in socket addresses. - -s NUM
Specify servicecall pool size. The returned strings and socket addresses will be allocated from this pool.
Always refer to svccall --help for actual default value and limits.
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 $