perintah untuk melihat performa squid

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
sabar
Posts: 42
Joined: 23 Jul 2010, 21:01

perintah untuk melihat performa squid

Postby sabar » 22 Aug 2010, 18:20

malam, om,,,,kk,,, cemua

mau nanya nich untuk melihat performa squid perintahnya apa yach,,,
maklum baru belajar ubuntu,,,,



mohon dibimbing warga baru ini biar tidak tersesat di jalan
User avatar
sabar
Posts: 42
Joined: 23 Jul 2010, 21:01

Re: perintah untuk melihat performa squid

Postby sabar » 25 Aug 2010, 21:42

sunyi :(
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: perintah untuk melihat performa squid

Postby thrvers » 25 Aug 2010, 21:49

'
harus sabar bro :grin:
$ squidclient mgr:info

-*-
User avatar
didiet_file
Posts: 27
Joined: 18 Aug 2010, 02:58
Location: depok

Re: perintah untuk melihat performa squid

Postby didiet_file » 26 Aug 2010, 00:23

lw coba pake webmin ajj bro
User avatar
amanda
Posts: 203
Joined: 22 May 2010, 02:35

Re: perintah untuk melihat performa squid

Postby amanda » 26 Aug 2010, 02:46

kalo squidnya transparent misal ke 192.168.1.1 port 3128 maka

squidclient -h 192.168.1.1 -p 3128 mgr:info

atau liat saja option squidclient nya

squidclient mgr:

kalo di saya

squidclient -h 192.168.1.1 -p 3128 mgr:

Code: Select all

HTTP/1.0 200 OK
Server: Squid Version 2.HEAD-20100809
Mime-Version: 1.0
Date: Thu, 26 Aug 2010 21:31:52 GMT
Content-Type: text/plain
Expires: Thu, 26 Aug 2010 23:32:09 GMT
Last-Modified: Thu, 26 Aug 2010 22:31:22 GMT
X-Cache: MISS from XXXXXXXXX
X-Cache-Lookup: MISS from XXXXXXXXX:3128
Proxy-Connection: close
 mem                    Memory Utilization      public
 cbdata                 Callback Data Registry Contents public
 events                 Event Queue     public
 squidaio_counts        Async IO Function Counters      public
 config                 Current Squid Configuration     hidden
 comm_incoming          comm_incoming() stats   public
 ipcache                IP Cache Stats and Contents     public
 fqdncache              FQDN Cache Stats and Contents   public
 idns                   Internal DNS Statistics public
 redirector             URL Redirector Stats    public
 external_acl           External ACL stats      public
 http_headers           HTTP Header Statistics  public
 menu                   This Cachemanager Menu  public
 shutdown               Shut Down the Squid Process     hidden
 offline_toggle         Toggle offline_mode setting     hidden
 info                   General Runtime Information     public
 filedescriptors        Process Filedescriptor Allocation       public
 objects                All Cache Objects       public
 vm_objects             In-Memory and In-Transit Objects        public
 openfd_objects         Objects with Swapout files open public
 io                     Server-side network read() size histograms      public
 counters               Traffic and Resource Counters   public
 peer_select            Peer Selection Algorithms       public
 digest_stats           Cache Digest and ICP blob       public
 5min                   5 Minute Average of Counters    public
 60min                  60 Minute Average of Counters   public
 utilization            Cache Utilization       public
 histograms             Full Histogram Counts   public
 active_requests        Client-side Active Requests     public
 store_digest           Store Digest    public
 storedir               Store Directory Stats   public
 store_check_cachable_stats     storeCheckCachable() Stats      public
 store_io               Store IO Interface Stats        public
 pconn                  Persistent Connection Utilization Histograms    public
 refresh                Refresh Algorithm Statistics    public
 forward                Request Forwarding Statistics   public
 client_list            Cache Client List       public
 netdb                  Network Measurement Database    public
 asndb                  AS Number Database      public
 server_list            Peer Cache Statistics   public
 non_peers              List of Unknown sites sending ICP messages      public


kemudian pilih lah salah satu yang kita mau lihat

contohnya

squidclient -h 192.168.1.1 -p 3128 mgr:info
User avatar
didiet_file
Posts: 27
Joined: 18 Aug 2010, 02:58
Location: depok

Re: perintah untuk melihat performa squid

Postby didiet_file » 26 Aug 2010, 03:11

lw mau cek jalan apa nggak squidnya pa bgmn bro???
User avatar
didiet_file
Posts: 27
Joined: 18 Aug 2010, 02:58
Location: depok

Re: perintah untuk melihat performa squid

Postby didiet_file » 26 Aug 2010, 03:17

klo step bikinnya lw harus patokin mana lan yang ke luar (modem) sama ke dalam (client), baru sesudah itu baru lw arahin cek yang ke luar dah konek blum, klo udah tinggal transparent ke client dengan segmen ip yang berbeda, trus masukin ke proxy habis itu cek konek ke server proxynya buat atur bandwith pake polls, klo buat reportnya pake sarg dan pake install webmin biar gampang atur jarak jauhnya tinggal pangil IP puliknya brooooo.....

pokoknya terus setup w juga bgtu dulu ....hehehehehehe
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: perintah untuk melihat performa squid

Postby thrvers » 26 Aug 2010, 03:41

'
mambah ilmu neeh :grin:
baru tau option2nya, cz tau-nya cman ntu atas aj.

= THX =
User avatar
amanda
Posts: 203
Joined: 22 May 2010, 02:35

Re: perintah untuk melihat performa squid

Postby amanda » 26 Aug 2010, 09:11

didiet_file wrote:lw mau cek jalan apa nggak squidnya pa bgmn bro???


ps aux | grep squid
User avatar
sabar
Posts: 42
Joined: 23 Jul 2010, 21:01

Re: perintah untuk melihat performa squid

Postby sabar » 28 Aug 2010, 19:13

root@khaira:~# squidclient -h 192.168.180.104 -p 8080 mgr:info
HTTP/1.0 401 Unauthorized
Server: squid/2.7.STABLE7
Date: Sat, 28 Aug 2010 12:09:55 GMT
Content-Type: text/html
Content-Length: 1381
X-Squid-Error: ERR_CACHE_MGR_ACCESS_DENIED 0
WWW-Authenticate: Basic realm="info"
X-Cache: MISS from teess
X-Cache-Lookup: MISS from teess:8080
Via: 1.0 teess:8080 (squid/2.7.STABLE7)
Connection: close

root@khaira:~# ps aux | grep squid
root 1406 0.0 1.4 59068 5256 pts/0 S+ 18:57 0:00 gedit /etc/squid/squid.conf
root 1672 0.0 0.1 5140 560 ? Ss 19:02 0:00 squid �d 1 -D
squid 1674 0.1 1.3 12360 4884 ? Sl 19:02 0:00 (squid) -D �d 1
root 1969 0.0 0.2 3324 804 pts/1 S+ 19:11 0:00 grep --color=auto squid

kalau bgini ?????? maklum baru belajar makanya banyak bertanya takut sesat di jalan
User avatar
amanda
Posts: 203
Joined: 22 May 2010, 02:35

Re: perintah untuk melihat performa squid

Postby amanda » 28 Aug 2010, 19:31

squidclient nya sudah terinstall maz?
sudo apt-get install squidclient

squidclient -h 192.168.180.104 -p 8080 mgr:

192.168.180.104 >> host yang di gunakan oleh squid
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: perintah untuk melihat performa squid

Postby thrvers » 28 Aug 2010, 20:11

'
melengkapi aj:
untuk IP bisa dilihat dr sini :D
$ cat /etc/squid3/squid.conf | grep "acl localhost"

klo punya q misal outputnya:
acl localhost src 127.0.100.1/32

127.0.100.1 >> host yang di gunakan oleh squid

* CMIIW *
User avatar
sabar
Posts: 42
Joined: 23 Jul 2010, 21:01

Re: perintah untuk melihat performa squid

Postby sabar » 28 Aug 2010, 20:36

maksi cemuanya

cat /etc/squid3/squid.conf | grep "acl localhost"
acl localhost src 127.0.0.1/32

root@khaira:~# squidclient -h 127.0.100.1/32 -p 8080 mgr:info
client: ERROR: Cannot connect to 127.0.100.1/32:8080: Connection timed out



kalau begini bgaimana ????? koq nga kliatan ??????

mohon penjelasan agar tidak tersesat di jalan heheheh
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: perintah untuk melihat performa squid

Postby thrvers » 28 Aug 2010, 21:00

'
wedew kok gt :)

