Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save grahamperrin/972c8561459c29d5f7212a39f00846ee to your computer and use it in GitHub Desktop.
Save grahamperrin/972c8561459c29d5f7212a39f00846ee to your computer and use it in GitHub Desktop.
$ date ; uptime ; uname -v ; uname -n
Sat 24 Dec 2016 10:06:40 GMT
10:06a.m. up 4:35, 1 users, load averages: 1.06, 1.07, 1.03
FreeBSD 12.0-CURRENT #10 a4012d9(drm-next-4.7): Fri Dec 23 00:27:25 UTC 2016 root@gauntlet:/usr/obj/usr/src/sys/GENERIC
momh167-gjp4-ergovista621-trueos.university.brighton.ac.uk
$ beadm list
BE Active Mountpoint Space Created Nickname
initial - - 1.9G 2016-12-18 14:11 initial
12.0-CURRENT-up-20161218_162142 - - 1.4G 2016-12-18 16:11 12.0-CURRENT-up-20161218_162142
12.0-CURRENT-up-20161220_080030 - - 928.2M 2016-12-20 07:57 12.0-CURRENT-up-20161220_080030
12.0-CURRENT-up-20161222_074050 - - 702.1M 2016-12-22 07:32 12.0-CURRENT-up-20161222_074050
12.0-CURRENT-up-20161224_053040 NR / 12.0G 2016-12-24 05:27 updaterstage
$ cat /etc/rc.conf
rc_parallel="NO"
rc_logger="YES"
rc_log_path="/var/log/rc.log"
linux_enable="YES"
# Auto-Enabled NICs from pc-sysinstall
ifconfig_re0="DHCP"
ifconfig_wlan0="WPA DHCP"
wlans_wpi0="wlan0"
# Auto-Enabled NICs from pc-sysinstall
ifconfig_re0_ipv6="inet6 accept_rtadv"
hostname="momh167-gjp4-ergovista621-trueos.university.brighton.ac.uk"
kldload_i915kms="i915kms"
zfs_enable="YES"
sshd_enable="YES"
$ rc-status
Runlevel: default
zfs [ started ]
openntpd [ started ]
moused [ started ]
trueosinit [ started ]
sshd [ started ]
dbus [ started ]
netmount [ started ]
cupsd [ started ]
cups_browsed [ started ]
rpcbind [ started ]
statd [ started ]
lockd [ started ]
sysadm [ started ]
automount [ started ]
local [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
automountd [ started ]
modules-load [ started ]
nfsclient [ started ]
avahi-daemon [ started ]
Dynamic Runlevel: manual
network.re0 [ started ]
network.wlan0 [ started ]
moused.psm0 [ started ]
network.lo0 [ started ]
wpa_supplicant.wlan0 [ started ]
dhcpcd.re0 [ crashed ]
dhcpcd.wlan0 [ crashed ]
$ ifconfig | grep status
status: active
status: no carrier
$ ifconfig re0 | grep -v ether
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
inet6 fe80::21e:8cff:feb5:6298%re0 prefixlen 64 scopeid 0x1
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
$ rc-status | grep crashed
dhcpcd.re0 [ crashed ]
dhcpcd.wlan0 [ crashed ]
$ sudo rc-service dhcpcd.re0 restart
Password:
* Caching service dependencies ... [ ok ]
* Stopping DHCP Client Daemon (re0) ... [ ok ]
* Starting DHCP Client Daemon (re0) ... [ ok ]
$ rc-status | grep crashed
dhcpcd.wlan0 [ crashed ]
$ ifconfig re0 | grep inet
inet6 fe80::21e:8cff:feb5:6298%re0 prefixlen 64 scopeid 0x1
inet 192.168.2.9 netmask 0xffffff00 broadcast 255.255.255.255
$ time route show default
route to: default
destination: default
mask: default
gateway: 192.168.2.1
fib: 0
interface: re0
flags: <UP,GATEWAY,DONE,STATIC,FIXEDMTU>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 64 1 0
15.08 real 0.00 user 0.00 sys
$ sudo rc-service re0 stop
* rc-service: service `re0' does not exist
$ sudo rc-service network.re0 stop
* Stopping DHCP Client Daemon (re0) ... [ ok ]
$ sudo rc-service network.wlan0 restart
* Stopping DHCP Client Daemon (wlan0) ... [ ok ]
* Stopping wpa_supplicant (wlan0) ... [ ok ]
$ * Starting DHCP Client Daemon (wlan0) ... [ ok ]
ifconfig | grep status
status: active
status: associated
$ time route show default
route: route has not been found
0.00 real 0.00 user 0.00 sys
$ rc-status | grep crashed
dhcpcd.wlan0 [ crashed ]
$ sudo rc-service dhcpcd.wlan0 stop
* Caching service dependencies ... [ ok ]
* Stopping DHCP Client Daemon (wlan0) ... [ ok ]
$ sudo rc-service wpa_supplicant.wlan0 stop
* Stopping wpa_supplicant (wlan0) ... [ ok ]
$ sudo rc-service network.wlan0 stop
$ sudo rc-service network.wlan0 start
$ rc-status | grep wlan
network.wlan0 [ started ]
wpa_supplicant.wlan0 [ started ]
$ rc-status | grep wlan
network.wlan0 [ started ]
wpa_supplicant.wlan0 [ started ]
dhcpcd.wlan0 [ started ]
$ time route show default
route to: default
destination: default
mask: default
gateway: 192.168.1.1
fib: 0
interface: wlan0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
5.32 real 0.00 user 0.00 sys
$ time route show default
route to: default
destination: default
mask: default
gateway: 192.168.1.1
fib: 0
interface: wlan0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
5.08 real 0.00 user 0.00 sys
$ ping www.trueos.org
PING edge6.anycastcdn.net (78.46.36.169): 56 data bytes
64 bytes from 78.46.36.169: icmp_seq=0 ttl=54 time=25.783 ms
64 bytes from 78.46.36.169: icmp_seq=1 ttl=54 time=25.692 ms
64 bytes from 78.46.36.169: icmp_seq=2 ttl=54 time=25.736 ms
64 bytes from 78.46.36.169: icmp_seq=3 ttl=54 time=26.246 ms
64 bytes from 78.46.36.169: icmp_seq=4 ttl=54 time=25.800 ms
64 bytes from 78.46.36.169: icmp_seq=5 ttl=54 time=25.769 ms
64 bytes from 78.46.36.169: icmp_seq=6 ttl=54 time=26.007 ms
^C
--- edge6.anycastcdn.net ping statistics ---
7 packets transmitted, 7 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 25.692/25.862/26.246/0.182 ms
$ sudo pc-updatemanager check
Boot-strapping updater...OK
^C^C
$ rc-status
Runlevel: default
zfs [ started ]
openntpd [ started ]
moused [ started ]
trueosinit [ started ]
sshd [ started ]
dbus [ started ]
netmount [ started ]
cupsd [ started ]
cups_browsed [ started ]
rpcbind [ started ]
statd [ started ]
lockd [ started ]
sysadm [ started ]
automount [ started ]
local [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
automountd [ started ]
modules-load [ started ]
nfsclient [ started ]
avahi-daemon [ started ]
Dynamic Runlevel: manual
network.wlan0 [ started ]
moused.psm0 [ started ]
network.lo0 [ started ]
wpa_supplicant.wlan0 [ started ]
dhcpcd.wlan0 [ started ]
$ time sudo pc-updatemanager check
Boot-strapping updater...OK
Update file failed verification...
ERROR: Update file failed verification...
62.62 real 0.16 user 0.12 sys
$ drill
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 19487
;; flags: qr rd ra ; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
;; QUESTION SECTION:
;; . IN NS
;; ANSWER SECTION:
. 1148 IN NS a.root-servers.net.
. 1148 IN NS b.root-servers.net.
. 1148 IN NS c.root-servers.net.
. 1148 IN NS d.root-servers.net.
. 1148 IN NS e.root-servers.net.
. 1148 IN NS f.root-servers.net.
. 1148 IN NS g.root-servers.net.
. 1148 IN NS h.root-servers.net.
. 1148 IN NS i.root-servers.net.
. 1148 IN NS j.root-servers.net.
. 1148 IN NS k.root-servers.net.
. 1148 IN NS l.root-servers.net.
. 1148 IN NS m.root-servers.net.
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
a.root-servers.net. 433167 IN A 198.41.0.4
a.root-servers.net. 433167 IN AAAA 2001:503:ba3e::2:30
b.root-servers.net. 433167 IN A 192.228.79.201
b.root-servers.net. 433167 IN AAAA 2001:500:84::b
c.root-servers.net. 433167 IN A 192.33.4.12
c.root-servers.net. 433167 IN AAAA 2001:500:2::c
d.root-servers.net. 433167 IN A 199.7.91.13
d.root-servers.net. 433167 IN AAAA 2001:500:2d::d
e.root-servers.net. 433167 IN A 192.203.230.10
e.root-servers.net. 433167 IN AAAA 2001:500:a8::e
f.root-servers.net. 433167 IN A 192.5.5.241
f.root-servers.net. 433167 IN AAAA 2001:500:2f::f
g.root-servers.net. 433167 IN A 192.112.36.4
;; Query time: 1 msec
;; SERVER: 192.168.1.1
;; WHEN: Sat Dec 24 10:18:24 2016
;; MSG SIZE rcvd: 508
$ time sudo pc-updatemanager pkgcheck
Boot-strapping updater...OK
Updating trueos-base repository catalogue...
Fetching meta.txz: 100% 1 KiB 1.5kB/s 00:01
Fetching packagesite.txz: 100% 54 KiB 55.7kB/s 00:01
Processing entries: 100%
trueos-base repository update completed. 789 packages processed.
Updating trueos-major repository catalogue...
Fetching meta.txz: 100% 1 KiB 1.5kB/s 00:01
Fetching packagesite.txz: 100% 6 MiB 1.5MB/s 00:04
Processing entries: 100%
trueos-major repository update completed. 25752 packages processed.
All packages are up to date!
143.74 real 12.78 user 1.01 sys
$ date ; ifconfig | grep -v ether
Sat 24 Dec 2016 10:22:44 GMT
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
inet6 fe80::21e:8cff:feb5:6298%re0 prefixlen 64 tentative scopeid 0x1
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
inet6 fe80::21c:bfff:fecf:bfc4%wlan0 prefixlen 64 scopeid 0x3
inet 192.168.1.12 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a
status: associated
ssid piano channel 36 (5180 MHz 11a) bssid 58:1f:28:74:07:a8
regdomain FCC country US authmode WPA2/802.11i privacy ON
deftxkey UNDEF TKIP 2:128-bit txpower 17 bmiss 7 mcastrate 6
mgmtrate 6 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
roam:rssi 7 roam:rate 12 wme roaming MANUAL
groups: wlan
$ rc-status | grep re0
$ rc-status | grep wlan
network.wlan0 [ started ]
wpa_supplicant.wlan0 [ started ]
dhcpcd.wlan0 [ started ]
$ time route show default
route to: default
destination: default
mask: default
gateway: 192.168.1.1
fib: 0
interface: wlan0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
5.01 real 0.00 user 0.00 sys
$ drill
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 16914
;; flags: qr rd ra ; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
;; QUESTION SECTION:
;; . IN NS
;; ANSWER SECTION:
. 834 IN NS c.root-servers.net.
. 834 IN NS d.root-servers.net.
. 834 IN NS e.root-servers.net.
. 834 IN NS f.root-servers.net.
. 834 IN NS g.root-servers.net.
. 834 IN NS h.root-servers.net.
. 834 IN NS i.root-servers.net.
. 834 IN NS j.root-servers.net.
. 834 IN NS k.root-servers.net.
. 834 IN NS l.root-servers.net.
. 834 IN NS m.root-servers.net.
. 834 IN NS a.root-servers.net.
. 834 IN NS b.root-servers.net.
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
a.root-servers.net. 432834 IN A 198.41.0.4
a.root-servers.net. 432834 IN AAAA 2001:503:ba3e::2:30
b.root-servers.net. 432834 IN A 192.228.79.201
b.root-servers.net. 432834 IN AAAA 2001:500:84::b
c.root-servers.net. 432834 IN A 192.33.4.12
c.root-servers.net. 432834 IN AAAA 2001:500:2::c
d.root-servers.net. 432834 IN A 199.7.91.13
d.root-servers.net. 432834 IN AAAA 2001:500:2d::d
e.root-servers.net. 432834 IN A 192.203.230.10
e.root-servers.net. 432834 IN AAAA 2001:500:a8::e
f.root-servers.net. 432834 IN A 192.5.5.241
f.root-servers.net. 432834 IN AAAA 2001:500:2f::f
g.root-servers.net. 432834 IN A 192.112.36.4
;; Query time: 12 msec
;; SERVER: 192.168.1.1
;; WHEN: Sat Dec 24 10:23:39 2016
;; MSG SIZE rcvd: 508
$ time sudo pc-updatemanager pkgcheck
Boot-strapping updater...OK
Updating trueos-base repository catalogue...
trueos-base repository is up-to-date.
Updating trueos-major repository catalogue...
trueos-major repository is up-to-date.
All repositories are up-to-date.
All packages are up to date!
124.38 real 1.37 user 0.33 sys
$ date ; tail -f -n 7 /var/log/messages
Sat 24 Dec 2016 10:26:01 GMT
Dec 24 10:02:46 dbus[1523]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Dec 24 10:07:45 kernel: re0: link state changed to UP
Dec 24 10:13:03 kernel: wlan0: link state changed to UP
Dec 24 10:13:04 dhcpcd[6289]: wlan0: if_sendraw: No buffer space available
Dec 24 10:13:33 dhcpcd[6289]: timed out
Dec 24 10:14:08 kernel: wlan0: link state changed to DOWN
Dec 24 10:14:19 kernel: wlan0: link state changed to UP
^C
$ ifconfig | grep status
status: no carrier
status: associated
$ ifconfig | grep status
status: active
status: associated
$ rc-status | grep re0
dhcpcd.re0 [ started ]
$ date ; tail -f -n 7 /var/log/messages
Sat 24 Dec 2016 10:27:29 GMT
Dec 24 10:13:33 dhcpcd[6289]: timed out
Dec 24 10:14:08 kernel: wlan0: link state changed to DOWN
Dec 24 10:14:19 kernel: wlan0: link state changed to UP
Dec 24 10:26:33 kernel: re0: link state changed to DOWN
Dec 24 10:27:12 kernel: re0: link state changed to UP
Dec 24 10:27:12 kernel: re0: link state changed to DOWN
Dec 24 10:27:14 kernel: re0: link state changed to UP
Dec 24 10:27:32 kernel: re0: link state changed to DOWN
Dec 24 10:27:32 kernel: in_scrubprefix: err=51, prefix delete failed
^C
$ rc-status | grep re0
dhcpcd.re0 [ started ]
$ time route show default
route: route has not been found
0.00 real 0.00 user 0.00 sys
$ time route show default
route: route has not been found
0.00 real 0.00 user 0.00 sys
$ rc-status | grep wlan
network.wlan0 [ started ]
wpa_supplicant.wlan0 [ started ]
dhcpcd.wlan0 [ started ]
$ time route show default
route: route has not been found
0.00 real 0.00 user 0.00 sys
$ time route show default
route: route has not been found
0.00 real 0.00 user 0.00 sys
$ sudo rc-service dhcpcd.wlan0 restart
Password:
* Caching service dependencies ... [ ok ]
* Stopping DHCP Client Daemon (wlan0) ... [ ok ]
* Starting DHCP Client Daemon (wlan0) ... [ ok ]
$ time route show default
route to: default
destination: default
mask: default
gateway: 192.168.1.1
fib: 0
interface: wlan0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
0.01 real 0.00 user 0.00 sys
$ drill
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 42597
;; flags: qr rd ra ; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 15
;; QUESTION SECTION:
;; . IN NS
;; ANSWER SECTION:
. 499 IN NS g.root-servers.net.
. 499 IN NS h.root-servers.net.
. 499 IN NS i.root-servers.net.
. 499 IN NS j.root-servers.net.
. 499 IN NS k.root-servers.net.
. 499 IN NS l.root-servers.net.
. 499 IN NS m.root-servers.net.
. 499 IN NS a.root-servers.net.
. 499 IN NS b.root-servers.net.
. 499 IN NS c.root-servers.net.
. 499 IN NS d.root-servers.net.
. 499 IN NS e.root-servers.net.
. 499 IN NS f.root-servers.net.
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
a.root-servers.net. 3514099 IN A 198.41.0.4
b.root-servers.net. 3514099 IN A 192.228.79.201
c.root-servers.net. 3514099 IN A 192.33.4.12
d.root-servers.net. 3514099 IN A 199.7.91.13
e.root-servers.net. 3514099 IN A 192.203.230.10
f.root-servers.net. 3514099 IN A 192.5.5.241
g.root-servers.net. 3514099 IN A 192.112.36.4
h.root-servers.net. 3514099 IN A 198.97.190.53
i.root-servers.net. 3514099 IN A 192.36.148.17
j.root-servers.net. 3514099 IN A 192.58.128.30
k.root-servers.net. 3514099 IN A 193.0.14.129
l.root-servers.net. 3514099 IN A 199.7.83.42
m.root-servers.net. 3514099 IN A 202.12.27.33
a.root-servers.net. 3514099 IN AAAA 2001:503:ba3e::2:30
b.root-servers.net. 3514099 IN AAAA 2001:500:84::b
;; Query time: 8 msec
;; SERVER: 192.168.1.1
;; WHEN: Sat Dec 24 10:28:45 2016
;; MSG SIZE rcvd: 492
$ time sudo pc-updatemanager pkgcheck
Boot-strapping updater...OK
Updating trueos-base repository catalogue...
trueos-base repository is up-to-date.
Updating trueos-major repository catalogue...
trueos-major repository is up-to-date.
All repositories are up-to-date.
All packages are up to date!
3.82 real 1.38 user 0.31 sys
$ exit
bbsadmin-l@momh167-gjp4-ergovista621-trueos ~> sh
$ sudo pc-updatemanager pkgupdate
Boot-strapping updater...OK
Your packages are already up to date!
$ sudo pc-updatemanager pkgupdate -f
Boot-strapping updater...OK
Checking for updates to ports-mgmt/pkg..
Updating trueos-base repository catalogue...
trueos-base repository is up-to-date.
Updating trueos-major repository catalogue...
trueos-major repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
Updating the package repo database...
Cleaning old pkg upgrade cache...
resolved
/usr/local/pkg-cache/fbsd-distrib.txz 100% of 3415 kB 1310 kBps 00m03s
resolved
/usr/local/pkg-cache/fbsd-distrib.txz.sha1 100% of 512 B 2272 kBps 00m00s
Verified OK
Verifying / fetching packages for ports-mgmt/pkg - pkg-1.9.4.txz
Updating trueos-base repository catalogue...
trueos-base repository is up-to-date.
Updating trueos-major repository catalogue...
trueos-major repository is up-to-date.
All repositories are up-to-date.
Number of packages to be fetched: 1
No packages are required to be fetched.
Integrity check was successful.
Verifying / fetching packages for misc/…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment