CSM Quick CMDS
show module contentSwitchingModule 3 stats
show module contentSwitchingModule 3 variable
FIND THIS MIB
SR_C6500#sh module contentSwitchingModule all vservers | inc 10.111.111.143
MYPLTCAS_VIP110 SLB TCP 10.111.111.143/32:110 ALL OPERATIONAL 95
MYPLTCAS_VIP143 SLB TCP 10.111.111.143/32:143 ALL OPERATIONAL 157
MYPLTCAS_VIP443 SLB TCP 10.111.111.143/32:443 ALL OPERATIONAL 9806
MYPLTCAS_VIP80 SLB TCP 10.111.111.143/32:80 ALL OPERATIONAL 0
MYPLTCAS_VIP993 SLB TCP 10.111.111.143/32:993 ALL OPERATIONAL 179
MYPLTCAS_VIP995 SLB TCP 10.111.111.143/32:995 ALL OPERATIONAL 52
SR_C6500#
popnnm06# snmpwalk -v 1 -c public 10.111.2.10 1.3.6.1.4.1.9.9.254 | grep
popnnm06# snmpwalk -v 1 -c public 10.111.2.10 1.3.6.1.4.1.9.9.254 | grep 10.111.111.143
popnnm06# snmpwalk -v 1 -c public 10.111.2.10 1.3.6.1.4.1.9.9.161.1.4 | grep 10.111.111.143
popnnm06# snmpwalk -v 1 -c public 10.111.2.10 SNMPv2-SMI::enterprises.9.9.161.1.3.1.1.16.3 | grep "Counter32: 8[0-9][0-9][0-9]"
# REALS
snmpwalk -v 1 -c public 10.111.2.10 enterprises.9.9.161.1.3.1.1.5.3
snmpwalk -v 1 -c public 10.111.2.10 enterprises.9.9.161.1.3.1.1.7.3 | grep 10.111.111
snmpwalk -v 1 -c public 10.111.2.10 enterprises.9.9.161.1.3.1 | grep "Counter32: [76][0-9][0-9][0-9]"
snmpwalk -v 1 -c public 10.111.2.10 .1.3.6.1.4.1.9.9.161.1.3.1.1.5 | grep 10.111.111
snmpwalk -v 1 -c public 10.111.2.10 SNMPv2-SMI::enterprises.9.9.161.1.3.1.1.5.3.12.80.84.65.83.80.67.65.83.45.49.49.48
# VSERVERS
snmpwalk -v 1 -c public 10.111.2.10 1.3.6.1.4.1.9.9.161.1.4.1.1.17.3
FIND VSERVER MIB
SR_C6500#sh module contentSwitchingModule all vservers | inc 10.111.111.172
SR_C6500#sh module contentSwitchingModule all vservers name MYSERVERASHUB-110 config
Depois de saber os reals, procurar o ip do real na config. Por exemplo neste caso seleccionei:
PTAEXCASHUB01-10.111.111.166
# find real que comece por 10.111.111.166 com a porta 110
snmpwalk -v 1 -c public 10.111.2.10 .1.3.6.1.4.1.9.9.161.1.3.1.1.5 | grep 10.111.111.166 | grep "110 = G"
SNMPv2-SMI::enterprises.9.9.161.1.3.1.1.5.3.13.80.84.65.67.65.83.72.85.66.45.49.49.48.10.111.111.166.110 = Gauge32: 18
80.84.65.67.65.83.72 | grep 49.48.
# find vserver:
snmpwalk -v 1 -c public 10.111.2.10 1.3.6.1.4.1.9.9.161.1.4.1.1.17.3 | grep 80.84.65.67.65.83.72 | grep 49.48
SNMPv2-SMI::enterprises.9.9.161.1.4.1.1.17.3.13.80.84.65.67.65.83.72.85.66.45.49.49.48 = Gauge32: 105
# find real que comece por 10.111.111.160 com a porta 143
snmpwalk -v 1 -c public 10.111.2.10 .1.3.6.1.4.1.9.9.161.1.3.1.1.5 | grep 10.111.111.160 | grep "143 = G"
SNMPv2-SMI::enterprises.9.9.161.1.3.1.1.5.3.12.80.84.65.83.80.67.65.83.45.49.52.51.10.111.111.160.143 = Gauge32: 14
80.84.65.83.80.67.65.83 | grep 49.52.51
# find vserver:
snmpwalk -v 1 -c public 10.111.2.10 1.3.6.1.4.1.9.9.161.1.4.1.1.17.3 | grep 80.84.65.83.80.67.65.83 | grep 49.52.51
result:
SNMPv2-SMI::enterprises.9.9.161.1.4.1.1.17.3.15.80.84.65.83.80.67.65.83.95.86.73.80.49.52.51 = Gauge32: 101
1.3.6.1.4.1.9.9.161.1.4.1.1.17.3.15.80.84.65.83.80.67.65.83.95.86.73.80.49.52.51 -> MIB VSERVER
No comments:
Post a Comment