Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Monitoring swith-y
redelek
post
Post #1





Grupa: Zarejestrowani
Postów: 658
Pomógł: 37
Dołączył: 4.06.2005
Skąd: Wawa

Ostrzeżenie: (0%)
-----


Witam,

Mam w firmie swith-e CISCO, poprzez www można oglądać statystyki każdego gniazdka ile danych wysłał ile odebrał.
Niestety dane te są czystym tekstem w prostym HTML-u. I tu moje pytanie
czy wiecie jak i czy wogóle można pobrać wartości z takiej sieczki

FastEthernet0/5 is up, line protocol is up
Hardware is Fast Ethernet, address is 0004.27dc.0345 (bia 0004.27dc.0345)
Description: GM3/22
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not set
Auto-duplex (Full), Auto Speed (100), 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:26, output 00:00:26, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 1000 bits/sec, 1 packets/sec
2481810 packets input, 1426225855 bytes
Received 82915 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 21650 multicast
0 input packets with dribble condition detected
4037360 packets output, 1553305833 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out

Przykładowe wartości które by mnie interesowały pogróbiłem. Czy można to jakoś pobrać czy raczej nierealne to jest ?

Dzięki za info i wskazówki

Redelek
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nowotny
post
Post #2





Grupa: Zarejestrowani
Postów: 875
Pomógł: 122
Dołączył: 2.02.2008

Ostrzeżenie: (0%)
-----


No i dobrze... powinno działać... co ci wyświetla...?
Go to the top of the page
+Quote Post
redelek
post
Post #3





Grupa: Zarejestrowani
Postów: 658
Pomógł: 37
Dołączył: 4.06.2005
Skąd: Wawa

Ostrzeżenie: (0%)
-----


Cytat(nowotny @ 7.02.2008, 16:38:19 ) *
No i dobrze... powinno działać... co ci wyświetla...?


Takie coś

Array ( [0] => Array ( [name] => [bytes_in] => [bytes_out] => ) [1] => Array ( [name] => FastEthernet0/1 [bytes_in] => [bytes_out] => ) [2] => Array ( [name] => FastEthernet0/2 [bytes_in] => [bytes_out] => ) [3] => Array ( [name] => FastEthernet0/3 [bytes_in] => [bytes_out] => ) [4] => Array ( [name] => FastEthernet0/4 [bytes_in] => [bytes_out] => ) [5] => Array ( [name] => FastEthernet0/5 [bytes_in] => [bytes_out] => ) [6] => Array ( [name] => FastEthernet0/6 [bytes_in] => [bytes_out] => ) [7] => Array ( [name] => FastEthernet0/7 [bytes_in] => [bytes_out] => ) [8] => Array ( [name] => FastEthernet0/8 [bytes_in] => [bytes_out] => ) [9] => Array ( [name] => FastEthernet0/9 [bytes_in] => [bytes_out] => ) [10] => Array ( [name] => FastEthernet0/10 [bytes_in] => [bytes_out] => ) [11] => Array ( [name] => FastEthernet0/11 [bytes_in] => [bytes_out] => ) [12] => Array ( [name] => FastEthernet0/12 [bytes_in] => [bytes_out] => ) [13] => Array ( [name] => FastEthernet0/13 [bytes_in] => [bytes_out] => ) [14] => Array ( [name] => FastEthernet0/14 [bytes_in] => [bytes_out] => ) [15] => Array ( [name] => FastEthernet0/15 [bytes_in] => [bytes_out] => ) [16] => Array ( [name] => FastEthernet0/16 [bytes_in] => [bytes_out] => ) [17] => Array ( [name] => FastEthernet0/17 [bytes_in] => [bytes_out] => ) [18] => Array ( [name] => FastEthernet0/18 [bytes_in] => [bytes_out] => ) [19] => Array ( [name] => FastEthernet0/19 [bytes_in] => [bytes_out] => ) [20] => Array ( [name] => FastEthernet0/20 [bytes_in] => [bytes_out] => ) [21] => Array ( [name] => FastEthernet0/21 [bytes_in] => [bytes_out] => ) [22] => Array ( [name] => FastEthernet0/22 [bytes_in] => [bytes_out] => ) [23] => Array ( [name] => FastEthernet0/23 [bytes_in] => [bytes_out] => ) [24] => Array ( [name] => FastEthernet0/24 [bytes_in] => [bytes_out] => ) [25] => Array ( [name] => GigabitEthernet0/1 [bytes_in] => [bytes_out] => ) [26] => Array ( [name] => GigabitEthernet0/2 [bytes_in] => [bytes_out] => ) )
Go to the top of the page
+Quote Post

Posty w temacie
- redelek   [php] Monitoring swith-y   6.02.2008, 17:20:37
- - anonim1133   file() odpowiednie linijki explode na ",...   6.02.2008, 17:50:46
|- - redelek   Cytat(anonim1133 @ 6.02.2008, 17:50:4...   6.02.2008, 18:07:15
- - webdicepl   Skorzystaj z cURL, a następnie z wyrażeń regularny...   6.02.2008, 19:25:04
|- - redelek   Cytat(webdicepl @ 6.02.2008, 19:25:04...   7.02.2008, 10:14:53
- - nowotny   Musisz sobie dodać ustawienie: [PHP] pobierz,...   7.02.2008, 11:47:34
|- - redelek   Cytat(nowotny @ 7.02.2008, 11:47:34 )...   7.02.2008, 13:58:29
- - nowotny   Pokaż pełny kod źródłowy, czyli zawartość zmiennej...   7.02.2008, 14:37:00
|- - redelek   Cytat(nowotny @ 7.02.2008, 14:37:00 )...   7.02.2008, 15:13:51
- - nowotny   Ok... widze że jednak taka kompletna sieczka... Wi...   7.02.2008, 15:21:58
|- - redelek   Cytat(nowotny @ 7.02.2008, 15:21:58 )...   7.02.2008, 15:31:53
- - nowotny   [PHP] pobierz, plaintext <?phppreg_match_all...   7.02.2008, 16:03:30
|- - redelek   Cytat(nowotny @ 7.02.2008, 16:03:30 )...   7.02.2008, 16:13:09
- - nowotny   Zamiast "$string" wpisz "...   7.02.2008, 16:20:57
|- - redelek   Cytat(nowotny @ 7.02.2008, 16:20:57 )...   7.02.2008, 16:31:25
- - nowotny   Hmm... coś namieszałeś... poka...   7.02.2008, 16:34:19
|- - redelek   Cytat(nowotny @ 7.02.2008, 16:34:19 )...   7.02.2008, 16:35:29
- - nowotny   No i dobrze... powinno działać... co ci wyświetla....   7.02.2008, 16:38:19
|- - redelek   RE: [php] Monitoring swith-y   7.02.2008, 16:45:43
- - nowotny   Dodaj [PHP] pobierz, plaintext <?phpfile_put_co...   7.02.2008, 16:49:11
|- - redelek   Cytat(nowotny @ 7.02.2008, 16:49:11 )...   7.02.2008, 16:58:44
- - nowotny   Teraz powinno działać: [PHP] pobierz, plaintext ...   7.02.2008, 20:15:36
|- - redelek   Cytat(nowotny @ 7.02.2008, 20:15:36 )...   8.02.2008, 08:06:19
- - nowotny   Przeleć się po tablicy $out i wyświetl sobie ...   8.02.2008, 10:48:20
- - redelek   Cytat(nowotny @ 8.02.2008, 10:48:20 )...   8.02.2008, 11:33:15


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 5.10.2025 - 15:18