AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080506175634.17f8a3fd@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<warren.gale@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E09CA5FCB@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Tue, 6 May 2008 17:56:47 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Warren Gale" <warren.gale@onstor.com>
Subject: Re: stdio redirection questions
Message-ID: <20080506175647.7b5dd0ef@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E09CA5FCB@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E09CA5F9C@onstor-exch02.onstor.net>
	<20080506165216.6c609327@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E09CA5FCB@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hmm, maybe grep around our code base and see if you can find any
similar code to what you want.  There's got to be some.  BTW, I'm not
sure that rcon can always be counted on.  Like, is it
active/up/configured on OPT builds?  The world wonders.


On Tue, 6 May 2008 17:38:16 -0700 "Warren Gale"
<warren.gale@onstor.com> wrote:

> Maybe a little more explanation is required?
> 
> I'm using the "do_system(" echo... > /dev/rcon[n]..)"  to communicate 
> with FP 0 and TXRX 0. during prom upgrade.
> The last suggestion I got was to kill all onstor processes
> ie "/etc/init.d/onstor stop"
>  Which kills all "normal" communications between processors.
> (RMC, sendAgileMsg, etc... but leaves rcons going)
> Then issue a command to FP 0 and TXRX 0 via rcon... 
> 
> So maybe I don't know how to call and issue commands to rcon?
> 
> So I guess I'm in left field :)
> 
> 
> 
> -----Original Message-----
> From: Andy Sharp 
> Sent: Tuesday, May 06, 2008 4:52 PM
> To: Warren Gale
> Subject: Re: stdio redirection questions
> 
> Why don't you just use the rcon command?  That's what it's for, AFAIK.
> 
> On Tue, 6 May 2008 16:42:14 -0700 "Warren Gale"
> <warren.gale@onstor.com> wrote:
> 
> > Andy,
> > 
> >   It's been a while but I'm still looking at how to get the output
> > from an rcon session 
> > on the current shell command.
> > 
> > Ok maybe I don't know how to explain it very well.
> > 
> >  
> > 
> > I've logged into my cougar.
> > 
> >   Root
> > 
> >   Password...  (Yea its back-door)
> > 
> > At the Linux prompt:
> > 
> >    I do the following
> >    "diag-cg-rack:~# echo "env set autolinkenable 5" > /dev/rcon7"
> > 
> >  
> > 
> > I can verify that this command worked by doing the "env view" in
> > another rcon session.
> > 
> > IE 
> > 
> >   I have a xterm that executes a telent to  <cougar IP> /dev/rcon6
> > 
> >                             <cougar IP> <port>  
> > 
> >            ie    telnet    10.1.1.109 61236
> > 
> >  
> > 
> > Here is the output:
> > 
> > FP2:3 > env view
> > 
> >  
> > 
> > Current Environment Settings:
> > 
> >         autoload         = on         ( off on )
> > 
> >         autoreboot       = off        ( off on )
> > 
> >         upgrade_prom     = yes        ( no yes )
> > 
> >         env_reset        = no         ( no yes )
> > 
> >         autolinkenable   = 5          (SP.0 enabled, SP.1 disabled,
> > SP.2 enabled, SP.3 disabled)
> > 
> >         hw_qt            = off        ( off on )
> > 
> >         hw_ft            = off        ( off on )
> > 
> >         hw_diag          = off        ( off on )
> > 
> >  
> > 
> > FP2:3 >
> > 
> >  
> > 
> > What I like to do is issue the command from Linux prompt,
> > 
> >   "diag-cg-rack:~# echo "env view" > /dev/rcon7"  
> > 
> >  And see the output above displayed here, before the next Linux
> > prompt.
> > 
> >  
> > 
> > Is this possible? Am I in left field?
> > 
> >  
> > 
> > Thanks,
> > 
> > Warren
> > 
