11.2 adminc

adminc distributes commands to Point of Service terminals running admind. It sends a command string to list of IP addresses. adminc attempts to connect to clients in parallel up to a specified maximum number.

adminc can also be used to start (wake) a series of terminals designated by MAC address.

11.2.1 Command Line Options

adminc has the following command syntax:

adminc [--port] portno
       [--parallel] maxparallel
       [--commands] keys IP [IP*] 
adminc [--wake] MAC [MAC*] 

summarizes the available options for adminc.

Table 11-2 adminc command line options

Option

Description

--port

The port number that admind listens on. The default is 8888.

--parallel

The maximum number of parallel sessions to start. The default is 8.

--commands

The command keys to be sent to clients. The command keys are specified in the client’s admind.conf file.

--wake MAC MAC_addresses

The wake command starts the designated clients. Clients are designated by their MAC addresses.

11.2.2 adminc Examples

adminc --command 0 192.168.99.11 192.168.99.12 192.168.99.13
Node: 192.168.99.11   Exit Code: 0
Node: 192.168.99.12   Exit Code: 65280
Node: 192.168.99.13   Exit Code: 0