]>
Commit | Line | Data |
---|---|---|
e2fb63d0 TP |
1 | Index: arpwatch/arpfetch |
2 | diff -u arpwatch/arpfetch:1.1.1.1 arpwatch/arpfetch:1.1.1.1.18.1 | |
3 | --- arpwatch/arpfetch:1.1.1.1 Tue Apr 17 13:31:36 2001 | |
4 | +++ arpwatch/arpfetch Wed Aug 11 21:54:18 2004 | |
5 | @@ -1,5 +1,4 @@ | |
6 | #!/bin/sh | |
7 | -# @(#) $Id$ (LBL) | |
8 | # | |
9 | # arpfetch - collect arp data from a cisco using snmpwalk | |
10 | # | |
11 | @@ -10,8 +9,8 @@ | |
12 | # | |
13 | host=$1 | |
14 | cname=$2 | |
15 | -temp=/tmp/arpfetch.temp.$$ | |
16 | -errs=/tmp/arpfetch.errs.$$ | |
17 | +temp=`tempfile -p arpft -s .temp.tmp` | |
18 | +errs=`tempfile -p arpft -s .errs.tmp` | |
19 | what="ip.ipnettomediatable.ipnettomediaentry.ipnettomediaphysaddress" | |
20 | # | |
21 | # Get the data | |
22 | Index: arpwatch/bihourly | |
23 | diff -u arpwatch/bihourly:1.1.1.1 arpwatch/bihourly:1.1.1.1.18.1 | |
24 | --- arpwatch/bihourly:1.1.1.1 Tue Apr 17 13:31:36 2001 | |
25 | +++ arpwatch/bihourly Wed Aug 11 21:54:18 2004 | |
26 | @@ -11,6 +11,7 @@ | |
27 | list=`cat list` | |
28 | cname=`cat cname` | |
29 | errs=/tmp/bihourly.$$ | |
30 | +errs=`tempfile -p arpbh -s .tmp` | |
31 | # | |
32 | alist="" | |
33 | for r in $list; do \ | |
34 | Index: arpwatch/mkdep | |
35 | diff -u arpwatch/mkdep:1.1.1.1 arpwatch/mkdep:1.1.1.1.18.1 | |
36 | --- arpwatch/mkdep:1.1.1.1 Tue Apr 17 13:31:37 2001 | |
37 | +++ arpwatch/mkdep Wed Aug 11 21:54:18 2004 | |
38 | @@ -51,7 +51,7 @@ | |
39 | exit 1 | |
40 | fi | |
41 | ||
42 | -TMP=/tmp/mkdep$$ | |
43 | +TMP=`tempfile -p mkdep -s .tmp` | |
44 | ||
45 | trap 'rm -f $TMP ; exit 1' 1 2 3 13 15 | |
46 |