web analytics
Evan && Or && Id

Keseharian

Download Torrent dari Ubuntu

by on Dec.29, 2011, under Keseharian, Ngoprek

Hari ini ada temen minta di test kemampuan download dari koneksinya, dia sudah coba test download tapi tidak pernah sampai 40Mbps.. bahkan 20Mbps juga ga bisa…

Nah dari pengetesan tersebut akhirnya saya minta di sediakan mesin buat ujicoba, eh di kasih ubuntu :D ya udah deh akhirnya ngoprek di ubuntu, Langsung aja deh…

root@mail:~/torrent# apt-get install bittorrent
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
python-bittorrent
Suggested packages:
bittorrent-gui
The following NEW packages will be installed:
bittorrent python-bittorrent
0 upgraded, 2 newly installed, 0 to remove and 113 not upgraded.
Need to get 107kB of archives.
After this operation, 651kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com/ubuntu/ lucid/main python-bittorrent 3.4.2-11.1ubuntu4 [53.2kB]
Get:2 http://id.archive.ubuntu.com/ubuntu/ lucid/main bittorrent 3.4.2-11.1ubuntu4 [54.0kB]
Fetched 107kB in 1s (57.1kB/s)
Selecting previously deselected package python-bittorrent.
(Reading database … 42181 files and directories currently installed.)
Unpacking python-bittorrent (from …/python-bittorrent_3.4.2-11.1ubuntu4_all.deb) …
Selecting previously deselected package bittorrent.
Unpacking bittorrent (from …/bittorrent_3.4.2-11.1ubuntu4_all.deb) …
Processing triggers for man-db …
Setting up python-bittorrent (3.4.2-11.1ubuntu4) …

Processing triggers for python-central …
Setting up bittorrent (3.4.2-11.1ubuntu4) …
update-alternatives: using /usr/bin/btcompletedir.bittorrent to provide /usr/bin/btcompletedir (btcompletedir) in auto mode.
update-alternatives: using /usr/bin/btdownloadcurses.bittorrent to provide /usr/bin/btdownloadcurses (btdownloadcurses) in auto mode.
update-alternatives: using /usr/bin/btdownloadheadless.bittorrent to provide /usr/bin/btdownloadheadless (btdownloadheadless) in auto mode.
update-alternatives: using /usr/bin/btlaunchmany.bittorrent to provide /usr/bin/btlaunchmany (btlaunchmany) in auto mode.
update-alternatives: using /usr/bin/btlaunchmanycurses.bittorrent to provide /usr/bin/btlaunchmanycurses (btlaunchmanycurses) in auto mode.
update-alternatives: using /usr/bin/btmakemetafile.bittorrent to provide /usr/bin/btmakemetafile (btmakemetafile) in auto mode.
update-alternatives: using /usr/bin/btreannounce.bittorrent to provide /usr/bin/btreannounce (btreannounce) in auto mode.
update-alternatives: using /usr/bin/btrename.bittorrent to provide /usr/bin/btrename (btrename) in auto mode.
update-alternatives: using /usr/bin/btshowmetainfo.bittorrent to provide /usr/bin/btshowmetainfo (btshowmetainfo) in auto mode.
update-alternatives: using /usr/bin/bttrack.bittorrent to provide /usr/bin/bttrack (bttrack) in auto mode.

Install bittorrent kelar..

Upload file .torrent ke mesin-nya langsung dah jalanin :

root@mail:~/torrent# screen btdownloadcurses Sin\ City.2005.720p.HDTV.DTS.x264-THOR.torrent

Nah untuk monitoring-nya pake apps bmon aja :

root@mail:~# apt-get install bmon
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
bmon
0 upgraded, 1 newly installed, 0 to remove and 113 not upgraded.
Need to get 43.6kB of archives.
After this operation, 184kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu/ lucid/universe bmon 2.0.1-3 [43.6kB]
Fetched 43.6kB in 1s (24.5kB/s)
Selecting previously deselected package bmon.
(Reading database … 42274 files and directories currently installed.)
Unpacking bmon (from …/archives/bmon_2.0.1-3_i386.deb) …
Processing triggers for man-db …
Setting up bmon (2.0.1-3) …

root@mail:~# bmon

Nah ini kalo mau ngitung MiB ke Mb, di ambil dari answers.yahoo

OK, there are 1024 KiB in a MiB.
In turn, there are 1024 bytes in a KiB.

So in a MiB there are

1024*1024 = 1,048,576 bytes.

There are 1000 KB in a MB.
In turn, there are 1000 bytes in a KB

So in a MB there are

1000*1000 = 1,000,000 bytes.

