appdirector#net ip
Interface Table
IP Address Network Mask If Number VlanTag
1.1.1.1 255.255.255.0 8 0
10.130.31.51 255.255.255.224 17 0
appdirector#net route table
Routing Table
Destination Network Mask Next Hop Interface Type
Address Index
0.0.0.0 0.0.0.0 10.130.31.62 17 remote
1.1.1.0 255.255.255.0 0.0.0.0 8 local
10.130.31.32 255.255.255.224 0.0.0.0 17 local
appdirector #sys os cpu
Device Resource Utilization
RS Resource Utilization : 0
RE Resource Utilization : 0
Maximum Utilization : 0
如果有一项值超过 90,就需要引起注意
WSD#sys config immediate
!
!Device Configuration
!Date: 19-03-2007 12:07:07
!DeviceDescription: AppDirector Global with Cookie Persistency
!Base MAC Address: 00:03:b2:2e:20:40
!Software Version: 1.03.04 (build Feb 14 2007, 22:29:01)
!
net route table create 0.0.0.0 0.0.0.0 10.130.31.62 -i 17
manage snmp community-table create 0.0.0.0 public -ca super -st trapsEnable
system tune bridge-fft-table set 1024
# system device info
#system license get
#sys logfile
appdirector#net ip
Interface Table
IP Address Network Mask If Number VlanTag
1.1.1.1 255.255.255.0 8 0
10.130.31.51 255.255.255.224 17 0
appdirector#net route table
Routing Table
Destination Network Mask Next Hop Interface Type
Address Index
0.0.0.0 0.0.0.0 10.130.31.62 17 remote
1.1.1.0 255.255.255.0 0.0.0.0 8 local
10.130.31.32 255.255.255.224 0.0.0.0 17 local
appdirector #sys os cpu
Device Resource Utilization
RS Resource Utilization : 0
RE Resource Utilization : 0
Maximum Utilization : 0
如果有一项值超过 90,就需要引起注意
appdirector # appdirector farm server table
Server Table
Farm Address Server Address Server Name Operational Attached Users
Status
10.130.31.33 10.130.31.34 server-1 Active 3
10.130.31.33 10.130.31.35 server-2 Active 4
10.130.31.33 10.130.31.36 server-3 Active 0
10.130.31.33 10.130.31.37 server-4 Active 0
10.130.31.33 10.130.31.38 server-5 Active 0
10.130.31.33 10.130.31.39 server-6 Active 0
10.130.31.33 10.130.31.40 server-7 Active 0
10.130.31.33 10.130.31.41 server-8 Active 0
appdirector # appdirector client table
RS CLIENTS Table
Total number of clients: 2
Client Address Src P Dst P Farm Address Server Address Attach Date
NAT Address NAT P Srv P L4 Policy Addr Client Type Attach Time
10.130. 31.226 56887 161 10.130. 31. 33 10.130. 31. 34 02-03-2006
0. 0. 0. 0 0 161 0. 0. 0. 0 Dynamic 12:01:02
10.130. 31.226 0 0 10.130. 31. 33 10.130. 31. 34 02-03-2006
0. 0. 0. 0 0 0 0. 0. 0. 0 Dynamic 11:44:13
注意观察客户表的大小 , 不要超过太大值 . 一般情况下 , 几千条是正常的 .这个表的大小与Farm中设置的老化时间有很大关系 , 老化时间越短 , 表也就越小 .
appdirector # sys interal appdirector session-id-info
appdirector#sys config immediate
!
!Device Configuration
!Date: 19-03-2007 12:07:07
!DeviceDescription: AppDirector Global with Cookie Persistency
!Base MAC Address: 00:03:b2:2e:20:40
!Software Version: 1.03.04 (build Feb 14 2007, 22:29:01)
!
net route table create 0.0.0.0 0.0.0.0 10.130.31.62 -i 17
manage snmp community-table create 0.0.0.0 public -ca super -st trapsEnable
system tune bridge-fft-table set 1024
manage terminal grid-mode set off
由于系统语言的区别, 导致命令行制表符显示乱码, 以上命令消除了制表符, 使得负载均衡设备正常输出字符
AppDirector#net ip-interface
net ip-interface help:
<get> <IP Address>
set <IP Address> <-switch value>
destroy/del <IP Address>
create/add <IP Address> <Network Mask> <If Number> <-switch value>
help <-switch>
Switches:
-i : If Number
-m : Network Mask
-f : Fwd Broadcast
-ba : Broadcast Addr
-v : VlanTag
AppDirector#net route table
net route table help:
<get> <Destination Address> <Network Mask> <Next Hop>
set <Destination Address> <Network Mask> <Next Hop> <-switch
value>
destroy/del <Destination Address> <Network Mask> <Next Hop>
create/add <Destination Address> <Network Mask> <Next Hop> <-switch
value>
help <-switch>
Switches:
-i : Interface Index
-t : Type
-m : Metric
AppDirector#system inf-stats
看物理端口是否有丢包或者错误数据包
AppDirector#redundancy vrrp virtual-routers
AppDirector#system os cpu
对于AS4设备(内网 web层)的查看命令是
system uti
client table 是负载均衡设备总的会话集合
AppDirector#appdirector client table
会话表的总数量在第一行:
Display the client table:
Client Address: The client's address
Src P: The client's source port
Dst P: The destination port to which the client
has connected
Farm Name: The farm name of the client
Attach Date: The date of the client first packet
Server Address: The address of the server to which the
client has been redirected
Client Address: The client's NAT address
NAT P: The client's NAT source port
Srv P: The port on the server to which the client
was redirected
VIP: The VIP address of the client
Attach Time: The time of the client first packet
Client Type: The type of the connection
AppDirector#appdirector farm server table
Not in service 表示健康检查失败,不发流量给它
Active 表示健康检查成功,发流量给它
appdirector farm server table help:
<get> <Farm Name> <Server Address> <Server Port>
set <Farm Name> <Server Address> <Server Port> <-switch value>
destroy/del <Farm Name> <Server Address> <Server Port>
create/add <Farm Name> <Server Address> <Server Port> <-switch value>
help <-switch>
Switches:
-sn : Server Name
-w : Weight
-om : Operation Mode
-st : Type
-cl : Connection Limit
-as : Admin Status
-bl : Bandwidth Limit
-rt : Redirect To
-cn : Client NAT
-sd : Server Description
-rs : Response Threshold [ms]
-ba : Backup Server Address
-pm : Backup Preemption
-nr : Client NAT Address Range
AppDirector#system config immediate