tuh dah: acl localhost src 127.0.0.1/32
berarti:
# squidclient -i 127.0.0.1/32 -p 8080 mgr:info


NB: buat liat portnya:
$ cat /etc/squid3/squid.conf | grep "http_port"
contoh outputnya:
http_port 8080

* CMIIW *
User avatar
sabar
Posts: 42
Joined: 23 Jul 2010, 21:01

Re: perintah untuk melihat performa squid

Postby sabar » 28 Aug 2010, 21:23

root@khaira:~# squidclient -i 127.0.0.1/32 -p 8080 mgr:info

HTTP/1.0 401 Unauthorized
Server: squid/2.7.STABLE7
Date: Sat, 28 Aug 2010 14:23:02 GMT
Content-Type: text/html
Content-Length: 1363
X-Squid-Error: ERR_CACHE_MGR_ACCESS_DENIED 0
WWW-Authenticate: Basic realm="info"
X-Cache: MISS from teess
X-Cache-Lookup: MISS from teess:8080
Via: 1.0 teess:8080 (squid/2.7.STABLE7)
Connection: close

ERROR: Cache Manager Access Denied ERROR Cache Manager Access Denied. The following error was encountered while trying to retrieve the URL: cache_object://localhost/info Cache Manager Access Denied. Sorry, you are not currently allowed to request cache_object://localhost/info from this cache manager until you have authenticated yourself. Please contact the cache administrator if you have difficulties authenticating yourself or, if you are the administrator, read Squid documentation on cache manager interface and check cache log for more detailed error messages. Generated Sat, 28 Aug 2010 14:23:02 GMT by teess (squid/2.7.STABLE7) root@khaira:~#


