![background image](/i/tripp-lite/128520/tripp-lite-b094-008-2e-m-f-b096-048-b096-016-b094-008-2e-v-b096-032/h/tripp-lite-b094-008-2e-m-f-b096-048-b096-016-b094-008-2e-v-b096-032-208.png)
208
Chapter 14: Command Line Configuration
14.1.21 Services
You can manually enable or disable network servers from the command line. For example if you wanted to guarantee the
following server configuration:
HTTP Server
Enabled
HTTPS Server
Disabled
Telnet Server
Disabled
SSH Server
Enabled
SNMP Server
Disabled
Ping Replies (Respond to ICMP echo requests)
Disabled
TFTP
server
Enabled
# config -s config.services.http.enabled=on
# config -d config.services.https.enabled
# config -d config.services.telnet.enabled
# config -s config.services.ssh.enabled=on
# config -d config.services.snmp.enabled
# config -d config.services.pingreply.enabled
# config -s config.services.tftp.enabled=on
To set secondary port ranges for any service
# config -s config.services.telnet.portbase='port base number'
Default: 2000
# config -s config.services.ssh.portbase='port base number'
Default: 3000
# config -s config.services.tcp.portbase='port base number'
Default: 4000
# config -s config.services.rfc2217.portbase='port base number'
Default: 5000
# config -s config.services.unauthtel.portbase='port base number
Default: 6000
The following command will synchronize the live system with the new configuration:
# config -a
14.1.22 NAGIOS
To configure NAGIOS with the following settings:
NAGIOS host name
b095 (Name of this system)
NAGIOS host address
192.168.0.1 (IP to find this device at)
NAGIOS server address
192.168.0.10 (upstream NAGIOS server)
Enable SDT for NAGIOS ext.
Enabled
SDT gateway address
192.168.0.1 (defaults to host address)
Prefer NRPE over NSCA
Disabled (defaults to Disabled)
# config -s config.system.nagios.enabled=on
# config -s config.system.nagios.name=b095
# config -s config.system.nagios.address=192.168.0.1
# config -s config.system.nagios.server.address=192.168.0.10
# config -s config.system.nagios.sdt.disabled=on (disables SDT for nagios extensions)
# config -s config.system.nagios.sdt.address=192.168.0.1
# config -s config.system.nagios.nrpe.prefer=''
To configure NRPE with following settings:
NRPE port
5600 (port to listen on for nrpe. Defaults to 5666)
NRPE user
user1 (User to run as. Defaults to nrpe)
NRPE group
group1 (Group to run as. Defaults to nobody)
Allow command arguments
Enabled
# config -s config.system.nagios.nrpe.enabled=on
# config -s config.system.nagios.nrpe.port=5600
# config -s config.system.nagios.user=user1
# config -s config.system.nagios.nrpe.group=group1
# config -s config.system.nagios.nrpe.cmdargs=on