Skip to content

Instantly share code, notes, and snippets.

Time read miss miss% dmis dm% pmis pm% mmis mm% arcsz c
20:32:16 18G 1G 5 231M 1 817M 54 40M 1 11G 11G
20:32:17 146 21 14 2 1 19 86 0 0 11G 11G
20:32:18 96 2 2 2 2 0 0 0 0 11G 11G
20:32:19 109 1 0 1 0 0 0 0 0 11G 11G
20:32:20 38 2 5 1 2 1 25 0 0 11G 11G
20:32:21 61 7 11 5 9 2 28 0 0 11G 11G
20:32:22 36 1 2 1 2 0 0 0 0 11G 11G
20:32:23 95 1 1 1 1 0 0 0 0 11G 11G
20:32:24 90 0 0 0 0 0 0 0 0 11G 11G
@cwebberOps
cwebberOps / gist:1013147
Created June 7, 2011 20:58
/var/log/opennms-remote-poller.log
2011-06-07 13:54:35,673 INFO [PollerFrontEnd_Worker-2] org.apache.http.impl.client.DefaultHttpClient: I/O exception (java.net.SocketException) caught when processing request: Connection reset
2011-06-07 13:54:35,674 INFO [PollerFrontEnd_Worker-2] org.apache.http.impl.client.DefaultHttpClient: Retrying request
2011-06-07 13:55:10,298 INFO [PollerFrontEnd_Worker-9] org.apache.http.impl.client.DefaultHttpClient: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
2011-06-07 13:55:10,299 INFO [PollerFrontEnd_Worker-9] org.apache.http.impl.client.DefaultHttpClient: Retrying request
2011-06-07 13:55:10,403 INFO [PollerFrontEnd_Worker-5] org.apache.http.impl.client.DefaultHttpClient: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
2011-06-07 13:55:10,404 INFO [PollerFrontEnd_Worker-5] org.apache.http.impl.client.DefaultHttpClient: Retrying request
2011-06-07 13:56:
@cwebberOps
cwebberOps / gist:1031530
Created June 17, 2011 14:33
Variable Assignment in puppet
$variable = true #default
if condition {
$variable = false
}
if other_condition {
$variable = fasle
}
A few different tools are in place throughout campus IT departments that allow for centralization and standardization of system configurations and management. Systems administrators are able to administer many systems from their own desktops, saving time formerly spent physically visiting servers. Standardized configurations make purchasing new or replacement hardware and deploying systems significantly less complicated.
We couldn’t find that file to show.
@cwebberOps
cwebberOps / defined_types.pp
Created July 8, 2011 20:46
Weird exported resource behavior
define ucr_fw_rule (
$allowed_ip,
$allowed_ports,
$origin = 'self',
$dest_ip = 'self',
$ensure = 'present',
$flags = '',
$proto = 'tcp',
$service = 'unknown',
$applies_to = 'self',
# zfs list -t snapshot
zpool1/xbackup@20110706-08:15.day 120G - 10.7T -
zpool1/xbackup@20110708-08:15.day 3.18M - 10.7T -
zpool1/xbackup@20110712-08:15.day 257K - 9.44T -
# zfs destroy zpool1/xbackup@20110706-08:15.day
# zfs list -t snapshot
zpool1/xbackup@20110708-08:15.day 2.02T - 10.7T -
zpool1/xbackup@20110712-08:15.day 257K - 9.44T -
@cwebberOps
cwebberOps / install.out
Created September 1, 2011 02:32
WURFL Suck
[root@domU-12-31-39-14-C4-57 install]# bash install.sh
--2011-09-01 01:22:36-- http://sourceforge.net/projects/wurfl/files/WURFL/latest/wurfl-latest.xml.gz/download
Resolving sourceforge.net... 216.34.181.60
Connecting to sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://sourceforge.net/projects/wurfl/files/ [following]
--2011-09-01 01:22:36-- http://sourceforge.net/projects/wurfl/files/
Connecting to sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32938 (32K) [text/html]
@cwebberOps
cwebberOps / vdr_snap.rb
Created September 7, 2011 18:18
vdr snapshotting
#!/usr/bin/ruby -w
###
# This script stops the specified vdr VM and snapshots the zfs pool
# that backends the vmdk(s) used to backup systems so it can be synced
# elsewhere.
#
# Prerequisites:
# - .keytab file in the homedir of the user executing the script that
# access to the zfs account on the remote host
@cwebberOps
cwebberOps / hostname.bnx0
Created September 8, 2011 15:25
interfaces
<hostname> group <groupname> netmask <netmask> broadcast + up