Skip to content

Instantly share code, notes, and snippets.

View tinbotu's full-sized avatar

Akira KUMAGAI tinbotu

View GitHub Profile
08:59:58.005328902
08:59:58.012799569
08:59:58.020241172
08:59:58.027740645
08:59:58.035432542
08:59:58.043574337
08:59:58.051219612
08:59:58.058850216
08:59:58.066278455
08:59:58.073883514
@tinbotu
tinbotu / gist:2829572
Created May 29, 2012 17:11
ix2015 の napt テーブルエントリ数とれそう。未調査だけどsnmpでもとれないかな
ix2015-iwt(config)# sh ip napt ?
record -- Show NAPT address-base information
reserve -- Show NAPT reserve entries
service -- Show ALG service entries
statistics -- Show NAT/NAPT statistics
translation -- Show NAPT cache entries
ix2015-iwt(config)# sh ip napt translation
Interface: FastEthernet0/0.0
NAPT Cache - 1 entry, 4095 free, 12 peak, 20 create, 0 overflow
Codes: A - ALG, S - Static, Service
@tinbotu
tinbotu / gist:2774849
Created May 23, 2012 12:02
aironet AP1231G-J-K9
aironet1200#sh ver
Cisco IOS Software, C1200 Software (C1200-K9W7-M), Version 12.3(8)JED1, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Tue 27-Apr-10 12:58 by alnguyen
ROM: Bootstrap program is C1200 boot loader
BOOTLDR: C1200 Boot Loader (C1200-BOOT-M) Version 12.3(2)JA3, RELEASE SOFTWARE (fc2)
aironet1200 uptime is 7 minutes
@tinbotu
tinbotu / gist:2774846
Created May 23, 2012 12:00
aironet AP1131-AG-P-K9
dhcp132#archive download-sw /overwrite /reload tftp://192.168.20.10/c1130-k9w7-tar.124-25d.JA.tar
examining image...
Loading c1130-k9w7-tar.124-25d.JA.tar from 192.168.20.10 (via BVI1): !
extracting info (283 bytes)
Image info:
Version Suffix: k9w7-.124-25d.JA
Image Name: c1130-k9w7-mx.124-25d.JA
Version Directory: c1130-k9w7-mx.124-25d.JA
Ios Image Size: 5028352
Total Image Size: 5765632
@tinbotu
tinbotu / gist:2647543
Created May 9, 2012 18:13
cacti-cisco-dot11-statictits.pl
stingray:~/workspace/yakesummer/cacti/scripts$ ./cacti-cisco-dot11-statictits.pl aironet1 public 2c -d
cD11ActiveWlClient1(.1.3.6.1.4.1.9.9.273.1.1.2.1.1.1): 1
cD11ActiveWlClient2(.1.3.6.1.4.1.9.9.273.1.1.2.1.1.2): 1
cD11ActiveBridges1(.1.3.6.1.4.1.9.9.273.1.1.2.1.2.1): 0
cD11ActiveBridges2(.1.3.6.1.4.1.9.9.273.1.1.2.1.2.2): 0
cD11ActiveRepeater1(.1.3.6.1.4.1.9.9.273.1.1.2.1.3.1): 0
cD11ActiveRepeater2(.1.3.6.1.4.1.9.9.273.1.1.2.1.3.2): 0
d11TxFragment1(.1.2.840.10036.2.2.1.1.1): 4368495
d11TxFragment2(.1.2.840.10036.2.2.1.1.2): 14085527
d11MuticastTxFrame1(.1.2.840.10036.2.2.1.2.1): 1220221
@tinbotu
tinbotu / gist:2500603
Created April 26, 2012 16:05
smartctl -a /dev/sda
stingray:/dev$ sudo smartctl -a /dev/sda
smartctl 5.42 2011-10-20 r3458 [i686-linux-3.2.4-1vl7] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Deskstar 7K1000.C
Device Model: Hitachi HDS721010CLA332
Serial Number: JP2930HQ1BPBKH
LU WWN Device Id: 5 000cca 35dd367d1
Firmware Version: JP4OA39C
#!/usr/bin/perl
use strict;
use LWP::UserAgent;
my $comport = "/dev/ttyS6";
my $posturl = 'http://sushi.yuiseki.net/brain';
my $ua = new LWP::UserAgent;
@tinbotu
tinbotu / gist:2225033
Created March 28, 2012 09:29
mod_yabaic.c with memcached
kuma@matshita:~$ ab -c100 -n1000 http://192.168.20.10/ya
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.20.10 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
静的ファイル
kuma@matshita:~$ ab -n1000 -c50 http://192.168.20.10/static
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.20.10 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
@tinbotu
tinbotu / gist:1938057
Created February 29, 2012 05:12
gist: 1283852 ix2015 の proxy-dns いじめるとクラッシュする件 8.3.49 で追試
ix2015-sh(config)# sh me
Calculating configuration memory size...
Heap memory:
67% memory used, 33% memory avail
Total 57242200 bytes
18936648 bytes free (18809240 clean, 127408 dirty)
38305552 bytes busy (21126496 dynamic, 17179056 permanent)
Configuration memory:
2% memory used, 98% memory avail
Total 524288 bytes, 512113 bytes free