User guide
$ grep "^registerSasLogToFile" ./data/responsexmls.csv | perl -e
’while (<>){m/<fullClassName >(.*)<\/fullClassName>/; print $1."\n"}’ |
sort | uniq ethernetoam.CfmLoopbackResult
ethernetoam.CfmTwoWayDelayTestResult
icmp.IcmpPingResult
mpls.LspPingResult
svt.TunnelPingResult
svt.VccvPingResult
$ grep "^registerSasLogToFile" ./data/responsexmls.csv | wc -l
222
# Unexpected logs of registerSasLogToFile - you must expect up to 6 lines,
which means 6 classes.You notice 222 lines that is not correct.
Note: You can view logs after you run the command as explained in Step 1.
5. Check the number of times SasLogToFile is unregistered and registered:
$ grep registerSasLog ./data/responsexmls.csv | cut -d, -f1
6. Check times when the SasLogToFile is unregistered and registered:
$ grep deregisterSasLogToFile ./data/responsexmls.csv | perl -e
’while (<>){m/responseTime>(.*)<\/responseTime>/; print $1."\n"}'
You can see the following output:
Feb 22, 2013 11:30:56 AM Feb 22, 2013 11:32:33 AM Feb 22, 2013 11:37:33 AM
Feb 22, 2013 11:42:33 AM Feb 22, 2013 11:47:33 AM Feb 22, 2013 11:52:33 AM
Feb 22, 2013 11:57:33 AM Feb 22, 2013 12:02:33 PM Feb 22, 2013 12:07:33 PM
Feb 22, 2013 12:12:33 PM Feb 22, 2013 12:17:33 PM Feb 22, 2013 12:22:33 PM
Feb 22, 2013 12:27:33 PM Feb 22, 2013 12:32:33 PM Feb 22, 2013 12:37:33 PM
Feb 22, 2013 12:42:33 PM Feb 22, 2013 12:47:33 PM Feb 22, 2013 12:52:33 PM
Feb 22, 2013 12:57:33 PM Feb 22, 2013 1:02:33 PM Feb 22, 2013 1:07:33 PM
Feb 22, 2013 1:12:33 PM Feb 22, 2013 1:17:33 PM Feb 22, 2013 1:22:33 PM
Feb 22, 2013 1:27:33 PM Feb 22, 2013 1:32:33 PM Feb 22, 2013 1:37:33 PM
Feb 22, 2013 1:42:33 PM Feb 22, 2013 1:47:33 PM Feb 22, 2013 1:52:33 PM
Feb 22, 2013 1:57:33 PM Feb 22, 2013 2:02:33 PM Feb 22, 2013 2:07:33 PM
Note: The register cycle happens every 5 minutes, which is same as the
window period.
7. Verify whether the keepalive event is sent by SAM:
$ grep KeepAliveEvent ./logs/sam-jms-daemon.log | grep -v "Connected to JMS"
# no keepalive events. This indicates that SAM does not send the keepAlive
message but the Monitor stage, which expects keepalive message per period is
falsely indicated that the daemon is not functioning properly, and restarts the
daemon in cycle.
Resolving the problem
To turn off the keepAlive check, follow the steps in “How to turn off the keepAlive
message flag” on page 81
80 Alcatel-Lucent 5620 SAM LogToFile 2.3.0.0 Technology Pack Installation and User Guide