Commiter: Ernst Doubt
Author: Ernst Doubt
(2008/11/26 04:28) Over 3 years ago
hoping git works
1
K 25
2
svn:wc:ra_dav:version-url
3
V 41
4
/cms/!svn/ver/951/public/library/servback
5
END
6
introspection
7
8
9
V 55
10
/cms/!svn/ver/661/public/library/servback/introspection
11
12
spacehunter
13
14
15
V 53
16
/cms/!svn/ver/686/public/library/servback/spacehunter
17
18
qs
19
20
21
V 44
22
/cms/!svn/ver/948/public/library/servback/qs
23
24
querysys
25
26
27
V 50
28
/cms/!svn/ver/951/public/library/servback/querysys
29
dir
1321
https://svn.simons-rock.edu/cms/public/library/servback
https://svn.simons-rock.edu/cms
2006-01-10T15:12:44.737046Z
951
cderr
svn:special svn:externals svn:needs-lock
fd07755c-0be5-0310-ae69-88c837e10dea
30
file
31
32
33
34
35
2008-08-29T13:50:39.000000Z
36
03b5886ba030f07b73c3d5eb75703ce8
37
2004-12-28T06:16:37.730918Z
38
661
39
40
has-props
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
182
62
63
64
65
66
67
68
69
70
0586622505d8b6b8c6a25d748f8ea318
71
2005-01-03T02:15:26.940685Z
72
686
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
360
96
97
98
99
100
101
102
103
104
ed8dd4dbc1a21b917dba49d7c8646a2c
105
2005-10-06T02:15:04.971843Z
106
948
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
415
130
131
132
133
134
135
136
137
138
7e5ba7470171a622910d0125803c61e9
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
1473
164
K 14
svn:executable
V 1
*
#!/usr/bin/env ruby
testnum = 12
array21 = {testnum, " ", testnum, 899}
beep = array21.size
numtype = testnum.class
beeptype = beep.class
array21type = array21.class
puts
__END__
# 10/14/2004 ckd
script = File.new(__FILE__)
stuff = script.read
stuff += %x('uname' '-a')
stuff += %x('lspci' '-vv')
stuff += %x('/sbin/ifconfig' '-a')
stuff += %x('/bin/dmesg')
ENV["COLUMNS"] = "150"
stuff += %x('dpkg' '-l')
stuff += %x('gem' 'list' '--local')
stuff += %x('apt-cache' 'policy')
stuff += %x('date')
output = File.new("outq", "w+")
output.write(stuff)
output.close
#!/bin/sh
#Oct1 2004 ckd -- updated Aug 2005 ckd
# Modifications by SS 20050924
#eventually an if thing w/the next commented line would be good
#cp 'which querysys' /tmp/outquery
# cp querysys /tmp/outquery
# file descriptor trick to redirect STDOUT to $LOG
LOG='/tmp/outquery'
exec 6>&1
exec > $LOG
# catt is like cat but without blank lines and comments
if [ -x /bin/egrep ]; then
alias catt="/bin/egrep -v '^[:space:]*$|^#'";
else
alias catt="cat";
fi
echo $HOSTNAME
date
echo -e "\n== Hardware =="
lspci
dmesg
cat /proc/cpuinfo
echo -e "\n== Disks =="
df -h
cat /etc/fstab
mount
echo -e "\n== Kernel =="
uname -a
/bin/gunzip -c /proc/config.gz
catt /etc/lilo.conf
catt /boot/grub/menu.lst
echo -e "\n== Network =="
/sbin/ifconfig -a
/sbin/route -n
cat /etc/resolv.conf
/sbin/iptables -L
echo -e "\n== Processes =="
uptime
nmap localhost $HOSTNAME | egrep 'open|filtered' | sort | uniq
cat /etc/crontab
# only tested on Debian
echo -e "\n==Packages =="
if [ -x /usr/bin/dpkg ]; then
catt /etc/apt/sources.list
cat /var/log/aptitude
# dpkg needs wide columns
OLDCOL=$COLUMNS
export COLUMNS=150
/usr/bin/dpkg -l;
export COLUMNS=$OLDCOL
elif [ -x /usr/bin/yum ]; then
/usr/bin/yum list installed;
elif [ -x /bin/rpm ]; then
/bin/rpm -aq;
if [ -x /bin/date ]; then
/bin/date
# copy $LOG to $PWD or $HOME
if ! (cp -f $LOG ./); then
cp -f $LOG ~/;
# reset file descriptors
exec 1>&6 6>&-
## end
require 'find'
size=0;
def check_dir_size( dirextory )
@localsize = 0
@initdir = Dir.pwd
Dir.chdir( dirextory)
Find.find(".") { |f|
if test(?f, f)
@localsize += File.size(f)
elsif test(?d, f)
@localsize += check_dir_size(dirextory + "/" + f)
end
}
Dir.chdir(@initdir)
@localsize
array21 = {testnum, " ", testnum, 899}stuff += %x('uname' '-a')stuff += %x('lspci' '-vv')stuff += %x('/sbin/ifconfig' '-a')stuff += %x('/bin/dmesg')stuff += %x('dpkg' '-l')stuff += %x('gem' 'list' '--local')stuff += %x('apt-cache' 'policy')stuff += %x('date')output = File.new("outq", "w+")Find.find(".") { |f|array21 = {testnum, " ", testnum, 899}stuff += %x('uname' '-a')stuff += %x('lspci' '-vv')stuff += %x('/sbin/ifconfig' '-a')stuff += %x('/bin/dmesg')stuff += %x('dpkg' '-l')stuff += %x('gem' 'list' '--local')stuff += %x('apt-cache' 'policy')stuff += %x('date')output = File.new("outq", "w+")Find.find(".") { |f|