To convert from MiB to MB, multiply by 1.048576.
To convert from MB to MiB, divide by 1.048576.

Or just use 1.05, as that’s close enough, really.

If you want to convert between GiB and GB, use 1.073741824, or just 1.07.

For example, if you buy a new 500 GB hard drive, you only get about 465 GiB.

Share on Facebook
Leave a Comment more...

Cisco port-channel lacp load balancing and redudance

by on Dec.23, 2011, under Belajar IT, Keseharian, Ngoprek

Kali ini saya coba berbagi pengetahuan dan semoga ini bisa bermanfaat bagi kita semua, dalam kesempatan ini saya coba menjelaskan cara-cara pembuatan port-channel lacp load balancing dan redudance
Apa sih itu LACP ?
LACP adalah kepanjangan dari Link Aggregation Control Protocol yang inti dari artinya adalah penggabungan beberapa port menjadi satu

Lalu apa itu Port-channel ?
Port-channel adalah Ethernet Channel of interfaces

kalau load balancing ?
load balancing adalah membuat seimbang, dimana dalam kasus ini kinerja dari port-nya balance

Lebih detail tentang teori baca aja deh di sini http://en.wikipedia.org/wiki/Link_aggregation

Lalu keuntungannya apa ?
Apa aja boleh… ^,^

Dari pada teori mulu mendingan kita praktek langsung aja ya..
Sekarang kita mulai configurasinya, tahap awal kita configurasi interface-nya, mari kita aktifin interface Port-channel-nya :
SW-Backbone-2#configure terminal
SW-Backbone-2(config)#interface port-channel 1
SW-Backbone-2(config-if)#description ke-SW-Backbone-1
SW-Backbone-2(config-if)#switchport trunk encapsulation dot1q
SW-Backbone-2(config-if)#switchport mode trunk
SW-Backbone-2(config-if)#switchport trunk allowed vlan 90,104,225
SW-Backbone-2(config-if)#CTRL+Z

lanjut aktifin load balance redudance-nya
SW-Backbone-2(config)#port-channel load-balance src-dst-ip

Ok..ini hasil dari configurasi di atas
SW-Backbone-2#show running-config interface po1
Building configuration…

Current configuration : 134 bytes
!
interface Port-channel1
description ke-SW-Backbone-1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 90,104,225
switchport mode trunk
end

SW-Backbone-2#sh ru
Building configuration…

Current configuration : 6063 bytes
!
! Last configuration change at 20:14:18 JKT Fri Dec 23 2011 by evan
! NVRAM config last updated at 19:32:28 JKT Fri Dec 23 2011 by evan
!
version 12.2
no service pad
service tcp-keepalives-in
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service unsupported-transceiver
!
hostname SW-Backbone-2
!
port-channel load-balance src-dst-ip
!

lanjutttt… Sekarang kita alokasikan 4 port untuk kita gabungkan :
SW-Backbone-2#configure terminal
SW-Backbone-2(config)#in gi0/25
SW-Backbone-2(config)#description EthCnl-Po1
SW-Backbone-2(config-if)#switchport trunk encapsulation dot1q
SW-Backbone-2(config-if)#switchport mode trunk
SW-Backbone-2(config-if)#channel-group 1 mode active
SW-Backbone-2(config-if)#CTRL+Z
SW-Backbone-2#configure terminal
SW-Backbone-2(config)#in gi0/26
SW-Backbone-2(config)#description EthCnl-Po1
SW-Backbone-2(config-if)#switchport trunk encapsulation dot1q
SW-Backbone-2(config-if)#switchport mode trunk
SW-Backbone-2(config-if)#channel-group 1 mode active
SW-Backbone-2(config-if)#CTRL+Z
SW-Backbone-2#configure terminal
SW-Backbone-2(config)#in gi0/27
SW-Backbone-2(config)#description EthCnl-Po1
SW-Backbone-2(config-if)#switchport trunk encapsulation dot1q
SW-Backbone-2(config-if)#switchport mode trunk
SW-Backbone-2(config-if)#channel-group 1 mode active
SW-Backbone-2(config-if)#CTRL+Z
SW-Backbone-2#configure terminal
SW-Backbone-2(config)#in gi0/27
SW-Backbone-2(config)#description EthCnl-Po1
SW-Backbone-2(config-if)#switchport trunk encapsulation dot1q
SW-Backbone-2(config-if)#switchport mode trunk
SW-Backbone-2(config-if)#channel-group 1 mode active
SW-Backbone-2(config-if)#CTRL+Z

Di sini saya tidak memasukkan Allow Vlan ( filter vlan ) pada port yg kita gabung, melainkan cukup pada interface Port-channel-nya saja
Setelah di connectin semua maka hasilnya seperti ini :
SW-Backbone-2#show int status

