SC_ATTACH(1) | General Commands Manual | SC_ATTACH(1) |
sc_attach
— simple
scamper driver.
sc_attach |
[-?dDv ]
[-c command]
[-i infile]
[-o outfile]
[-O options]
[-p [ip:]port]
[-P priority]
[-R unix-domain]
[-U unix-domain] |
The sc_attach
utility provides the ability
to connect to a running scamper(1) instance, have a set of
commands defined in a file be executed, and the output be written into a
single file, in warts format. The options are as follows:
-
?-d
-D
sc_attach
to operate as a daemon.-v
sc_attach
and
exits.-c
command-i
infile-o
outfile-O
optionssc_attach
to be further
tailored. The current choices for this option are:
-p
[ip:]portsc_attach
connects to the specified port on the
local host.-P
priority-R
unix-domain-U
unix-domainGiven a set of commands in a file named infile.txt:
tbit -M 1280 -u 'http://www.example.com/' 2620:0:2d0:200::10 trace -P udp-paris -M 192.0.2.1 ping -P icmp-echo 192.0.32.10
and a scamper(1) daemon listening on port 31337, then these commands can be executed using:
sc_attach -i infile.txt -o outfile.warts -p 31337
Given a set of addresses in a file named infile2.txt:
2620:0:2d0:200::10 192.0.2.1 192.0.32.10
these addresses can be pinged with
sc_attach
operating as a daemon with:
sc_attach -D -c 'ping' -i infile2.txt -o outfile2.warts -p 31337
sc_attach
was written by Matthew Luckie
<mjl@luckie.org.nz>.
February 2, 2016 | Debian |