When you use SAM to setup a backup, it creates some files and set up a cronjob for you. Look in root's crontab to see if it got added. I just used SAM to setup a backup on HP-UX 11.0. The job is "/usr/sam/lbin/br_backup...." So was that job added to your root's crontab? Is cron running? My job says it will write logs to /var/sam/SAM_br_msgs so I would check that file. If the cronjob exists, it probably tried to run and wrote some error messages.
So the things to check are:
1) did SAM install a cron job?
2) does /var/adm/cron/log say if the job was attempted?
I believe that the path is /usr/lib/cron/log for the CRON execution log on HPUX 11.x.
I know it is a nit-picky item, but might save Prafulla some time.
Also, Prafulla, while in SAM I think you can view the SAM log after it executes your commands under OPTIONS --> VIEW SAM LOG. It has time parameters and other options you can set.
No, /var/adm/cron/log is the correct path. It moved starting with hp-ux 10.x. However /usr/lib/cron is a symlink to /var/adm/cron for people who are used to the old path. HP does want us to start using the real path since the symlink may disappear in the future.
30 23 * * 1,3,5 /usr/sam/lbin/br_backup DAT FULL Y /dev/rmt/0m /etc/sam/br/graph
XCAa02548 arbor1 Y 1 N > /var/sam/SAM_br_msgs 2>&1 #sambackup
30 23 * * 2,4 /usr/sam/lbin/br_backup DAT FULL Y /dev/rmt/0m /etc/sam/br/graphUF
Aa02548 arbor Y 1 N > /var/sam/SAM_br_msgs 2>&1 #sambackup
THIS IS /VAR/ADM/CRON/LOG
root 12102 c Tue Nov 20 23:30:00 IST 2001
root 12102 c Tue Nov 20 23:30:37 IST 2001 rc=4
AND IF U SEE THE BKPLOG IT IS ONLY SHOWING ONE LINE
2048 0/
when i am trying to see the listing frm tape....
frecover -f /dev/rmt/0m -I /tmp/bkplog
it is showing the same one line 2048 0/
IS THIS THE COMMAND TO SEE THE LISTING?
now if i don't want to make the backup by SAM tool wht i have to do make it run at a specified time?
i have to just edit crontab -e and put the timing in proper faomat....that's all...or i have to run any specific demon..
First, notice the "> /var/sam/SAM_br_msgs 2>&1 ". This tells you that the answer to why your script only ran for 37 seconds should be in /var/sam/SAM_br_msgs.
The frecover command that you used should show the index on the tape, but with a run of only 37 seconds, it's improbable that fbackup even attempted to write one.
Yes, I would just write a script that invokes fbackup. Once I had the script running manually, I would put it in crontab. fbackup does not rely on any daemons for local work. If you backup nfs files, then you will need nfs daemons.