As a quick workaround, you can try running multiple commands with one rsh. Separate the commands with ;
In a unix shell, you can do it like this.
rsh filer "version; uptime; df"
I don't know if ; is a special character that needs quoting in a DOS window. But if you can get rsh to pass all the commands including the ; separators then the filer will run them all.
This is a multi-part message in MIME format.
------=_NextPart_000_0025_01C0A7B5.FDF7F9A0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
Hi!
I have problems performing RSH from specific servers.=20
This is from NT 4.0 SP6. The first RSH goes OK, the second one hangs. = Every time! If a wait some time between RSH command it works OK. This is Exchange = server.=20 I tried it from five diferent servers and workstations and they all work = fine.=20
I'd like to run batch to delete old snapshot, rename and create new. It = always execute only first command and the others time out. Only on this = server?
Any ideas?
Thanks!
Microsoft(R) Windows NT(TM) (C) Copyright 1985-1996 Microsoft Corp.
C:>rsh ntnas1 df Filesystem kbytes used avail capacity Mounted = on /vol/vol0/ 101684188 3429404 98254784 3% = /vol/vol0/ /vol/vol0/.snapshot 25421044 390456 25030588 2% = /vol/vol0/.snapsh ot
C:>rsh ntnas1 version -> ntnas1:Connection timed out rsh: can't establish connection
Uros Lampret www.ourspace.si _____________________________
------=_NextPart_000_0025_01C0A7B5.FDF7F9A0 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-2"> <META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I have problems performing RSH from = specific=20 servers. </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>This is from NT 4.0 SP6. The first RSH = goes OK, the=20 second one hangs. Every time!</FONT></DIV> <DIV><FONT face=3DArial size=3D2>If a wait some time between RSH command = it works=20 OK. This is Exchange server. </FONT></DIV> <DIV><FONT face=3DArial size=3D2>I tried it from five diferent servers = and=20 workstations and they all work fine. </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I'd like to run batch to delete old = snapshot,=20 rename and create new. It always execute only first command and the = others time=20 out. Only on this server?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Any ideas?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks!</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Microsoft(R) Windows NT(TM)<BR>(C) = Copyright=20 1985-1996 Microsoft Corp.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>C:\>rsh ntnas1=20 df<BR>Filesystem &nb= sp; =20 kbytes = used =20 avail capacity Mounted=20 on<BR>/vol/vol0/ &nb= sp;=20 101684188 3429404 = 98254784 =20 3% /vol/vol0/<BR>/vol/vol0/.snapshot =20 25421044 390456 =20 25030588 2% =20 /vol/vol0/.snapsh<BR>ot</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>C:\>rsh ntnas1 version<BR>->=20 ntnas1:Connection timed out<BR>rsh: can't establish = connection</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><BR><FONT face=3DArial = size=3D2>_____________________________</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Uros Lampret<BR></FONT><A=20 href=3D"http://www.ourspace.si"><FONT face=3DArial=20 size=3D2>www.ourspace.si</FONT></A><BR><FONT face=3DArial=20 size=3D2>_____________________________</FONT></DIV></BODY></HTML>
------=_NextPart_000_0025_01C0A7B5.FDF7F9A0--
Steve Losen scl@virginia.edu phone: 804-924-0640
University of Virginia ITC Unix Support