Python 2.7 by default disables DeprecationWarnings.
Re-enable in development using:
python -Wdefault script.py
Python 2.7 by default disables DeprecationWarnings.
Re-enable in development using:
python -Wdefault script.py
cd /System/Library/Extensions
sudo kextunload IOSCSIArchitectureModelFamily.kext/Contents/PlugIns/IOSCSIMultimediaCommandsDevice.kext
sudo kextunload IOBDStorageFamily.kext
sudo kextunload IODVDStorageFamily.kext
sudo kextunload IOCDStorageFamily.kext
If a class does not define a __cmp__() or __eq__() method it should not define a __hash__() operation either; if it defines __cmp__() or __eq__() but not __hash__(), its instances will not be usable in hashed collections. If a class defines mutable objects and implements a __cmp__() or __eq__() method, it should not implement __hash__(), since hashable collection implementations require that a object’s hash value is immutable (if the object’s hash value changes, it will be in the wrong hash bucket).
http://docs.python.org/reference/datamodel.html#object.__hash__
snmpwalk -c public -v1 localhost .1.3.6.1.2.1.2
In netkit, Quagga by default has net-snmp support.
Steps to get it working:
/etc/snmp/snmpd.conf
#
# example access restrictions setup
#
com2sec readonly default public
group MyROGroup v1 readonly
view all included .1 80
access MyROGroup “” any noauth exact all none none
#
# the following line is relevant for Quagga
#
smuxpeer .1.3.6.1.6.3.1. mypassword
/etc/quagga/zebra.conf
hostname AS4r1
password zebra
enable password zebra
smux peer 1.3.6.1.6.3.1 mypassword
log file /var/log/zebra/zebra.log
then restart the daemons:
/etc/init.d/snmpd restart
/etc/init.d/zebra restart
should be able to walk now:
snmpwalk -c public -v1 localhost .1.3.6.1.2.1
etc
references:
http://lists.quagga.net/pipermail/quagga-users/2008-July/009731.html
http://beeznest.wordpress.com/2008/07/14/interoperating-quagga-or-zebra-with-net-snmp/
http://www.quagga.net/docs/docs-multi/SMUX-configuration.html#SMUX-configuration
P.S. [OT]: The cisco command I use to disable the pager is:
# terminal length 0
http://www.velocityreviews.com/forums/t330934-pexpect-module.html
Quagga:
dump bgp routes-mrt path
not
dump bgp routes path
Powerful plug-in that enables Mac apps to leverage the color themes of the kuler community:
curl to resume a file killed in firefox/safari/etc:
curl -o ‘myfile.zip.part’ -C - ‘http://download.com/myfile.zip’
-o to specify diff output file -C to specify resume -C - to resume and auto work out where to resume from bit after -C - is the url of the file to resume
Python: Elements common (or not) to two lists:
diff_list = filter( lambda x: x not in listA, listB)
diff_count = len(diff_list)
Regexhibit: OSX application for testing regular expressions.
http://homepage.mac.com/roger_jolly/software/#regexhibit