radware负载均衡器常用维护查询命令.docx
《radware负载均衡器常用维护查询命令.docx》由会员分享,可在线阅读,更多相关《radware负载均衡器常用维护查询命令.docx(13页珍藏版)》请在冰豆网上搜索。
radware负载均衡器常用维护查询命令
命令行维护命令
11.1查看接口地址
appdirector#netip
InterfaceTable
IPAddressNetworkMaskIfNumberVlanTag
1.1.1.1255.255.255.080
10.130.31.51255.255.255.224170
11.2查看路由表
appdirector#netroutetable
RoutingTable
DestinationNetworkMaskNextHopInterfaceType
AddressIndex
0.0.0.00.0.0.010.130.31.6217remote
1.1.1.0255.255.255.00.0.0.08local
10.130.31.32255.255.255.2240.0.0.017local
11.3查看CPU
appdirector#sysoscpu
DeviceResourceUtilization
RSResourceUtilization:
0
REResourceUtilization:
0
MaximumUtilization:
0
如果有一项值超过90,就需要引起注意
11.4查看WSD的全部配置
WSD#sysconfigimmediate
!
!
DeviceConfiguration
!
Date:
19-03-200712:
07:
07
!
DeviceDescription:
AppDirectorGlobalwithCookiePersistency
!
BaseMACAddress:
00:
03:
b2:
2e:
20:
40
!
SoftwareVersion:
1.03.04(buildFeb142007,22:
29:
01)
!
netroutetablecreate0.0.0.00.0.0.010.130.31.62-i17
managesnmpcommunity-tablecreate0.0.0.0public-casuper-sttrapsEnable
systemtunebridge-fft-tableset1024
11.5查看当前设备的版本信息
#systemdeviceinfo
11.6查看当前设备的License
#systemlicenseget
11.7查看端口流量
#systeminf-stats
11.8查看2层端口状态
#netl2-information
11.9显示日志信息
#syslogfile
命令行维护命令
查看接口地址
appdirector#netip
InterfaceTable
IPAddressNetworkMaskIfNumberVlanTag
1.1.1.1255.255.255.080
10.130.31.51255.255.255.224170
查看路由表
appdirector#netroutetable
RoutingTable
DestinationNetworkMaskNextHopInterfaceType
AddressIndex
0.0.0.00.0.0.010.130.31.6217remote
1.1.1.0255.255.255.00.0.0.08local
10.130.31.32255.255.255.2240.0.0.017local
查看CPU
appdirector#sysoscpu
DeviceResourceUtilization
RSResourceUtilization:
0
REResourceUtilization:
0
MaximumUtilization:
0
如果有一项值超过90,就需要引起注意
查看服务器的连接用户数
红色部分表当前连接的用户数.
appdirector#appdirectorfarmservertable
ServerTable
FarmAddressServerAddressServerNameOperationalAttachedUsers
Status
10.130.31.3310.130.31.34server-1Active3
10.130.31.3310.130.31.35server-2Active4
10.130.31.3310.130.31.36server-3Active0
10.130.31.3310.130.31.37server-4Active0
10.130.31.3310.130.31.38server-5Active0
10.130.31.3310.130.31.39server-6Active0
10.130.31.3310.130.31.40server-7Active0
10.130.31.3310.130.31.41server-8Active0
查看AppDirector的会话表
appdirector#appdirectorclienttable
RSCLIENTSTable
Totalnumberofclients:
2
ClientAddressSrcPDstPFarmAddressServerAddressAttachDate
NATAddressNATPSrvPL4PolicyAddrClientTypeAttachTime
10.130.31.2265688716110.130.31.3310.130.31.3402-03-2006
0.0.0.001610.0.0.0Dynamic12:
01:
02
10.130.31.2260010.130.31.3310.130.31.3402-03-2006
0.0.0.0000.0.0.0Dynamic11:
44:
13
注意观察客户表的大小,不要超过太大值.一般情况下,几千条是正常的.这个表的大小与Farm中设置的老化时间有很大关系,老化时间越短,表也就越小.
查看AppDirector的动态Cookie表
appdirector#sysinteralappdirectorsession-id-info
查看AppDirector的命令全部配置
appdirector#sysconfigimmediate
!
!
DeviceConfiguration
!
Date:
19-03-200712:
07:
07
!
DeviceDescription:
AppDirectorGlobalwithCookiePersistency
!
BaseMACAddress:
00:
03:
b2:
2e:
20:
40
!
SoftwareVersion:
1.03.04(buildFeb142007,22:
29:
01)
!
netroutetablecreate0.0.0.00.0.0.010.130.31.62-i17
managesnmpcommunity-tablecreate0.0.0.0public-casuper-sttrapsEnable
systemtunebridge-fft-tableset1024
常用系统命令
1、消除命令行显示乱码命令
manageterminalgrid-modesetoff
由于系统语言的区别,导致命令行制表符显示乱码,以上命令消除了制表符,使得负载均衡设备正常输出字符
2、查看ip地址
AppDirector#netip-interface
netip-interfacehelp:
set<-switchvalue>
destroy/del
create/add<-switchvalue>
help<-switch>
Switches:
-i:
IfNumber
-m:
NetworkMask
-f:
FwdBroadcast
-ba:
BroadcastAddr
-v:
VlanTag
3、查看负载均衡设备路由
AppDirector#netroutetable
netroutetablehelp:
set<-switchvalue>
destroy/del
create/add<-switchvalue>
help<-switch>
Switches:
-i:
InterfaceIndex
-t:
Type
-m:
Metric
4、查看物理端口状态
AppDirector#systeminf-stats
看物理端口是否有丢包或者错误数据包
5、查看vrrp主备工作状态
AppDirector#redundancyvrrpvirtual-routers
6、查看cpu利用率
AppDirector#systemoscpu
对于AS4设备(内网web层)的查看命令是
systemuti
7、查看负载均衡设备clenttable
clienttable是负载均衡设备总的会话集合
AppDirector#appdirectorclienttable
会话表的总数量在第一行:
Displaytheclienttable:
ClientAddress:
Theclient'saddress
SrcP:
Theclient'ssourceport
DstP:
Thedestinationporttowhichtheclient
hasconnected
FarmName:
Thefarmnameoftheclient
AttachDate:
Thedateoftheclientfirstpacket
ServerAddress:
Theaddressoftheservertowhichthe
clienthasbeenredirected
ClientAddress:
Theclient'sNATaddress
NATP:
Theclient'sNATsourceport
SrvP:
Theportontheservertowhichtheclient
wasredirected
VIP:
TheVIPaddressoftheclient
AttachTime:
Thetimeoftheclientfirstpacket
ClientType:
Thetypeoftheconnection
8、查看每个servers的会话数以及健康情况
AppDirector#appdirectorfarmservertable
Notinservice表示健康检查失败,不发流量给它
Active表示健康检查成功,发流量给它
appdirectorfarmservertablehelp:
set<-switchvalue>
destroy/del
create/add<-switchvalue>
help<-switch>
Switches:
-sn:
ServerName
-w:
Weight
-om:
OperationMode
-st:
Type
-cl:
ConnectionLimit
-as:
AdminStatus
-bl:
BandwidthLimit
-rt:
RedirectTo
-cn:
ClientNAT
-sd:
ServerDescription
-rs:
ResponseThreshold[ms]
-ba:
BackupServerAddress
-pm:
BackupPreemption
-nr:
ClientNATAddressRange
9、查看系统配置
AppDirector#systemconfigimmediate