Port      Name               Status       Vlan       Duplex  Speed Type
———- CUT —————-
Gi0/25    EthCnl-Po1         connected    trunk      a-full a-1000 1000BaseSX SFP
Gi0/26    EthCnl-Po1         connected    trunk      a-full a-1000 1000BaseSX SFP
Gi0/27    EthCnl-Po1         connected    trunk      a-full a-1000 1000BaseSX SFP
Gi0/28    EthCnl-Po1         connected    trunk      a-full a-1000 1000BaseSX SFP
Po1       ke-SW-Backbone-1   connected    trunk      a-full a-1000

SW-Backbone-2#sh ru in gi0/25
Building configuration…

Current configuration : 151 bytes
!
interface GigabitEthernet0/25
description EthCnl-Po1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 90,104,225
switchport mode trunk
channel-group 1 mode active
end

SW-Backbone-2#sh ru in gi0/26
Building configuration…

Current configuration : 151 bytes
!
interface GigabitEthernet0/26
description EthCnl-Po1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 90,104,225
switchport mode trunk
channel-group 1 mode active
end

SW-Backbone-2#sh ru in gi0/27
Building configuration…

Current configuration : 151 bytes
!
interface GigabitEthernet0/27
description EthCnl-Po1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 90,104,225
switchport mode trunk
channel-group 1 mode active
end

SW-Backbone-2#sh ru in gi0/28
Building configuration…

Current configuration : 151 bytes
!
interface GigabitEthernet0/28
description EthCnl-Po1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 90,104,225
switchport mode trunk
channel-group 1 mode active
end

Sekarang kita liat Speed-nya pada Interface Port-channel-nya sudah sebesar 4Gb ( MTU 1500 bytes, BW 4000000 Kbit, DLY 10 usec, ), dan di sini juga terlihat port berapa aja yg kita gabung ( Members in this channel: Gi0/25 Gi0/26 Gi0/27 Gi0/28 )

SSW-Backbone-2#show interfaces Po1
Port-channel1 is up, line protocol is up (connected)
Hardware is EtherChannel, address is 0012.0161.1719 (bia 0012.0161.1719)
Description: ke-SW-Backbone-1
MTU 1500 bytes, BW 4000000 Kbit, DLY 10 usec,
reliability 255/255, txload 101/255, rxload 26/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 1000Mb/s, link type is auto, media type is unknown
input flow-control is off, output flow-control is unsupported
Members in this channel: Gi0/25 Gi0/26 Gi0/27 Gi0/28
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of “show interface” counters 1w3d
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 422306000 bits/sec, 182790 packets/sec
5 minute output rate 1598643000 bits/sec, 246533 packets/sec
124709349643 packets input, 39994852902325 bytes, 0 no buffer
Received 15963398 broadcasts (8718778 multicasts)
0 runts, 0 giants, 0 throttles
778973 input errors, 5589 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 8718778 multicast, 0 pause input
0 input packets with dribble condition detected
165597102019 packets output, 132050835252807 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out

SW-Backbone-2#show interfaces gi0/25
GigabitEthernet0/25 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is 0012.0161.1719 (bia 0012.0161.1719)
Description: EthCnl-Po1
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 103/255, rxload 29/255
Encapsulation ARPA, loopback not set
Keepalive not set
Full-duplex, 1000Mb/s, link type is auto, media type is 1000BaseSX SFP
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:22, output hang never
Last clearing of “show interface” counters 1w3d
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 116336000 bits/sec, 48788 packets/sec
5 minute output rate 406893000 bits/sec, 63369 packets/sec
33031920919 packets input, 11535121696360 bytes, 0 no buffer
Received 8751836 broadcasts (8484111 multicasts)
0 runts, 0 giants, 0 throttles
779637 input errors, 5602 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 8484111 multicast, 0 pause input
0 input packets with dribble condition detected
42145656820 packets output, 33357023523376 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out

Kelar deh… gimana ? ada pertanyaan ?

Thanks to kawan-kawan seperjuangan, Lasta Yani, Daddy Yustiadi dan Ahmad Hidayat yang sudah sudi ngoprek bareng.

Share on Facebook
2 Comments more...

Backup Switch Cisco

by on Dec.06, 2011, under Belajar IT, Keseharian, Ngoprek, Note

Kadang kita suka males kalo mau backup switch, kalau hanya satu atau dua switch cisco sih ga begitu masalah.. kalau ada lebih dari 20 switch ? pasti merepotkan juga kan….

