RE: Onmonitor changes from the command line
Posted in 2005
--0-893879163-1107360691=:3126 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit You can use this : ed /informix/etc/onconfig.finfid <<EOF /^TAPEDEV .s/\\/backups2\\/fiducia\\/backup/\\/dev\\/null/g w q EOF "Sebastian, Norma J." <NormaJean.Sebastian@tellabs.com> wrote: Expect scripting might do it... Run onmonitor inside an expect script, Expect will expect/anticipate std-out output from onmonitor, and you can code expect to respond based on std-out from onmonitor...... We used to use expect at our hotsite... To continuously restore logical logs in an onarchive recovery mode.... NJ -----Original Message----- From: owner-informix-list@iiug.org [mailto:owner-informix-list@iiug.org] On Behalf Of Bill Dare Sent: Tuesday, February 01, 2005 12:02 PM To: owner-informix-list@iiug.org; Dirk Moolman; informix-list@iiug.org Subject: RE: Onmonitor changes from the command line > -----Original Message----- > From: owner-informix-list@iiug.org [SMTP:owner-informix-list@iiug.org] > On Behalf Of Dirk Moolman > Sent: Tuesday, February 01, 2005 3:31 AM > To: informix-list@iiug.org > Subject: Onmonitor changes from the command line > > Is it possible to script onmonitor changes from the command line, for > example to change the backup device using a script ? [Bill Dare] AFAIK you can't. You could always manipulate the onconfig file using sed or awk. sed 's/^TAPEDEV.*/TAPEDEV NEW_TAPEDEV # Tape device path/' etc/$ONCONFIG Bill > > > > Dirk Moolman > Database and Unix Administrator > MXGROUP > > > > "People demand freedom of speech as a compensation for the freedom of > thought which they seldom use." > > > sending to informix-list sending to informix-list ============================================================ The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any reproduction, dissemination or distribution of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Tellabs ============================================================ sending to informix-list --------------------------------- Do You Yahoo!? Yahoo! Net: La mejor conexi'n a internet y 25MB extra a tu correo por $100 al mes. --0-893879163-1107360691=:3126 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <DIV>You can use this :</DIV> <DIV> </DIV> <DIV>ed /informix/etc/onconfig.finfid <<EOF</DIV> <DIV>/^TAPEDEV<BR>.s/\\/backups2\\/fiducia\\/backup/\\/dev\\/null/g<BR>w<BR>q<BR>EOF<BR><BR><B><I>"Sebastian, Norma J." <NormaJean.Sebastian@tellabs.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Expect scripting might do it...<BR><BR>Run onmonitor inside an expect script,<BR>Expect will expect/anticipate std-out output from onmonitor, and you can<BR>code expect to respond based on std-out from onmonitor......<BR><BR>We used to use expect at our hotsite... To continuously restore logical<BR>logs in an onarchive recovery mode....<BR><BR>NJ<BR><BR><BR>-----Original Message-----<BR>From: owner-informix-list@iiug.org [mailto:owner-informix-list@iiug.org]<BR>On Behalf Of Bill Dare<BR>Sent: Tuesday, February 01, 2005 12:02 PM<BR>To: owner-informix-list@iiug.org; Dirk Moolman; informix-list@iiug.org<BR>Subject: RE: Onmonitor changes from the command line<BR><BR>> -----Original Message-----<BR>> From: owner-informix-list@iiug.org [SMTP:owner-informix-list@iiug.org]<BR>> On Behalf Of Dirk Moolman<BR>> Sent: Tuesday, February 01, 2005 3:31 AM<BR>> To: informix-list@iiug.org<BR>> Subject: Onmonitor changes from the command line<BR>> <BR>> Is it possible to script onmonitor changes from the command line, for <BR>> example to change the backup device using a script ?<BR>[Bill Dare] <BR>AFAIK you can't. You could always manipulate the onconfig file<BR>using sed or awk.<BR><BR>sed 's/^TAPEDEV.*/TAPEDEV NEW_TAPEDEV # Tape device<BR>path/' etc/$ONCONFIG <BR><BR><BR>Bill<BR><BR><BR><BR><BR>> <BR>> <BR>> <BR>> Dirk Moolman<BR>> Database and Unix Administrator<BR>> MXGROUP<BR>> <BR>> <BR>> <BR>> "People demand freedom of speech as a compensation for the freedom of <BR>> thought which they seldom use."<BR>> <BR>> <BR>> sending to informix-list<BR><BR>sending to informix-list<BR>============================================================<BR>The information contained in this message may be privileged<BR>and confidential and protected from disclosure. If the reader<BR>of this message is not the intended recipient, or an employee<BR>or agent responsible for delivering this message to the<BR>intended recipient, you are hereby notified that any reproduction,<BR>dissemination or distribution of this communication is strictly<BR>prohibited. If you have received this communication in error,<BR>please notify us immediately by replying to the message and<BR>deleting it from your computer. Thank you. Tellabs<BR>============================================================<BR><BR>sending to informix-list<BR></BLOCKQUOTE><p><br><hr size=1><b>Do You Yahoo!?</b><br> <a href="http://net.yahoo.com.mx"><b>Yahoo! Net</b></a>: La mejor conexi'n a internet y 25MB extra a tu correo por <a href="http://net.yahoo.com.mx/">$100 al mes</a>.<br> --0-893879163-1107360691=:3126-- sending to informix-list