Operating System - HP-UX
1745804 Members
3601 Online
108722 Solutions
New Discussion юеВ

script to monitor and trigger SAP archive backup

 
maxpayne
Occasional Contributor

script to monitor and trigger SAP archive backup

Hi All,

I have 2 HPUX servers.
server1 is running as Data Protector Cell manager (4.1).
server2 is a production server with SAP application.

I need a script on the server1 that can monitor the SAP archive on server2. If SAP archive reached 80%, it will triggered the SAP Archive Backup.

from server1 cmd line I can triggered the backup. $/etc/opt/omni/barlist/sap/omnib -sap_list AGA_SAP_ARCHIVE
2 REPLIES 2
rariasn
Honored Contributor

Re: script to monitor and trigger SAP archive backup

Hi,

In server1,

POR=80
DF=$(ssh server2 df -k /var|grep -i %|awk '{print $1}')
if [ "$DF" -ge "$POR" ]
then
$/etc/opt/omni/barlist/sap/omnib -sap_list AGA_SAP_ARCHIVE
fi

Note: If do you not have ssh use remsh.

rgs,

ran
maxpayne
Occasional Contributor

Re: script to monitor and trigger SAP archive backup

Hi Ran,

I got this error.

$/etc/opt/omni/barlist/sap/omnib: not found --> this command need to be run at server1.