| 914 | |
| 915 | === Results of testing step 1: 2013-03-12 === |
| 916 | |
| 917 | Here goes again --- again, easiest to redo from scratch. |
| 918 | |
| 919 | Testing on `boss.instageni.gpolab.bbn.com`: |
| 920 | |
| 921 | * `sockstat -lL46` is my goto on FreeBSD. Get a full list of all binaries of processes which are listening on IPv4 or IPv6 sockets from non-localhost addresses: |
| 922 | {{{ |
| 923 | boss.instageni.gpolab.bbn.com,[~],14:24(0)$ for pid in $(sockstat -lL46 | awk '{print $3}' | grep -v PID | sort -u); do procstat -b $pid; done | awk '{print $3}' | sort -u |
| 924 | usage: procstat [-h] [-C] [-M core] [-N system] [-w interval] |
| 925 | [-b | -c | -e | -f | -i | -j | -k | -l | -s | -t | -v | -x] [-a | pid ...] |
| 926 | /usr/libexec/sendmail/sendmail |
| 927 | /usr/local/bin/perl |
| 928 | /usr/local/bin/python2.7 |
| 929 | /usr/local/libexec/pubsubd |
| 930 | /usr/local/libexec/tftpd |
| 931 | /usr/local/sbin/dhcpd |
| 932 | /usr/local/sbin/httpd |
| 933 | /usr/sbin/inetd |
| 934 | /usr/sbin/lwresd |
| 935 | /usr/sbin/mountd |
| 936 | /usr/sbin/nfsd |
| 937 | /usr/sbin/ntpd |
| 938 | /usr/sbin/rpcbind |
| 939 | /usr/sbin/sshd |
| 940 | /usr/sbin/syslogd |
| 941 | /usr/testbed/sbin/bootinfo |
| 942 | /usr/testbed/sbin/mfrisbeed |
| 943 | /usr/testbed/sbin/sdcollectd |
| 944 | /usr/testbed/sbin/tmcd |
| 945 | PATH |
| 946 | }}} |
| 947 | * The errors were a couple of pids which get reported as `?`: |
| 948 | {{{ |
| 949 | boss.instageni.gpolab.bbn.com,[~],07:57(0)$ sockstat -lL46 |
| 950 | USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS |
| 951 | ... |
| 952 | ? ? ? ? udp4 *:2049 *:* |
| 953 | ? ? ? ? udp6 *:2049 *:* |
| 954 | }}} |
| 955 | In the previous test, i concluded that this is normal nfsd weirdness and no cause for alarm. |
| 956 | * So, the list of listeners is still: |
| 957 | {{{ |
| 958 | /usr/libexec/sendmail/sendmail |
| 959 | /usr/local/bin/perl |
| 960 | /usr/local/bin/python2.7 |
| 961 | /usr/local/libexec/pubsubd |
| 962 | /usr/local/libexec/tftpd |
| 963 | /usr/local/sbin/dhcpd |
| 964 | /usr/local/sbin/httpd |
| 965 | /usr/sbin/inetd |
| 966 | /usr/sbin/lwresd |
| 967 | /usr/sbin/mountd |
| 968 | /usr/sbin/nfsd |
| 969 | /usr/sbin/ntpd |
| 970 | /usr/sbin/rpcbind |
| 971 | /usr/sbin/sshd |
| 972 | /usr/sbin/syslogd |
| 973 | /usr/testbed/sbin/bootinfo |
| 974 | /usr/testbed/sbin/mfrisbeed |
| 975 | /usr/testbed/sbin/sdcollectd |
| 976 | /usr/testbed/sbin/tmcd |
| 977 | }}} |
| 978 | * The following commands are sourced from freebsd packages: |
| 979 | {{{ |
| 980 | boss.instageni.gpolab.bbn.com,[~],14:28(0)$ pkg_info -W /usr/local/bin/perl |
| 981 | /usr/local/bin/perl was installed by package perl-5.12.4_3 |
| 982 | boss.instageni.gpolab.bbn.com,[~],14:29(0)$ pkg_info -W /usr/local/bin/python2.7/usr/local/bin/python2.7 was installed by package python27-2.7.2_4 |
| 983 | boss.instageni.gpolab.bbn.com,[~],14:29(0)$ pkg_info -W /usr/local/libexec/pubsubd |
| 984 | /usr/local/libexec/pubsubd was installed by package pubsub-0.95 |
| 985 | boss.instageni.gpolab.bbn.com,[~],14:29(0)$ pkg_info -W /usr/local/libexec/tftpd/usr/local/libexec/tftpd was installed by package emulab-tftp-hpa-0.48 |
| 986 | boss.instageni.gpolab.bbn.com,[~],14:29(0)$ pkg_info -W /usr/local/sbin/dhcpd |
| 987 | /usr/local/sbin/dhcpd was installed by package isc-dhcp42-server-4.2.3_2 |
| 988 | boss.instageni.gpolab.bbn.com,[~],14:29(0)$ pkg_info -W /usr/local/sbin/httpd |
| 989 | /usr/local/sbin/httpd was installed by package apache-2.2.22_5 |
| 990 | }}} |
| 991 | * So the summary of sourced packages here is: |
| 992 | {{{ |
| 993 | apache-2.2.22_5 |
| 994 | emulab-tftp-hpa-0.48 |
| 995 | isc-dhcp42-server-4.2.3_2 |
| 996 | perl-5.12.4_3 |
| 997 | pubsub-0.95 |
| 998 | python27-2.7.2_4 |
| 999 | }}} |
| 1000 | * Not bothering to verify the distinfo from /usr/ports again, because i did it before, and the versions haven't changed |
| 1001 | * The following commands aren't part of packages (`pkg_info -W` reports nothing): |
| 1002 | {{{ |
| 1003 | /usr/libexec/sendmail/sendmail |
| 1004 | /usr/sbin/inetd |
| 1005 | /usr/sbin/lwresd |
| 1006 | /usr/sbin/mountd |
| 1007 | /usr/sbin/nfsd |
| 1008 | /usr/sbin/ntpd |
| 1009 | /usr/sbin/rpcbind |
| 1010 | /usr/sbin/sshd |
| 1011 | /usr/sbin/syslogd |
| 1012 | /usr/testbed/sbin/bootinfo |
| 1013 | /usr/testbed/sbin/mfrisbeed |
| 1014 | /usr/testbed/sbin/sdcollectd |
| 1015 | /usr/testbed/sbin/tmcd |
| 1016 | }}} |
| 1017 | * The assumption is that these are either part of the FreeBSD base system, or are part of Emulab. How do we find out which? |
| 1018 | * I can look in the canonical source of the emulab compile, which should be `/usr/testbed/obj/testbed`. Here's a process for checking various things in `/usr/testbed/sbin`, on the suspicion that they are probably Emulab binaries: |
| 1019 | {{{ |
| 1020 | cd /usr/testbed/obj/testbed |
| 1021 | shortname=bootinfo # or whatever |
| 1022 | shortmd5=$(md5 /usr/testbed/sbin/$shortname | awk '{print $4}') |
| 1023 | for path in $(find . -type f -name $shortname 2> /dev/null); do md5 $path; done | grep $shortmd5 |
| 1024 | }}} |
| 1025 | * This time, i found matches for: |
| 1026 | {{{ |
| 1027 | MD5 (./clientside/os/frisbee.redux/mfrisbeed) = 0d90a44d74e4c3520835de15a1743d01 |
| 1028 | MD5 (./clientside/sensors/slothd/sdcollectd) = 11891c5aeb0734a88ce6c153186daaf4 |
| 1029 | MD5 (./tmcd/tmcd) = ba4eba54de73ea90a1ab20be2bcd1ad5 |
| 1030 | }}} |
| 1031 | * Still not bootinfo, but that's an unsurprising consequence of the previous snowflakiness --- bootinfo hasn't been recompiled since the source was synced up properly: |
| 1032 | {{{ |
| 1033 | -rwxr-xr-x 1 root tbadmin 141046 Feb 26 11:10 /usr/testbed/sbin/bootinfo* |
| 1034 | }}} |
| 1035 | So i don't expect this to be an issue for fresh rack installs. |
| 1036 | * The src files on this boss now date from the approximate time of the last install: |
| 1037 | {{{ |
| 1038 | boss.instageni.gpolab.bbn.com,[/usr/testbed/src/testbed],14:33(0)$ git log | head -3 |
| 1039 | commit 7e584af01b968c18b7d87fe7e78a5dde3549c47f |
| 1040 | Author: Leigh B Stoller <stoller@flux.utah.edu> |
| 1041 | Date: Fri Mar 8 12:22:38 2013 -0700 |
| 1042 | |
| 1043 | boss.instageni.gpolab.bbn.com,[/usr/testbed/src/testbed],14:33(0)$ ls -lart /usr |
| 1044 | /testbed/sbin/ | tail |
| 1045 | -rwxr-xr-x 1 root tbadmin 7658 Mar 8 19:39 load-descriptors* |
| 1046 | -rwxr-xr-x 1 root tbadmin 4767 Mar 8 19:39 jabbersetup* |
| 1047 | lrwxr-xr-x 1 root tbadmin 28 Mar 8 19:39 deljabberuser@ -> /usr/testbed/libexec/runsuid |
| 1048 | lrwxr-xr-x 1 root tbadmin 28 Mar 8 19:39 deljabberchat@ -> /usr/testbed/libexec/runsuid |
| 1049 | lrwxr-xr-x 1 root tbadmin 28 Mar 8 19:39 addjabberuser@ -> /usr/testbed/libexec/runsuid |
| 1050 | lrwxr-xr-x 1 root tbadmin 28 Mar 8 19:39 addjabberchat@ -> /usr/testbed/libexec/runsuid |
| 1051 | drwxr-xr-x 2 root tbadmin 1024 Mar 8 19:39 protogeni/ |
| 1052 | lrwxr-xr-x 1 root tbadmin 28 Mar 8 19:39 gencabundle@ -> /usr/testbed/libexec/runsuid |
| 1053 | lrwxr-xr-x 1 root tbadmin 28 Mar 8 19:39 cleanupslice@ -> /usr/testbed/libexec/runsuid |
| 1054 | drwxrwxr-x 4 root tbadmin 5120 Mar 8 19:39 ./ |
| 1055 | }}} |