11.3 posGetIP

posGetIP is a helper script that is used in conjunction with adminc. It finds all addresses for Point of Service terminals that are managed by the local Branch Server. This tool must be run on the Branch Server. Output is the list of addresses, one line each.

Both IP and MAC addresses can be listed. Default is to list the IP addresses. It finds its server base by looking at the IP addresses that are configured on the local machines. /etc/opt/SLES/POS/branchserver.conf is used to find the LDAP connection information.

11.3.1 Command Line Options

posGetIP has the following command syntax:

posGetIP [--ip|noip] [--mac] 

Table 11-3 summarizes the available posGetIP command options.

Table 11-3 posGetIP command options

Option

Description

--ip

Prints the IP addresses of all Point of Service terminals that are managed by the local Branch Server.

This option is enabled by default.

--noip

Provides a screen dump of the Point of Service terminals that are managed by the local Branch Server. This option does not print the IP addresses of the Point of Service terminals managed by the current Branch Server.

--mac

Prints the MAC address of all Point of Service terminals that are managed by the local Branch Sever.

11.3.2 posGetIP Examples

adminc --command 6 ‘posGetIP‘
adminc --wake ‘posGetip --mac --noip‘