Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
dsbmc-cli(1)		  BSD General Commands Manual		  dsbmc-cli(1)

NAME
     dsbmc-cli -- command-line client for DSBMD

SYNOPSIS
     dsbmc-cli -L event	command	[arg ...] ; [-L	...]
     dsbmc-cli -a [-U time] [[-L event command [arg ...]] ; [-L	...]]
     dsbmc-cli {-a | -e	| -m | -s | -u | -v speed} device
     dsbmc-cli {-e | -u} _mount	point_
     dsbmc-cli -l
     dsbmc-cli [-h]

DESCRIPTION
     dsbmc-cli is a command-line client	for DSBMD that provides	a simple in-
     terface to	query information about	storage	devices, and to	send requests
     to	mount, unmount and eject these.

OPTIONS
     -L	     Listen for	event, and execute the command every time the event is
	     received. Possible	events are mount, unmount, add,	and remove.
	     The command must be terminated by a semicolon (`;') as a separate
	     argument. Each event provides information about the device	that
	     can be accessed using the placeholders %d (device name), %l (vol-
	     ume label), %m (mount point) (only	mount and unmount ), and %t
	     (device type). A literal percent character	(`%') must be escaped
	     by	a further `%' character	("%%").

	     Possible values for the device type (%t) are hdd, usbdisk,
	     datacd, audiocd, dvd, vcd,	svcd, mmc, mtp,	and ptp.

	     The -L option can be given	multiple times.

     -U	     Auto-unmount. Try to unmount each automounted device every	time
	     seconds.

     -a	     Automount.	After mounting all devices presented by	DSBMD,
	     dsbmc-cli(1) waits	for new	devices	added to the system, and
	     mounts them.  In addition,	the -L option can be specified for
	     each event. If dsbmc-cli(1) automounts a device, it executes the
	     command defined for the mount event.

     -e	device,	-e _mount point_
	     Eject the given device or the device mounted on _mount point_

     -l	     List all currently	attached devices DSBMD supports.

     -m	device
	     Mount the given device.

     -s	device
	     The storage capacity of the given device is queried, and the me-
	     dia size, the number of used and free bytes are printed to	std-
	     out.

     -u	device,	-u _mount point_
	     Unmount the given device or the device mounted on _mount point_

     -v	speed device
	     Set the reading speed of the given	CD/DVD device.

EXAMPLES
	   $ dsbmc-cli -L mount	printf "%%s was	mounted	on %%s\n" %d %m	';'
	   $ dsbmc-cli -L add echo "Device %d of type %t was added." ';'

BSD				August 11, 2020				   BSD

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=dsbmc-cli&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help