Table of Contents

Name

masn - assign meters from a file of saved assignments

Synopsis

masn <meter_host> <dbman_host>

Description

Assign meters from a file of meter assignments. The file is read from the stdin and assignments are performed from it. The file is usually created with masnrd.

Arguments


meter_host
The host where meterd is running.
dbman_host

The host where dbman is running.

Environment Variables

METER

If the command line argument meter_host is present it overrides the environment variable otherwise this value is used as the host name for meterd.

If METER is missing from the environment and the meter_host command line argument is not present the hostname defaults to localhost.

DBMAN_HOST

If the command line argument dbman_host is present it overrides the environment variable. otherwise this value is used as the host name for dbmand

If DBMAN_HOST is missing from the environment and the dbman_host command line argument is not present the hostname defaults to localhost.

Exit Codes

The program exits with a 0 on success.
The program exits with a 1 on all fatal errors.

Notes

DBMAN_HOST is used to provide the host argument in the assign request passed to meterd. It would be better for the assignments file to contain the dbman host name rather than provide it in this way since meterd is capable of handling more than one running copy of dbman at a time.

See Also


assignd(8)
knobd(8)
meterd(8)
METERconf(5)
masnrd(1)

Examples

masn csdev1 csdev1 < saved_meter_assignments

Manual page revision

$Id: masn.1,v 1.2 2001/10/19 16:47:06 kitchen Exp $


Table of Contents