资源预览内容
第1页 / 共14页
第2页 / 共14页
第3页 / 共14页
第4页 / 共14页
第5页 / 共14页
第6页 / 共14页
第7页 / 共14页
第8页 / 共14页
第9页 / 共14页
第10页 / 共14页
亲,该文档总共14页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
1. F5设备关键信息采集1.1 CPU占用率获取命令行:#tmstat在最顶上已行即是CPU占用率通过SNMP系统进行获取的方式采集以下值total cycles (sysStatTmTotalCycles - .1.3.6.1.4.1.3375.2.1.1.2.1.41)idle cycles (sysStatTmIdleCycles - .1.3.6.1.4.1.3375.2.1.1.2.1.42)和sleep cycles(sysStatTmSleepCycles-.1.3.6.1.4.1.3375.2.1.1.2.1.43). 大约每隔10秒钟执行一次以上采集动作2. 对每一个值,计算其增量针对两次获取到的结果,示例如下DeltaTmTotalCycles = sysStatTmTotalCycles2 - sysStatTmTotalCycles1DeltaTmIdleCycles = sysStatTmIdleCycles2 - sysStatTmIdleCycles1DeltaTmSleepCycles = sysStatTmSleepCycles2- sysStatTmSleepCycles13然后根据以下公式计算CPU利用率:CPUusage=(DeltaTmTotalCycles - (DeltaTmIdleCycles +DeltaTmSleepCycles) / DeltaTmTotalCycles) *100最终的CPUusage则为该时段的平均CPU占用率。1.2 内存占用率的获取命令行:#b memory显示结果的第一行包括系统的总内存数量和当前已经使用的内存数量SNMP:通过OID sysStatMemoryUsed (.1.3.6.1.4.1.3375.2.1.1.2.1.45) 获取测试命令及输出:rootbigip4:Active config # snmpwalk -c public -v2c localhost -On .1.3.6.1.4.1.3375.2.1.1.2.1.45.1.3.6.1.4.1.3375.2.1.1.2.1.45.0 = Counter64: 3841105921.3 系统总连接数:命令行参数:#b global show输出如下:rootbigip1:Active config # b global showGLOBAL STATISTICS -Client side (cur, max, tot) = (32, 45, 244142) /此处为当前Client端的并发连接数 (pkts, bits) in = (719555, 424.4M), out = (342699, 403.0M) PVA (cur, max, tot) = (0, 0, 0) PVA (pkts, bits) in = (0, 0), out = (0, 0)Server side (cur, max, tot) = (32, 44, 234935) /此处为当前Server端的并发连接数 (pkts, bits) in = (716344, 422.7M), out = (139137, 315.1M) PVA (cur, max, tot) = (0, 0, 0) PVA (pkts, bits) in = (0, 0), out = (0, 0)PVA connections (curr, tot) = (0, 0)TMM cycles (total, idle, sleep) = (213.1T, 121.3T, 91.48T)Denials (maint, addr full, serv full) = (0, 0, 0) (no serv, no listen, no mem, no lic) = (0, 10150, 0, 0)CPU (total, active, multi-mode) = (1, 1, UP)Memory (total, used) = (768.0M, 196.3M)Packets (drop, err in, err out) = (0, 0, 0)HTTP requests = 0Authorization - results (yes, no, defer, err) = (0, 0, 0, 0) sessions (cur, max, tot) = (0, 0, 0)OneConnect (curr, max, reuse, new) = (0, 0, 0, 0)Stream replacements = 0XML profile errors = 0rootbigip1:Active config #SNMP:通过以下OID获取:sysStatClientCurConns (.1.3.6.1.4.1.3375.2.1.1.2.1.8)测试命令及输出:rootbigip2:Active config # snmpwalk -c public -v2c localhost -On .1.3.6.1.4.1.3375.2.1.1.2.1.8.1.3.6.1.4.1.3375.2.1.1.2.1.8.0 = Counter64: 121.4 系统新建连接数命令行指令:bigtop注意,bigtop输出在默认情况下为4秒钟统计值,每秒新建连接需要将该值除以4。SNMP:通过以下OID获取:sysStatClientTotConns (.1.3.6.1.4.1.3375.2.1.1.2.1.7)/time其中time为两次SNMP Get的间隔时间。系统吞吐流量:通过以下OID获取:客户端入流量:( sysStatClientBytesIn (.1.3.6.1.4.1.3375.2.1.1.2.1.3)*8 ) / time客户端出流量:( sysStatClientBytesOut (.1.3.6.1.4.1.3375.2.1.1.2.1.5) *8 ) / time服务器端入流量:( sysStatServerBytesIn (.1.3.6.1.4.1.3375.2.1.1.2.1.10)*8 ) / time服务器端出流量:( sysStatServerBytesOut (.1.3.6.1.4.1.3375.2.1.1.2.1.12) *8 ) /time其中time为两次SNMP Get的间隔时间。1.5 VS流量获取:命令行参数:#b vs show将输出所有VS的当前状态SNMP:VS 对Client端的流量的获取VS Client Throughtput=VS ClientByteOut+VS ClientByteInVS ClientByteOut的OID为:.1.3.6.1.4.1.3375.2.2.10.2.3.1.9VS ClientByteIn的OID为:.1.3.6.1.4.1.3375.2.2.10.2.3.1.7以VS ClientByteOut为例:测试是否能看到值:rootgw:Active config # snmpwalk -c public -v2c localhost -On .1.3.6.1.4.1.3375.2.2.10.2.3.1.9.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.7.118.115.95.116.101.115.116 = Counter64: 35942.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.15.102.112.95.108.97.98.95.111.117.116.98.111.117.110.100 = Counter64: 401095776.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.15.111.102.102.105.99.101.95.111.117.116.98.111.117.110.100 = Counter64: 720464695.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.16.102.112.49.46.102.53.108.97.98.46.118.115.46.116.101.108 = Counter64: 254054212.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.16.102.112.50.46.102.53.108.97.98.46.118.115.46.99.110.99 = Counter64: 65675400.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.16.102.112.50.46.102.53.108.97.98.46.118.115.46.116.101.108 = Counter64: 250312237.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.16.102.112.51.46.102.53.108.97.98.46.118.115.46.99.110.99 = Counter64: 44321163.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.16.102.112.51.46.102.53.108.97.98.46.118.115.46.116.101.108 = Counter64: 222635369.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.16.102.112.52.46.102.53.108.97.98.46.118.115.46.99.110.99 = Counter64: 4929087.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.16.102.112.52.46.102.53.108.97.98.46.118.115.46.116.101.108 = Counter64: 127996782.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.16.102.112.95.98.105.103.105.112.95.108.97.98.95.116.101.108 = Counter64: 771582372.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.19.102.112.49.46.102.53.108.97.98.46.99.110.46.118.115.46.99.110.99 = Counter64: 54347649.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.19.102.112.95.98.105.103.105.112.95.108.97.98.95.118.115.95.99.110.99 = Counter64: 1319029404.1.3.6.1.4.1.3375.2.2.10.2.3.1.9.24.118.115.95.50.49.57.95.49.52.50.95.57.52.95.49.56.57.95.53.51.95.103.116.109 = Counter64: 325004.1.3.6.1.4.1.3375.2.
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号