Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rlogin / SSH / Unix with Procomm Plus 3

Status
Not open for further replies.

gl1176

Technical User
Apr 21, 2006
12
US
I needed a way to login to a nortel pbx over the network, and rlogin is the only way to do it. I'm used to doing scripting with procomm/aspect, and I'm so into procomm, because it supports so many legacy terminal emulations. I searched far and wide, and finally summed up the solution for this. I found by installing the open source program UWIN(Unix for Windows), you can open up procomm, telnet to your 127.0.0.1 loopback, and uwin will respond with a login to your current machine. Once you login, you can then issue any unix command UWIN supports. To log into a nortel pbx system, it looks like this:

$ rlogin 137.135.128.251 -l CPSID

UWIN runs the telnet server daemon by default, so as long as you have a firewall up on your Windows(NT/2000/XP) machine, your telnet port remains closed to your network connection. I did try qite a few other terminal programs (putty,SecureCRT,...), but none of them could properly supply the username with rlogin that the pbx was looking for. UWIN works like a charm. You could also put UWIN on a machine inside your network, ssh to it from the outside, and then rlogin from there for a more secure connection to your pbx. Here is the link to the UWIN downloads

 
Also try to do it from long time without success.
I now use a script that launch a rlogin.exe session with additionnal commands. But it opens a DOS windows to run it and there is no possibiity to pass scripts in this window.
 
No, this does work from Procomm, within Procomm, so you can run scripts from within Procomm. After you install UWIN, just telnet from Procomm to your 127.0.0.1 loopback. You can then login to your local machine under UWIN(UNIX) shell, and issue the rlogin, ssh, or any supported commands directly from Procomm. Basically ur using UWIN as a tunnel from Procomm.
 
I moved from Procomm about two years for the Meridian. I am using a product called ZOC that does scripting and uses Rlogin. I still use my Procomm too, just because I can make dialog boxes and such for a few scripts I use.

I wish Symantec would have incorporated Rlogin into Procomm before stopping manuf.
 
Hi gl1176

I tried to install UWIN on my PC running Win XP. I pick up UWIN-base software from the site you gave.
Installation was successefull. I changed the default directory only. In a DOS window i can ping 127.0.0.1. For within Procomm i'm not able to telnet 127.0.0.1. I get a Telnet Winsock error.

Opening ksh, i can rlogin manually.

What did i missed to be able to do it from Procomm?
 
I restart my PC and now i have a login invite within Procomm when telneting 127.0.0.1

Which login and password do i have to enter?
My Windows login doesn't work...
 
I believe that UWIN just recreates all the local accounts on the pc its installed on. I have both a user account, and an administrator account that I can login in with. If you create any new local accounts, or change any major windows network settings, just reinstall UWIN on top of its current directories, and it should fix any UWIN problems. I'm not an expert it UWIN, but if your more familiar with Cygwin, I'm sure it works with Windows the same way.
 
Oh, and yes, you can rlogin directly from the ksh. Using ksh without procomm, i dont think you can do any scripting.
 
One last thing, you need to use ~. to exit the rlogin session. If you just close the program you are using without doing so, you will orphan the ksh and rlogin in the background. Just use the task manager to find the ksh.exe, and rlogin.exe and right click to end process tree. You can also just reboot the machine. Also make as many PTY you need to have concurrent sessions. On 25.40B you can only have 4 PTYs, 4 simual rlogin sessions. I think on succession you can have 16.
 
I checked my accounts. The one i was trying to use wasn't in the PC name Domain. I change to another one and get success.

I knew about ~.

Thanx again
I will try later to script with it and gives you feedback
 
Scripting works greatly...!!!

Thanks again for that great thread !
 
Hello gl1176. This is a excellent thread. I've just done a complete guide of setting up procomm plus to work with UNWIN. I do have a couple of questions for you, if you don't mind please?.

1) Have you been able to use the "XVR" or "XRT" commands in LD 143 on a 11c system?. I've been OK in using the "XBK" via the "X Modem" protocol, but I'm unable to use UNWIN to send a file?.

2) What would you recommend to be the best way to exit the switch & the UNWIN program without causing any lockup's?.
I've been going into "pdt" & then using "exit". Is this OK?.

Please contact me if you would like to see what I've put in my guide.

All the best

Firebird Scrambler
Meridian Programmer in the UK

Useful Nortel forum at
If it's working, then leave it alone!.
 
firebirdscrambler

I have the same problem with x modem. Transfer starts and stops after a small while
The problem with exit command is that it close pdt but also the UWIN session

These small problems are nothing compare to the advantage of scripting using rlogin... but solutions are welcome
 
What would you recommend is the best way to exit the site?. I've tried using the "1K-Xmodem-g" protocol to send a file, but it stops half way through the transmission on XVR. X-Modem was fine for receiving, using XBK.

All the best

Firebird Scrambler
Meridian Programmer in the UK

Useful Nortel forum at
If it's working, then leave it alone!.
 
firebirdscrambler, the best answers to your question:

1) From procomm, you are using UWIN to rlogin to your pbx, so whatever commands rlogin supports, thats what you have to work with. That means whatever transfers you perform, are done within UWIN using rlogin. I'm new with rlogin, but I'm sure you can find plenty of documentation on it online.

2)The proper way to exit the pbx and the sessions are:
a)logo off the pbx first, if not the tty session will remain logged in
b)~. that will end the rlogin tty session on the pbx
c)exit that will end the telnet between UWIN and Procomm
 
Hello gl1176. I've just a complete guide on installing UNWIN & getting Procomm Pluse to work with it. I'd like to put it on the Meridian forum. Would you like to contact me to view my word doc copy & check it's ok please?. A few of my colleagues who have tried it, are very impressed.

All the best

Firebird Scrambler
Meridian Programmer in the UK

Useful Nortel forum at
If it's working, then leave it alone!.
 
Firebird... When will you be posting your document? I would be interested in looking at it. I have abandoned Procomm because of the lack of Rlogin, and switch to a program called ZOC because it does scripting too, but it doesn't have the capability for doing dialog boxes and such and I would like to use my old procomm scripts.
 
Jamie,
Just follow that thread from the beginning and you will be able to run procomm with rlogin.
Firebird will provide a fully detailled file soonly, i guess , that help all to install it propely
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top