Nah karena dasar itu saya coba iseng-iseng bikin program asal-asalan, sebenernya ni program cuman buat ngebantu kita meng exekusi beberapa printah di cisco, seperti memasukkan user name, password, enable password, password enable, printah-printah backup seperti :

copy runing-config tftp:

copy vlan.dat tftp:

copy config.text tftp:

Nah untuk membuat tools ini memerlukan beberapa program yaitu :

1. Telnet client ( by default sudah ada pada windows anda, kecuali windows 7 harus di aktifkan program telnet cliant-nya )

2. AutoIT ( bisa di download di sini )

3. TFTP-Server ( bisa di download di sini )

Setelah Telnet Client , AutoIT dan TFTP-Server  di install sekarang ke proses selanjutnya yaitu pembuatan tools-nya contoh scrip-nya :

——————————START————————-

;;++++++++++++++++++++++++++++++++++
;+++++++++++++++++++++++++++++++++++
;++                                                                                  ++
;++        Program Sederhana Back-UP Cisco         ++
;++            Create-By AutoIt                                      ++
;++        For More Question email me AT              ++
;++              evan@bhomert.com                              ++
;;++++++++++++++++++++++++++++++++++
;;++++++++++++++++++++++++++++++++++

; Ganti ip.cisco.xxx.xxx dengan IP cisco yg akan di backup
Run(“telnet.exe ip.cisco.xxx.xxx”)
Sleep(1000)
; Ganti username dengan username kamu
Send(“username”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
; Ganti password dengan password kamu
Send(“password”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
Send(“en”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
; Ganti enablepassword dengan enable password  switch kamu
send(“enablepassword”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
Send(“copy running-config tftp:”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
; Ganti ip.TFTP-Server.xxx.xxx dengan IP TFTP-Server kamu
Send(“ip.TFTP-Server.xxx.xxx”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
; Ganti namahost dengan hostname Switch
Send(“namahost-config”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
Send(“copy vlan.dat tftp:”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
; Ganti ip.TFTP-Server.xxx.xxx dengan IP TFTP-Server kamu
Send(“ip.TFTP-Server.xxx.xxx”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
; Ganti namahost dengan hostname Switch
Send(“namahost-vlan.dat”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
Send(“copy config.text tftp:”)
Send(“{ENTER}”)
Sleep(200)
; Ganti ip.TFTP-Server.xxx.xxx dengan IP TFTP-Server kamu
Send(“ip.TFTP-Server.xxx.xxx”)
Sleep(200)
Send(“{ENTER}”)
Sleep(200)
; Ganti namahost dengan hostname Switch
Send(“namahost-config.text”)
Sleep(200)
Send(“{ENTER}”)
Sleep(1000)
Send(“q”)
Send(“{ENTER}”)
Sleep(1000)
Send(“{ENTER}”)

——————————AND————————-

Ikuti petunjuk di scrip itu dan compile scrip tersebut dengan menekan CTRL+F7, setelah selesai siapkan TFTP-Server dan arahkan directory penyimpanannya. setelah semua selesai jalankan .exe yang tadi di compile.

Selamat Mencoba, semoga catatan kecil ini bisa bermanfaat buat kawan-kawan semua.

Silakan Download Contoh Script dan contoh telnet ke route-server

note: – untuk mendownload klik kanan lalu save-as

Share on Facebook
1 Comment more...

Niat dan di’Niat-kan

by on Dec.03, 2010, under Keseharian, Note, Sosial

Niat… bila kita akan melakukan sesuatu harus kita Niatkan walaupun hal tersebut kita pikir susah bahkan sangat sulit, apabila kita Niatkan InsyaAllah semua menjadi mudah… dan petunjuk-Nya pasti nyata.

Perhatikan sekitar’mu dan sekeliling’mu tanda-tanda kebesan-Nya pasti menunjukkan jalan dan arahan, bahkan peringatan-Nya pun nyata.

Baik perbuatan Buruk maupun perbuatan Mulia pasti petunjuk-Nya nyata, tinggal kita harus peka terhadap petunjuk-Nya.

Yang paling nyata adalah petunjuk-Nya di dalam hati kita, lalu akan menunjukkan kesekitaran kita.

Perhatikan dan cermati setiap kejadian di sekitar kita.

Semoga kita semakin dekat dan peka terhadap kehendak-Nya.

Share on Facebook
Leave a Comment more...

Ngoprek Mode On

by on Dec.03, 2010, under Keseharian

Sambil nunggu compile-an server ngejunk dulu ah….
Hari ini ada meeting jam 9 pagi di tempat mitra.. :)
CTRL+D
ALT+F4
ALT+ESC
U
U
Sleeping mode on…

Share on Facebook
Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!