1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
|
root@linux:~# ./switch.pl
Line:
Line: switch>terminal length 0
Line: switch>enable
Line: Password:
Line: switch#sh interfaces counters
Line:
Line: Port InOctets InUcastPkts InMcastPkts InBcastPkts
Line: Fa0/1 39253732 92339 155453 6176
Key: Fa0/1
InOctets => 39253732, InUcastPkts => 92339, InMcastPkts => 155453, InBcastPkts => 6176
Line: Fa0/2 20467564400 20177433 241707 67765
Key: Fa0/2
InOctets => 20467564400, InUcastPkts => 20177433, InMcastPkts => 241707, InBcastPkts => 67765
Line: Fa0/3 647715947 3363573 67 9078
Key: Fa0/3
InOctets => 647715947, InUcastPkts => 3363573, InMcastPkts => 67, InBcastPkts => 9078
Line: Fa0/4 3807080861 8983259 300 4021
Key: Fa0/4
InOctets => 3807080861, InUcastPkts => 8983259, InMcastPkts => 300, InBcastPkts => 4021
Line: Fa0/5 974816057 6462302 124 857
Key: Fa0/5
InOctets => 974816057, InUcastPkts => 6462302, InMcastPkts => 124, InBcastPkts => 857
Line: Fa0/6 826395598 5430691 29 3818
Key: Fa0/6
InOctets => 826395598, InUcastPkts => 5430691, InMcastPkts => 29, InBcastPkts => 3818
Line: Fa0/7 8546273127 30119310 76051 59256
Key: Fa0/7
InOctets => 8546273127, InUcastPkts => 30119310, InMcastPkts => 76051, InBcastPkts => 59256
Line: Fa0/8 2188276369 9444083 218966 343299
Key: Fa0/8
InOctets => 2188276369, InUcastPkts => 9444083, InMcastPkts => 218966, InBcastPkts => 343299
Line: Fa0/9 2091185870 18059430 31008 128012
Key: Fa0/9
InOctets => 2091185870, InUcastPkts => 18059430, InMcastPkts => 31008, InBcastPkts => 128012
Line: Fa0/10 7811312 51421 6 192
Key: Fa0/10
InOctets => 7811312, InUcastPkts => 51421, InMcastPkts => 6, InBcastPkts => 192
Line: Fa0/11 8056956788 13490370 5737 399811
Key: Fa0/11
InOctets => 8056956788, InUcastPkts => 13490370, InMcastPkts => 5737, InBcastPkts => 399811
Line: Fa0/12 0 0 0 0
Key: Fa0/12
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/13 0 0 0 0
Key: Fa0/13
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/14 1124993080 856145 74 3
Key: Fa0/14
InOctets => 1124993080, InUcastPkts => 856145, InMcastPkts => 74, InBcastPkts => 3
Line: Fa0/15 0 0 0 0
Key: Fa0/15
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/16 0 0 0 0
Key: Fa0/16
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/17 0 0 0 0
Key: Fa0/17
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/18 0 0 0 0
Key: Fa0/18
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/19 126086300 493401 6 141
Key: Fa0/19
InOctets => 126086300, InUcastPkts => 493401, InMcastPkts => 6, InBcastPkts => 141
Line: Fa0/20 0 0 0 0
Key: Fa0/20
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/21 0 0 0 0
Key: Fa0/21
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/22 0 0 0 0
Key: Fa0/22
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/23 0 0 0 0
Key: Fa0/23
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Fa0/24 0 0 0 0
Key: Fa0/24
InOctets => 0, InUcastPkts => 0, InMcastPkts => 0, InBcastPkts => 0
Line: Gi0/1 9489479 67575 5 211
Key: Gi0/1
InOctets => 9489479, InUcastPkts => 67575, InMcastPkts => 5, InBcastPkts => 211
Line: Gi0/2 25937918634 99765547 5933964 11559467
Key: Gi0/2
InOctets => 25937918634, InUcastPkts => 99765547, InMcastPkts => 5933964, InBcastPkts => 11559467
Line:
Line: Port OutOctets OutUcastPkts OutMcastPkts OutBcastPkts
Line: Fa0/1 1480324426 231480 6479043 12570594
Key: Fa0/1
OutOctets => 1480324426, OutUcastPkts => 231480, OutMcastPkts => 6479043, OutBcastPkts => 12570594
Line: Fa0/2 3333316861 12754003 6386091 12507993
Key: Fa0/2
OutOctets => 3333316861, OutUcastPkts => 12754003, OutMcastPkts => 6386091, OutBcastPkts => 12507993
Line: Fa0/3 1671999116 3451456 6628124 12567836
Key: Fa0/3
OutOctets => 1671999116, OutUcastPkts => 3451456, OutMcastPkts => 6628124, OutBcastPkts => 12567836
Line: Fa0/4 4347727969 8593467 6627757 12571364
Key: Fa0/4
OutOctets => 4347727969, OutUcastPkts => 8593467, OutMcastPkts => 6627757, OutBcastPkts => 12571364
Line: Fa0/5 2317539616 6706239 5793885 10821290
Key: Fa0/5
OutOctets => 2317539616, OutUcastPkts => 6706239, OutMcastPkts => 5793885, OutBcastPkts => 10821290
Line: Fa0/6 1784243367 5565651 5794009 10819358
Key: Fa0/6
OutOctets => 1784243367, OutUcastPkts => 5565651, OutMcastPkts => 5794009, OutBcastPkts => 10819358
Line: Fa0/7 8197576063 29848069 5724005 10763354
Key: Fa0/7
OutOctets => 8197576063, OutUcastPkts => 29848069, OutMcastPkts => 5724005, OutBcastPkts => 10763354
Line: Fa0/8 2686291418 8906272 5580244 10478485
Key: Fa0/8
OutOctets => 2686291418, OutUcastPkts => 8906272, OutMcastPkts => 5580244, OutBcastPkts => 10478485
Line: Fa0/9 4039435207 19735930 6594086 12441316
Key: Fa0/9
OutOctets => 4039435207, OutUcastPkts => 19735930, OutMcastPkts => 6594086, OutBcastPkts => 12441316
Line: Fa0/10 1203548361 125419 5793976 10822751
Key: Fa0/10
OutOctets => 1203548361, OutUcastPkts => 125419, OutMcastPkts => 5793976, OutBcastPkts => 10822751
Line: Fa0/11 9669347421 13021913 6622747 12177007
Key: Fa0/11
OutOctets => 9669347421, OutUcastPkts => 13021913, OutMcastPkts => 6622747, OutBcastPkts => 12177007
Line: Fa0/12 1197085724 76475 5789771 10810789
Key: Fa0/12
OutOctets => 1197085724, OutUcastPkts => 76475, OutMcastPkts => 5789771, OutBcastPkts => 10810789
Line: Fa0/13 0 0 0 0
Key: Fa0/13
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/14 367894640 498134 734 1629
Key: Fa0/14
OutOctets => 367894640, OutUcastPkts => 498134, OutMcastPkts => 734, OutBcastPkts => 1629
Line: Fa0/15 0 0 0 0
Key: Fa0/15
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/16 0 0 0 0
Key: Fa0/16
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/17 0 0 0 0
Key: Fa0/17
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/18 0 0 0 0
Key: Fa0/18
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/19 215398333 460039 829752 1739535
Key: Fa0/19
OutOctets => 215398333, OutUcastPkts => 460039, OutMcastPkts => 829752, OutBcastPkts => 1739535
Line: Fa0/20 0 0 0 0
Key: Fa0/20
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/21 0 0 0 0
Key: Fa0/21
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/22 0 0 0 0
Key: Fa0/22
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/23 0 0 0 0
Key: Fa0/23
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Fa0/24 0 0 0 0
Key: Fa0/24
OutOctets => 0, OutUcastPkts => 0, OutMcastPkts => 0, OutBcastPkts => 0
Line: Gi0/1 1204106253 136825 5794024 10822465
Key: Gi0/1
OutOctets => 1204106253, OutUcastPkts => 136825, OutMcastPkts => 5794024, OutBcastPkts => 10822465
Line: Gi0/2 46714074771 108015868 1288147 1017341
Key: Gi0/2
OutOctets => 46714074771, OutUcastPkts => 108015868, OutMcastPkts => 1288147, OutBcastPkts => 1017341
Line: switch#
Key: switch#
Use of uninitialized value in concatenation (.) or string at ./switch.pl line 43.
Use of uninitialized value in concatenation (.) or string at ./switch.pl line 43.
Use of uninitialized value in concatenation (.) or string at ./switch.pl line 43.
Use of uninitialized value in concatenation (.) or string at ./switch.pl line 43.
OutOctets => , OutUcastPkts => , OutMcastPkts => , OutBcastPkts =>
Use of uninitialized value in say at ./switch.pl line 49.
Key Gi0/2, InOctets:
root@linux:~# |
Partager