ftp test with ":q" parameter
list John Thurston
I found this in my hosts.cfg and can't figure out what I was trying do:
0.0.0.0 foo.bar.com # ftp:21:q
I can't find any documentation for the :q parameter.
I'm looking in source, but can't find now where those are parsed.
What does/did this :q do? Anything?
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list Brian Scott
vi command to quit while in insert mode perhaps?
▸
On 15/9/17 5:28 am, John Thurston wrote:I found this in my hosts.cfg and can't figure out what I was trying do: 0.0.0.0 foo.bar.com # ftp:21:q I can't find any documentation for the :q parameter. I'm looking in source, but can't find now where those are parsed. What does/did this :q do? Anything?
list Schminke_Erik_D
I concur with Brian. The most likely reason for the ":q" was an errant vi quit command. Looks like a ":s" would be valid. I'll refer you to the manpage for host.cfg ( http://xymon.sourceforge.net/xymon/help/manpages/man5/hosts.cfg.5.html), under the heading "Simple Network Tests". My reading of that suggests that you would use that configuration directive to tell Xymon not to send any of the test data defined for the service from the protocols.cfg file. I'll also point out, that the :21 isn't necessary either. This would only be necessary if you wanted to test a service that would be running on a non-standard port. The example given is ssh. Ordinarily, that runs on port 22, but if you wanted to perform an SSH test listening on port 8022, you would use "ssh:8022". The default port number is defined in protocols.cfg ( http://xymon.sourceforge.net/xymon/help/manpages/man5/protocols.cfg.5.html) . If a port number for a defined service is not found, it will use what is defined in /etc/services, if one can be found. Erik D. Schminke | Associate Systems Programmer Hormel Foods Corporation | One Hormel Place | Austin, MN XXXXX Phone: (XXX) XXX-XXXX user-15513f33c451@xymon.invalid | www.hormelfoods.com
list John Thurston
▸
On 9/15/2017 6:48 AM, user-15513f33c451@xymon.invalid wrote:
I concur with Brian. The most likely reason for the ":q" was an errant vi quit command.
I agree. I use nano on this host, but vi on most others.
▸
Looks like a ":s" would be valid. . . I'll also point out, that the :21 isn't necessary either. This would only be necessary if you wanted to test a service that would be running on a non-standard port. . . .
And for this host, I do have additional tests for the ftp service against other ports. In this case the port designation isn't required from a functional standpoint, but it is from a documentation perspective.
▸
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska