Provided by: netams_3.4.5-2ubuntu2_amd64
netamsctl - command-line configuration tool for NeTAMS daemon
netamsctl [ -s -f <config-file> ] command ...
NeTAMS is a Network Traffic Accounting and Monitoring Software. Upon startup, netams daemon process is accessible via command-line interface provided by its "server" service. To connect, a generic telnet application could be used. However, sometimes it is neccessary to issue just a single command: consider an activity monitoring script, for example. In this case it is useful to provide some level of automation and avoid login/password typing. That is wherer netamsctl is useful. netamsctl is a simple telnet-like application. It does automatic login onto running NeTAMS process, ad it will issue a number of commands specified as arguments. Daemon's output will be then directed to stdout.
-f config-file config-file specifies an alternate configuration file to use. -s run silently, do not print username/password/port and command
CONFIGURATION FILE FORMAT
By default, netamsctl will search for a configuration file there: ~/.netamsctl.rc /etc/netams/netamsctl.rc Pathname could be overriden with command-line option -f . That file should contain at most following lines: login= your_netams_login_name password= your_netams_password_unencrypted host= host_name_or_IP_where_netams_running
You can specify a single netams comamnd, or a number of commands separated by ' && ' sequence (be aware of spaces). Multiple commands are neccessary to configure netams services. For exapmle: netamsctl "show version" netamsctl "service processor && unit host name AA sys-deny && exit"
Of course, you should have NeTAMS daemon running somewhere, and neccessary access rights.
Anton Vinokurov <firstname.lastname@example.org> 24 April 2006 netamsctl(8)