Amanda-Users

RE: "strange output"

2003-08-04 10:37:23
Subject: RE: "strange output"
From: donald.ritchey AT exeloncorp DOT com
To: jlm AT TataraSystems DOT com, amanda-users AT amanda DOT org
Date: Mon, 4 Aug 2003 09:34:03 -0500
I ran into this problem with Tru64 UNIX and the vdump command used by Amanda on that platform.  I added a line to the "re_table" structure in client-src/sendbackup-dump.c to match the output of that command that was not being matched by the existing entries.  I am not aware of any ability to add lines to the re_table structure other than by recompiling, so that may be your only hope. 
 
A line like:
 
AM_NORMAL_RE("^ *SUDO:"),
 
added to the file should do the trick.  Of course, this will permit any line containing SUDO to pass through as normal.
 
Don
 

Donald L. (Don) Ritchey
E-mail:  Donald.Ritchey AT exeloncorp DOT com

-----Original Message-----
From: Jeremy L. Mordkoff [mailto:jlm AT TataraSystems DOT com]
Sent: Monday, August 04, 2003 9:10 AM
To: amanda-users AT amanda DOT org
Subject: "strange output"

I have added a wrapper to /sbin/dump to lock and unlock my vobs. The output from my script (which I send to stderr) is flagged by Amanda as "strange output", for example...

 

FAILED AND STRANGE DUMP DETAILS:

 

/-- lux2       sda5 lev 1 STRANGE

sendbackup: start [lux2:sda5 level 1]

sendbackup: info BACKUP=/sbin/dump

sendbackup: info RECOVER_CMD=/bin/gzip -dc |/sbin/restore -f... -

sendbackup: info COMPRESS_SUFFIX=.gz

sendbackup: info end

? SUDO: /vobs/admin

? SUDO: Locked versioned object base "/vobs/admin".

? SUDO: /vobs/client

? SUDO: Locked versioned object base "/vobs/client"

 

Is there a way to tell Amanda that these lines are expected? Even better would be to tell her that they are required, but I know that's a bit much to ask, as it would have to be on a per filesystem basis.

 

I plan to update my script to look like this in an attempt to fool Amanda into thinking its legit output:

 

sudo -u ccadmin ~ccadmin/lockvobs 2>&1 | perl -n -e 'print "DUMP: $_";' >&2

 

so that every line will start with "DUMP: "

 

but this feels like a hack.

 

Any comments?

 

JLM

 

P.S. The worst thing about viruses is the amount of time and bandwidth people spend complaining about them. - JLM

 

 

 

 

Jeremy Mordkoff

Tatara Systems

978-206-0808 (direct)

978-206-0888 (fax)

 

injustice anywhere threatens justice everywhere -- Dr. Martin Luther King

 



************************************************************************
This e-mail and any of its attachments may contain Exelon Corporation
proprietary information, which is privileged, confidential, or subject
to copyright belonging to the Exelon Corporation family of Companies.
This e-mail is intended solely for the use of the individual or entity
to which it is addressed. If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution,
copying, or action taken in relation to the contents of and attachments
to this e-mail is strictly prohibited and may be unlawful. If you have
received this e-mail in error, please notify the sender immediately and
permanently delete the original and any copy of this e-mail and any
printout. Thank You.
************************************************************************
<Prev in Thread] Current Thread [Next in Thread>
  • "strange output", Jeremy L. Mordkoff
    • RE: "strange output", donald . ritchey <=