Veritas-bu

[Veritas-bu] Command to interrogate UP/DOWN status of robot?

2004-01-13 11:48:27
Subject: [Veritas-bu] Command to interrogate UP/DOWN status of robot?
From: M.W.Ellwood AT rl.ac DOT uk (Ellwood, MW (Mike) )
Date: Tue, 13 Jan 2004 16:48:27 -0000
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3D9F5.110E5916
Content-Type: text/plain;
        charset="utf-8"

Thank you David. tpconfig gives some information about the robot, but not
whether it is UP|DOWN.
(It does give that information about the drives through).
 
tldtest looks interesting though. While looking for a description of this, I
also came across "robtest",
which seems to be an interactive front-end to tldtest. Using this gave me
the right pathname to feed
to tldtest. (which is also looks to be somewhat interactive).
 
For a fairly elementary health-check that I could call from a cron script,
looks like I can pipe what appears to be a fairly harmless sub-command like
"mode" to tldtest, and test the exit code, e.g.:
 
# echo "mode\nquit"| /usr/openv/volmgr/bin/tldtest -r /dev/sg/c1t0l0
Opening /dev/sg/c1t0l0
Enter tld commands (? returns help information)
First transport addr = 0, Number transport elements = 1
First storage addr = 31, Number storage elements = 20
First mailslot addr = 20, Number mailslot elements = 0
First drive addr = 1, Number drive elements = 2
MODE_SENSE complete
# echo $?
0
#
 
(Assuming it would give a non-zero exit code if it was in trouble).
 
Mike
 

-----Original Message-----
From: David Chapa [mailto:david.chapa AT adic DOT com]
Sent: 13 January 2004 15:07
To: Ellwood, MW (Mike) ; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Command to interrogate UP/DOWN status of robot?


Not that I'm aware of with vmoprcmd.  what I have done in the past is use
tldtest -r <robotic path>, if it returns a mode sense to standard out, I
know (almost for certain) I can't communicate with robotic control.
 
I'm not online right now, but you may want to try 
 
tpconfig -data
 
I'm not sure if it lists whether or not the robot is "UP" or not there.
 
HTH
David

-----Original Message----- 
From: Ellwood, MW (Mike) [mailto:M.W.Ellwood AT rl.ac DOT uk] 
Sent: Tue 1/13/2004 5:22 AM 
To: veritas-bu AT mailman.eng.auburn DOT edu 
Cc: 
Subject: [Veritas-bu] Command to interrogate UP/DOWN status of robot?



We are running with a Sun Storedge L20 robot with HP Ultrium1 LTO drives. 

Occasionally we will have a problem with the robotics requiring manual 
intervention, 
typically requiring us to run an online test ("calibrate library") which 
usually sorts things 
out. 

I can see from /var/adm/messages that the robot has gone into a DOWN state, 
and 
then when the test has run, it goes back into the UP state. 

However, the log is only providing history, and I'd like to be able to 
interrogate its status 
(from a script) in real time. 

I was wondering if there was a command around, similar to vmoprcmd (which 
reports 
on the drive status), which might tell me? 

With thanks, 

Mike Ellwood 

_______________________________________________ 
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu>  


------_=_NextPart_001_01C3D9F5.110E5916
Content-Type: text/html;
        charset="utf-8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<TITLE>[Veritas-bu] Command to interrogate UP/DOWN status of robot?</TITLE>

