Skip to content

Instantly share code, notes, and snippets.

@razrichter
razrichter / iptables result
Created January 30, 2013 23:59
results of iptables
[root@fog-0-1-1 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
EUCA_COUNTERS_OUT all -- anywhere anywhere
EUCA_COUNTERS_IN all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate ESTABLISHED
ACCEPT all -- anywhere !172.31.254.0/23
@razrichter
razrichter / cc.log | uniq -c
Created January 30, 2013 01:39
Eucalyptus 3.2 cc.log
This file has been truncated, but you can view the full file.
$ uniq -c cc.log
1 2013-01-24 16:53:02 INFO | stat() problem with //etc/eucalyptus/faults/en_US/: No such file or directory
1 2013-01-24 16:53:02 INFO | initializing CC configuration
1 2013-01-24 16:53:02 WARN | VNET_LOCALIP not defined, will attempt to auto-discover (consider setting this explicitly if tunnelling does not function properly.)
1 2013-01-24 16:53:02 WARN | private network is not large enough to support all vlans, restricting to max vlan '15'
1 2013-01-24 16:53:02 INFO | VNET Configuration: eucahome=//,
1 2013-01-24 16:53:02 INFO | path=//var/run/eucalyptus/net,
1 2013-01-24 16:53:02 INFO | dhcpdaemon=/usr/sbin/dhcpd41,
1 2013-01-24 16:53:02 INFO | dhcpuser=dhcpd,
1 2013-01-24 16:53:02 INFO | pubInterface=em1,
@razrichter
razrichter / euca_diag_conf.txt
Last active December 11, 2015 22:19
Eucalyptus 3.2 faststart installation diagnostics and config
fog-0-1-1 CC/CLC:
[root@fog-0-1-1 eucalyptus]# . ~/.euca/eucarc
[root@fog-0-1-1 eucalyptus]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:26:b9:f9:db:90 brd ff:ff:ff:ff:ff:ff
@razrichter
razrichter / calibre
Created November 27, 2012 23:12
Calibre Server upstart script
#! /bin/sh
### BEGIN INIT INFO
# Provides: calibre
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Controls the Calibre content server
# Description: Controls the Calibre content web server
#
@razrichter
razrichter / enum.py
Created April 27, 2012 16:10
Simple python enum
# as copied from http://stackoverflow.com/a/1695250
def enum(*sequential, **named):
enums = dict(zip(sequential, range(len(sequential))), **named)
return type('Enum', (), enums)