Index: /branches/rel_avx_2_7_4/avx_cli.spec
===================================================================
--- /branches/rel_avx_2_7_4/avx_cli.spec	(revision 9002)
+++ /branches/rel_avx_2_7_4/avx_cli.spec	(working copy)
@@ -99,6 +99,7 @@
 install -dDm 0755 %{buildroot}/ca/share/CNN55XX-SDK/bin/
 install -dDm 0755 %{buildroot}/ca/share/CNN55XX-SDK/microcode/
 install -dDm 0755 %{buildroot}/ca/conf/
+install -dDm 0755 %{buildroot}/ca/conf/cron.d/
 install -dDm 0755 %{buildroot}/ca/conf/template/
 install -dDm 0755 %{buildroot}/ca/conf/system/
 install -dDm 0755 %{buildroot}/ca/conf/ha/
@@ -121,9 +122,13 @@
 install -dDm 0755 %{buildroot}/etc/ld.so.conf.d/
 install -dDm 0755 %{buildroot}/ca/conf/users/
 install -dDm 0755 %{buildroot}/ca/conf/users/twofactor/
+install -dDm 0755 %{buildroot}/var/log/sa/
+install -dDm 0755 %{buildroot}/var/log/network/
 
-install -Dm 0644 conf/avxd-check %{buildroot}/etc/cron.d/
+install -Dm 0644 conf/cron.d/avxd-check %{buildroot}/etc/cron.d/
+install -Dm 0644 conf/cron.d/pingGateway %{buildroot}/etc/cron.d/
 install -Dm 0755 scripts/check_avxd.sh %{buildroot}/ca/bin/
+install -Dm 0755 scripts/ping_gw.sh %{buildroot}/ca/bin/
 install -Dm 0755 src/backend/backend %{buildroot}/ca/bin/
 install -Dm 0644 src/library/version/other_root_version %{buildroot}/ca/conf/version
 install -Dm 0755 src/backend/res_budget %{buildroot}/ca/bin/
@@ -232,6 +237,8 @@
 install -Dm 0644 conf/bonding/ifcfg-bond16 %{buildroot}/etc/sysconfig/network-scripts/ifcfg-bond16
 install -Dm 0600 conf/system/securetty %{buildroot}/ca/conf/system/securetty
 install -Dm 0644 conf/system/login %{buildroot}/ca/conf/system/login
+install -Dm 0644 conf/system/kdump.conf %{buildroot}/ca/conf/system/kdump.conf
+install -Dm 0644 conf/cron.d/sysstat %{buildroot}/ca/conf/cron.d/sysstat
 install -Dm 0644 conf/bonding/ifcfg-template %{buildroot}/ca/conf/bonding/ifcfg-template
 install -Dm 0644 conf/bonding/avxbond.info %{buildroot}/ca/conf/bonding/avxbond.info
 install -Dm 0644 conf/bonding/avxbond.info %{buildroot}/ca/conf/bonding/avxbond.info.sample
@@ -331,7 +338,9 @@
 %files
 %defattr(-,root,root,-)
 %attr (644,root,root)/etc/cron.d/avxd-check
+%attr (644,root,root)/etc/cron.d/pingGateway
 %attr (755,root,root)/ca/bin/check_avxd.sh
+%attr (755,root,root)/ca/bin/ping_gw.sh
 %attr (755,root,root)/ca/bin/avxupdate
 %attr (755,root,root)/ca/bin/backend
 %attr (755,root,root)/ca/bin/res_budget
@@ -412,6 +421,7 @@
 %attr (644,root,root)/ca/conf/avx_rpt.config.7601
 %attr (644,root,root)/ca/conf/avx_rpt.config.2800
 %attr (644,root,root)/ca/conf/avx_rpt.config.9650D
+%attr (644,root,root)/ca/conf/system/kdump.conf
 %attr (644,root,root)/ca/conf/system/rc.local
 %attr (644,root,root)/ca/conf/system/libvirtd.conf
 %attr (644,root,root)/ca/conf/system/passwd
@@ -429,6 +439,7 @@
 %attr (644,root,root)/ca/conf/system/avxdpdk.info.5900
 %attr (644,root,root)/ca/conf/system/avxdpdk.info.7900
 %attr (644,root,root)/ca/conf/system/avxdpdk.info.9900
+%attr (644,root,root)/ca/conf/cron.d/sysstat
 %attr (755,root,root)/ca/bin/arrayNetworks.so
 %attr (644,root,root)%{_unitdir}/backend.service
 %attr (644,root,root)%{_unitdir}/avxd.service
