1753511 Members
5100 Online
108795 Solutions
New Discussion юеВ

Re: Backup issue

 
Sunny123_1
Esteemed Contributor

Backup issue

Hi

I want to automated backup thrugh SAM with cron.Follwoing are the contents

00 00 * * 0,2-6 /usr/sam/lbin/br_backup DAT FULL Y /dev/rmt/0mn /etc/sam/br/graphFDAa18538 rprawdzi Y 1 N > /var/sam/SAM_br_msgs 2>&1 #sambackup


All is OK but SAM is showing CORRUPT AUTOMATED BACKUP

When I changed ulimit to unlimited then that error was gone but there is new error

Error output (stderr) from command "/usr/sam/lbin/br_get_cron
awk: Input line BRACKET, MTG-S4A/S4V cannot be longer than 3,000bytes
The input line number is 1.
The source line number is 44.

Please suggest on this

Regards
Sunny
16 REPLIES 16
Steven E. Protter
Exalted Contributor

Re: Backup issue

Shalom Sunny,

I would suggest a sam patch.

http://itrc.hp.com
patch database
search for sam.

A sam script is issuing an illegal awk command. That is a software fault and I'd be surprised there would not be a fix for it.

Unless you want to debug the awk command. That would be fin.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi SEP

I have running old OS i.e 11.0 is there available any SAM patch you are saying about?

Also i have tried latest awk patch but no luck.

Regards
Sunny
Hakki Aydin Ucar
Honored Contributor

Re: Backup issue

OldSchool
Honored Contributor

Re: Backup issue

I've also seen similar error when the gnu versions of grep and awk were installed on an 11.0 box, and they were in the PATH prior to the ones in std HPUX
TwoProc
Honored Contributor

Re: Backup issue

for a quick workaround...

put
usr/sam/lbin/br_backup DAT FULL Y /dev/rmt/0mn /etc/sam/br/graphFDAa18538 rprawdzi Y 1 N > /var/sam/SAM_br_msgs 2>&1 #sambackup

in a file somewhere and make it executable...

then in cron...

0 00 * * 0,2-6 /mypath/mycommand >/dev/null 2>&1

It's how I would recommend doing all your cronjobs anyways... makes it easier to keep all of your error logs from cron jobs whereever you'd like, and not necessarily in root's mail box.



We are the people our parents warned us about --Jimmy Buffett
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi SEP

I have installed latest patch but same error is coming

oldschool

What you have taken action on this error??

I have also done backup manually but no luck.
It is completed but same error on SAM is coming

I have installed following patches

PHCO_27521 -- AWK
PHCO_31879 -- SAM
PHCO_29380 -- SAM(dependent Patch)

Regards
Sunny
Dennis Handly
Acclaimed Contributor

Re: Backup issue

>I have installed latest patch but same error is coming

You may want to add "set -x" to a copy of /usr/sam/lbin/br_backup so you can trace what's happening and find which awk script.
Dennis Handly
Acclaimed Contributor

Re: Backup issue

Oops also meant to say this:

>awk: Input line BRACKET, MTG-S4A/S4V cannot be longer than 3,000bytes

Does this data mean anything to you?

>SEP: A sam script is issuing an illegal awk command.

It looks more like sam is using awk on the wrong file, one with lines more than 3000 bytes.
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi Dennis

I am trying to take backup throgh SAM as i said earlier.This is some one of the file system backup. We are using SAT tape.


Regards
Sunny