pusing???????????????????????????//
tulungin doank apalagi nich yang muncul ???????????????
User avatar
amanda
Posts: 203
Joined: 22 May 2010, 02:35

Re: perintah untuk melihat performa squid

Postby amanda » 28 Aug 2010, 21:24

cb squidclient -p 8080 mgr:info
User avatar
sabar
Posts: 42
Joined: 23 Jul 2010, 21:01

Re: perintah untuk melihat performa squid

Postby sabar » 28 Aug 2010, 21:32

root@khaira:~# squidclient -p 8080 mgr:info

HTTP/1.0 401 Unauthorized
Server: squid/2.7.STABLE7
Date: Sat, 28 Aug 2010 14:29:43 GMT
Content-Type: text/html
Content-Length: 1363
X-Squid-Error: ERR_CACHE_MGR_ACCESS_DENIED 0
WWW-Authenticate: Basic realm="info"
X-Cache: MISS from teess
X-Cache-Lookup: MISS from teess:8080
Via: 1.0 teess:8080 (squid/2.7.STABLE7)
Connection: close

ERROR: Cache Manager Access Denied ERROR Cache Manager Access Denied. The following error was encountered while trying to retrieve the URL: cache_object://localhost/info Cache Manager Access Denied. Sorry, you are not currently allowed to request cache_object://localhost/info from this cache manager until you have authenticated yourself. Please contact the cache administrator if you have difficulties authenticating yourself or, if you are the administrator, read Squid documentation on cache manager interface and check cache log for more detailed error messages. Generated Sat, 28 Aug 2010 14:29:43 GMT by teess (squid/2.7.STABLE7) [/b] root@khaira:~#

sama aja KK sudah pusing nich apa yang salahya, kalau yang di bold itu artinya apa yach ?????
User avatar
amanda
Posts: 203
Joined: 22 May 2010, 02:35

Re: perintah untuk melihat performa squid

Postby amanda » 28 Aug 2010, 21:57

cache manager nya seperti nya terpasswd

cb liat di squid.conf ada option ini >>> cachemgr_passwd

kalo ada misal >>>>> cachemgr_passwd khaira all

maka squidclient -p 8080 mgr:info@khaira
User avatar
sabar
Posts: 42
Joined: 23 Jul 2010, 21:01

Re: perintah untuk melihat performa squid

Postby sabar » 28 Aug 2010, 22:03

udah berhasil thanks all
setelah melihat config ternyata mesti di tambahin password squidclient -p 8080 mgr:info@1234

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 2 guests