Index: /branches/rel_avx_2_7_4/conf/cron.d/avxd-check
===================================================================
--- /branches/rel_avx_2_7_4/conf/cron.d/avxd-check	(revision 0)
+++ /branches/rel_avx_2_7_4/conf/cron.d/avxd-check	(working copy)
@@ -0,0 +1 @@
+*/5 * * * * root  /ca/bin/check_avxd.sh
Index: /branches/rel_avx_2_7_4/conf/cron.d/pingGateway
===================================================================
--- /branches/rel_avx_2_7_4/conf/cron.d/pingGateway	(revision 0)
+++ /branches/rel_avx_2_7_4/conf/cron.d/pingGateway	(working copy)
@@ -0,0 +1,3 @@
+# Run network ping test every 30s
+* * * * * root /ca/bin/ping_gw.sh
+* * * * * root /bin/bash -c "sleep 30; /ca/bin/ping_gw.sh"
\ No newline at end of file
Index: /branches/rel_avx_2_7_4/conf/cron.d/sysstat
===================================================================
--- /branches/rel_avx_2_7_4/conf/cron.d/sysstat	(revision 0)
+++ /branches/rel_avx_2_7_4/conf/cron.d/sysstat	(working copy)
@@ -0,0 +1,4 @@
+# Run system activity accounting tool every 1 minutes
+* * * * * root /usr/lib64/sa/sa1 60 1
+# Generate a daily summary of process accounting at 23:53
+53 23 * * * root /usr/lib64/sa/sa2 -A
\ No newline at end of file
Index: /branches/rel_avx_2_7_4/conf/system/kdump.conf
===================================================================
--- /branches/rel_avx_2_7_4/conf/system/kdump.conf	(revision 0)
+++ /branches/rel_avx_2_7_4/conf/system/kdump.conf	(working copy)
@@ -0,0 +1,14 @@
+# -l: Enables lazy dump mode, which skips unused pages to make the dump faster and smaller.
+# --message-level: Sets the verbosity level of messages printed during the dump process. The value 7 indicates a high level of detail.
+# -d: Specifies a bitmask of memory page types to exclude. The value 17 is a bitmask that excludes zero and free pages.
+# Option	Description
+# 1	        Zero pages
+# 2	        Cache pages
+# 4	        Cache private
+# 8	        User pages
+# 16	    Free pages
+core_collector makedumpfile -l --message-level 7 -d 17
+path /var/crash
+default 1
+# num_dumps: maximum number of dumps to keep
+num_dumps 3
\ No newline at end of file
Index: /branches/rel_avx_2_7_4/scripts/avxapps_upgrade.sh
===================================================================
--- /branches/rel_avx_2_7_4/scripts/avxapps_upgrade.sh	(revision 9002)
+++ /branches/rel_avx_2_7_4/scripts/avxapps_upgrade.sh	(working copy)
@@ -40,6 +40,11 @@
     install -m 0644 /caupgrade/ca/conf/system/login /caupgrade/etc/pam.d/login
     install -m 0644 /caupgrade/ca/conf/system/grubenv $GRUBENV_PATH 
 
+    # we need to install the kdump.conf file and sysstat file here because we can't do it directly in avx_cli.spec.
+    # That will cause avx_cli.rpm confliect with kdump.rpm and systat.rpm
+    install -m 0644 /caupgrade/ca/conf/system/kdump.conf /caupgrade/etc/kdump.conf
+    install -m 0644 /caupgrade/ca/conf/cron.d/sysstat /caupgrade/etc/cron.d/sysstat
+
     install /caupgrade/etc/shadow /caupgrade/etc/shadow.upgrade
     cp /caupgrade/ca/conf/shadow /caupgrade/etc/shadow
 
Index: /branches/rel_avx_2_7_4/scripts/ping_gw.sh
===================================================================
--- /branches/rel_avx_2_7_4/scripts/ping_gw.sh	(revision 0)
+++ /branches/rel_avx_2_7_4/scripts/ping_gw.sh	(working copy)
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+# Directory to store logs
+LOG_DIR="/var/log/network"
+mkdir -p "$LOG_DIR"
+
+# Today's date formatted for log filename (e.g., ping_gateway_Apr_15.log)
+TODAY=$(date +"%b_%d")   # Apr_15, May_01, etc.
+LOG_FILE="$LOG_DIR/ping_gateway_${TODAY}.log"
+
+# Timestamp for log entries
+TIMESTAMP=$(date "+%F %T")
+
+# Get the default gateway IP
+GATEWAY=$(ip route | awk '/default/ {print $3}')
+
+# Check if gateway exists
+if [[ -z "$GATEWAY" ]]; then
+    echo "[$TIMESTAMP] skip due to gateway not setup" >> "$LOG_FILE"
+else
+    # Ping the gateway with 1 packet and capture output
+    PING_OUTPUT=$(ping -c 1 -W 1 "$GATEWAY" 2>/dev/null)
+
+    if [[ $? -eq 0 ]]; then
+        # Extract latency (time=0.5 ms)
+        LATENCY=$(echo "$PING_OUTPUT" | awk -F'time=' '/time=/{print $2}' | awk '{print $1}')
+        echo "[$TIMESTAMP] ping to $GATEWAY succeeded, latency=${LATENCY} ms" >> "$LOG_FILE"
+    else
+        echo "[$TIMESTAMP] ping to $GATEWAY failed" >> "$LOG_FILE"
+    fi
+fi
+
+# Delete logs older than 30 days
+find "$LOG_DIR" -type f -name "ping_gateway_*.log" -mtime +30 -exec rm -f {} \;

Property changes on: scripts/ping_gw.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
