table of contents
other versions
- wheezy 4.3.0~beta2.dfsg-9.1
BB-SERVICES(5) | File Formats Manual | BB-SERVICES(5) |
NAME¶
bb-services - Configuration of TCP network servicesSYNOPSIS¶
$BBHOME/etc/bb-servicesDESCRIPTION¶
bb-services contains definitions of how bbtest-net(1) should test a TCP-based network service (i.e. all common network services except HTTP and DNS). For each service, a simple dialogue can be defined to check that the service is functioning normally, and optional flags determine if the service has e.g. a banner or requires SSL- or telnet-style handshaking to be tested.FILE FORMAT¶
bb-services is a text file. A simple service definition for the SMTP service would be this:[smtp]
send "mail\r\nquit\r\n"
expect "220"
options banner
- [NAME]
- Define the name of the TCP service, which will also be the
column-name in the resulting display on the test status. If multiple tests
share a common definition (e.g. ssh, ssh1 and ssh2 are tested
identically), you may list these in a single "[ssh|ssh1|ssh2]"
definition, separating each service-name with a pipe-sign.
- send STRING
- expect STRING
- Defines the strings to send to the service after a
connection is established, and the response that is expected. Either of
these may be omitted, in which case bbtest-net(1) will simply not
send any data, or match a response against anything.
- port NUMBER
- Define the default TCP port-number for this service. If no
portnumber is defined, bbtest-net(1) will attempt to lookup the
portnumber in the standard /etc/services file.
- options option1[,option2][,option3]
- Defines test options. The possible options are
banner - include received data in the status message
ssl - service uses SSL so perform an SSL handshake
telnet - service is telnet, so exchange telnet options
FILES¶
$BBHOME/etc/bb-servicesSEE ALSO¶
bbtest-net(1)Version 4.2.3: 4 Feb 2009 | Xymon |