<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY dir=ltr>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=705013616-13012004>Thank 
you David. tpconfig gives some information about the robot, but not whether it 
is UP|DOWN.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=705013616-13012004>(It 
does give that information about the drives through).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004>tldtest looks interesting though. While looking for a 
description of this, I also came across "robtest",</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=705013616-13012004>which 
seems to be an interactive front-end to tldtest. Using this gave me the right 
pathname to feed</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=705013616-13012004>to 
tldtest. (which is also looks to be somewhat interactive).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=705013616-13012004>For a 
fairly elementary health-check that I could call from a cron 
script,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=705013616-13012004>looks 
like I can pipe what appears to be a fairly harmless sub-command like "mode" to 
tldtest, and test the exit code, e.g.:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=705013616-13012004># 
echo 
"mode\nquit"| /usr/openv/volmgr/bin/tldtest -r /dev/sg/c1t0l0<BR>Opening 
/dev/sg/c1t0l0<BR>Enter tld commands (? returns help information)<BR>First 
transport addr = 0, Number transport elements = 1<BR>First storage addr = 31, 
Number storage elements = 20<BR>First mailslot addr = 20, Number mailslot 
elements = 0<BR>First drive addr = 1, Number drive elements = 2<BR>MODE_SENSE 
complete<BR># echo $?<BR>0<BR>#</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004>(Assuming it would give a non-zero exit code if it was 
in trouble).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004>Mike</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=705013616-13012004></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; 
MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> David Chapa 
  [mailto:david.chapa AT adic DOT com]<BR><B>Sent:</B> 13 January 2004 
  15:07<BR><B>To:</B> Ellwood, MW (Mike) ; 
  veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE: [Veritas-bu] 
Command 
  to interrogate UP/DOWN status of robot?<BR><BR></FONT></DIV>
  <DIV>Not that I'm aware of with vmoprcmd.&nbsp; what I have done in the past 
  is use tldtest -r &lt;robotic path&gt;, if it returns a mode sense to 
standard 
  out, I know (almost for certain) I can't communicate with robotic 
  control.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I'm not online right now, but you may want to try </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>tpconfig -data</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I'm not sure if it lists whether or not the robot is "UP" or not 
  there.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>HTH</DIV>
  <DIV>David</DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Ellwood, MW 
    (Mike) [mailto:M.W.Ellwood AT rl.ac DOT uk] <BR><B>Sent:</B> Tue 1/13/2004 
5:22 AM 
    <BR><B>To:</B> veritas-bu AT mailman.eng.auburn DOT edu <BR><B>Cc:</B> 
    <BR><B>Subject:</B> [Veritas-bu] Command to interrogate UP/DOWN status of 
    robot?<BR><BR></FONT></DIV>
    <P><FONT size=2>We are running with a Sun Storedge L20 robot with HP 
    Ultrium1 LTO drives.</FONT> </P>
    <P><FONT size=2>Occasionally we will have a problem with the robotics 
    requiring manual</FONT> <BR><FONT size=2>intervention,</FONT> <BR><FONT 
    size=2>typically requiring us to run an online test ("calibrate library") 
    which</FONT> <BR><FONT size=2>usually sorts things</FONT> <BR><FONT 
    size=2>out.</FONT> </P>
    <P><FONT size=2>I can see from /var/adm/messages that the robot has gone 
    into a DOWN state,</FONT> <BR><FONT size=2>and</FONT> <BR><FONT size=2>then 
    when the test has run, it goes back into the UP state.</FONT> </P>
    <P><FONT size=2>However, the log is only providing history, and I'd like to 
    be able to</FONT> <BR><FONT size=2>interrogate its status</FONT> <BR><FONT 
    size=2>(from a script) in real time.</FONT> </P>
    <P><FONT size=2>I was wondering if there was a command around, similar to 
    vmoprcmd (which</FONT> <BR><FONT size=2>reports</FONT> <BR><FONT size=2>on 
    the drive status), which might tell me?</FONT> </P>
    <P><FONT size=2>With thanks,</FONT> </P>
    <P><FONT size=2>Mike Ellwood</FONT> </P>
    <P><FONT size=2>_______________________________________________</FONT> 
    <BR><FONT size=2>Veritas-bu maillist&nbsp; -&nbsp; 
    Veritas-bu AT mailman.eng.auburn DOT edu</FONT> <BR><FONT size=2><A 
    
href="http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu";>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</A></FONT>
 
    </P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C3D9F5.110E5916--

<Prev in Thread] Current Thread [Next in Thread>