virtualbox
vdiファイルから変換
vboxmanage clonehd --format VDI|VMDK|VHD|RAW srcファイル distファイル
ディスクイメージから変換
vboxmanage convertfromraw --format VDI|VMDK|VHD srcファイル distファイル
live cd or usb
apt
squashfs-tools mkisofs live-helper:古い live-build:新しい live-initramfs live-boot live-config
command
lb config --mode debian
net-snmp
net-snmpを使用してみようと調べ中
net-snmpのページから辿って「net-snmp-5.7.1」をダウンロード
以下configure
./configure --build=i386-linux --host=arm-linux --enable-mini-agent --with-endianness=little --disable-manuals --enable-as-needed --disable-embedded-perl --without-perl-modules --disable-snmptrapd-subagent --disable-applications --disable-scripts --disable-shared
組み込み機器に使用しようとしていたのでプログラムは小さい方がよいかなと思い「--enable-mini-agent」をつける…これがいけなかった
先人達を参考に、snmpwalkを使用してみる
snmpwalkで以下を取得
OID オブジェクト 1.3.6.1.2.1.1 System 1.3.6.1.2.1.11 SNMP
何か寂しい、snmpd.confを見比べても特にきになるところもなく
XXX-MIB.txtも問題ないように思える
わらからいまま数日 軽い気持ちで「--enable-mini-agent」を外してconfigure
./configure --build=i386-linux --host=arm-linux --with-endianness=little --disable-manuals --enable-as-needed --disable-embedded-perl --without-perl-modules --disable-snmptrapd-subagent --disable-applications --disable-scripts --disable-shared
長いコンパイルも終了し
snmpwalkで以下を取得
OID オブジェクト 1.3.6.1.2.1.1 System 1.3.6.1.2.1.2 Interface 1.3.6.1.2.1.3 Address Translation 1.3.6.1.2.1.4 IP 1.3.6.1.2.1.5 ICMP 1.3.6.1.2.1.6 TCP 1.3.6.1.2.1.7 UDP 1.3.6.1.2.1.11 SNMP 1.3.6.1.2.1.25 host 1.3.6.1.2.1.31 ifMIB 1.3.6.1.2.1.88 DISMAN-EVENT 1.3.6.1.2.1.92 notificationLogMIB
謎な情報も取得できたがとりあえず臭いものにはsnmpd.confで制限かけてしまえば外からはみられないからよしとしよう
configureをhelpをながめていると「--with-mib-modules」があったので使用してみた
./configure --build=i386-linux --host=arm-linux --enable-mini-agent --with-endianness=little --disable-manuals --enable-as-needed --disable-embedded-perl --without-perl-modules --disable-snmptrapd-subagent --disable-applications --disable-scripts --disable-shared --with-mib-modules="mibII"
snmpwalkで以下を取得
OID オブジェクト 1.3.6.1.2.1.1 System 1.3.6.1.2.1.2 Interface 1.3.6.1.2.1.3 Address Translation 1.3.6.1.2.1.4 IP 1.3.6.1.2.1.5 ICMP 1.3.6.1.2.1.6 TCP 1.3.6.1.2.1.7 UDP 1.3.6.1.2.1.11 SNMP 1.3.6.1.2.1.31 ifMIB
「--with-mib-modules」で必要そうなのを追加すればよさげであった
実践SNMP教科書―ネットワーク管理ツールの開発と活用 (IT TEXT)
- 作者: 山居正幸
- 出版社/メーカー: CQ出版
- 発売日: 2005/03
- メディア: 単行本
- 購入: 3人 クリック: 52回
- この商品を含むブログ (7件) を見る
こいつは楽しくなってきたぜ
はじめての Django アプリ作成、その 3をやりはじめた超スローペース
URL ディスパッチャを途中まで読んだ
買い物
IdeaPad U300sが欲しくて欲しくて悩んでいたけど
悩んでも始まらないということで・・・結局手が出せなかった
代わりに現役で動いているIdeaPad s10eを有効活用してみようと
−外部モニターを使用して解像度を克服
−メモリを増設
−SSDは安かったんだけどお金もないし諦め
−USBキーボード接続
−USBマウスワイヤレス接続
とまあこんな感じ安上がりでバッチグー
BUFFALO ノートPC用増設メモリ PC2-5300 (DDR2-667) 2GB D2/N667-2G/E
- 出版社/メーカー: バッファロー
- 発売日: 2009/04/10
- メディア: Personal Computers
- 購入: 67人 クリック: 420回
- この商品を含むブログ (14件) を見る
PFU Happy Hacking Keyboard Lite2 日本語配列 USBキーボード ブラック PD-KB210B/U
- 出版社/メーカー: PFU
- 発売日: 2002/08/01
- メディア: Personal Computers
- 購入: 5人 クリック: 456回
- この商品を含むブログ (23件) を見る
9年も前に発売されたキーボードって…
挫折気味
はじめての Django アプリ作成、その 2から頭の方が追いつかない
実行はできるけど、何をやっているのかがよくわからない
「やっている感」というよりは「やらされている感」だってチュートリアルだし
django.db.models.Model
objects.filter()で条件にマッチしったものをDatabaseから抽出するのはなんとなくわかったんだけど
objects.filter(*__startswith)
__startswithってなんなの?気持ち悪わるいので調べてみると照合条件というものらしい
他にもあるので一覧 詳しいことはここ
exact, iexact, contains, icontains, gt, gte, lt, lte, in, startswith, istartswith, endswith, iendswith, range, year, month, day, isnull, search, regex, iregex
特にDjangoに限ったものではないみたい覚えておいても損はなさそう
objects.filter(pk=???)
pk? primary keyの事かな直感を信じる
モデルクラス名_set
記述になれてないからなんだろうけどナニコレ怖い