1SC_ATTACH(1)              BSD General Commands Manual             SC_ATTACH(1)
2

NAME

4     sc_attach — simple scamper driver.
5

SYNOPSIS

7     sc_attach [-?dDv] [-c command] [-i infile] [-o outfile] [-p [ip:]port]
8               [-P priority]
9

DESCRIPTION

11     The sc_attach utility provides the ability to connect to a running
12     scamper(1) instance, have a set of commands defined in a file be exe‐
13     cuted, and the output be written into a single file, in warts format.
14     The options are as follows:
15
16     -?      prints a list of command line options and a synopsis of each.
17
18     -d      prints each command sent to scamper(1) on stderr.
19
20     -D      causes sc_attach to operate as a daemon.
21
22     -v      prints the current revision of sc_attach and exits.
23
24     -c command
25             specifies the scamper(1) command to prepend to each address in
26             the input file.
27
28     -i infile
29             specifies the name of the input file which consists of a sequence
30             of scamper(1) commands or addresses (with the -c option), one per
31             line.  If '-' is specified, commands are read from stdin.
32
33     -o outfile
34             specifies the name of the output file to be written.  The output
35             file will use the warts format.  If '-' is specified, output will
36             be sent to stdout.
37
38     -p [ip:]port
39             specifies the IP address and port where a scamper(1) is accepting
40             control socket connections.  If an IP address is not specified,
41             sc_attach connects to the specified port on the local host.
42
43     -P priority
44             specifies the mixing priority scamper(1) should assign to the
45             source.
46

EXAMPLES

48     Given a set of commands in a file named infile.txt:
49
50        tbit -M 1280 -u 'http://www.example.com/' 2620:0:2d0:200::10
51        trace -P udp-paris -M 192.0.2.1
52        ping -P icmp-echo 192.0.32.10
53
54     and a scamper(1) daemon listening on port 31337, then these commands can
55     be executed using:
56
57     sc_attach -i infile.txt -o outfile.warts -p 31337
58
59     Given a set of addresses in a file named infile2.txt:
60
61        2620:0:2d0:200::10
62        192.0.2.1
63        192.0.32.10
64
65     these addresses can be pinged with sc_attach operating as a daemon with:
66
67     sc_attach -D -c 'ping' -i infile2.txt -o outfile2.warts -p 31337
68

SEE ALSO

70     scamper(1), sc_wartsdump(1), sc_warts2text(1)
71

AUTHORS

73     sc_attach is written by Matthew Luckie <mjl@luckie.org.nz>.
74
75BSD                            October 15, 2010                            BSD
Impressum