telnet via ssh to an APC UPS


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers telnet via ssh to an APC UPS
# 1  
Old 01-12-2011
telnet via ssh to an APC UPS

Hello! First post, please be gentle!

I have some APC UPS devices that I'm trying to log in to. They are currently configured to use telnet -- as a safety precaution, they can only be accessed from our 'bounce' machine. Because I want to do this from a script on my local machine, I'm doing it like this

ssh korlaplankton@bouncemachine telnet stupidAPCdevice

This works fine on all the other devices I'm trying this on (Cisco gear, mostly) but the stupidAPCdevice won't take any input. I get the login prompt and when I type in my username, ssh echoes it but the APC doesn't appear to ever receive it. It just hangs there at the username prompt.

I've tried various options to massage telnet including
Code:
mode character

(and all the other modes) and
Code:
toggle crlf

but no joy. I'm wondering if there's something I need to do to ssh?

If I SSH in to the bounce machine and then telnet in two distinct steps it works fine but that won't do for this situation.

Finally, telnet says "Operating in obsolete linemode" which sounds like it might have something to do with something. Or something.

My local machine is linux running OpenSSH 5.5.

The bounce machine is FreeBSD 8.1

The device is an APC Smart-UPS RT 8000 RM XL running AOS 5.1.1

Thank you for any insight!
# 2  
Old 01-12-2011
try using ssh -t
This User Gave Thanks to frank_rizzo For This Post:
# 3  
Old 01-13-2011
You are the MAN! Thanks, that did the trick!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

silent telnet and ssh using perl

Hi Experts, I use perl telnet and ssh for normal tasks and health checks. everything works fine but i would like to run scripts silently and print only data as i wish to. by silent i mean.no banners /no prompts/ nothing. I will format data before i print it on screen. just formatted... (3 Replies)
Discussion started by: mtomar
3 Replies

2. Shell Programming and Scripting

Need 'expect' help, ssh/telnet and trapping

So here is what I am trying to do. I have a large # of switches and routers I am trying to log into. Unfortunately some have ssh only, some have telnet only. and some i have never logged into with ssh. I first want it to SSH, if i have never logged into the box it will ask for adding the ssh key. I... (0 Replies)
Discussion started by: ippy98
0 Replies

3. AIX

Problems with SSH / telnet

Hey, I have upgraded 3 servers from SSH Tectia 4.0.3 to SSH Tectia 6.0.2. 2 of them are working fine but one server suddenly began to have troubles after about 2 hours. Now it is impossible to login to this server using SSH and even telnet. When SSH is running on this particular server, the CPU... (20 Replies)
Discussion started by: Hille
20 Replies

4. Shell Programming and Scripting

TELNET to SSH

Hi All, I was implementing a change of TELNET to SSH connectivity, and finding it tough at a point where I was connecting to another unix server through TELNET. ( ps -ef |grep abcd) | TELNET x.xx.xxx.xx now I when I tried to replace TELNET with SSH, i am not able to connect. ( ps -ef... (1 Reply)
Discussion started by: pranavagarwal
1 Replies

5. UNIX for Dummies Questions & Answers

Telnet and ssh in a script

dear all, I know that this question has been asked before frequently, but I really don't get it. My question is composed of several ones. First:To telnet through a script, I was told to use the way described below, and it works for me, but i don't understand the syntax here.... (3 Replies)
Discussion started by: marwan
3 Replies

6. UNIX for Dummies Questions & Answers

like ssh telnet

I want to learn some commands like ssh, telnet and others where i can be tease. thanks for help... (2 Replies)
Discussion started by: Kostantinos
2 Replies

7. UNIX for Advanced & Expert Users

about ssh and telnet

I amn't advance but i want to learn some commands where here you can help me. i don't learn easy commands but i learn if its good experience and interesting. I want to learn about ssh, telnet and how i can be miff ( i don't speek good english but i hope to understant me) thanks for any help... (1 Reply)
Discussion started by: Kostantinos
1 Replies

8. UNIX for Dummies Questions & Answers

telnet ans ssh

Hi all, I need few information as follows: 1. I am acessing one the machine uismg putty at port no 12023 using telnet service. My question is i heard by defalult the port for telnet is 23. Why it is 12023 in my case. Also where can i change it. 2. i install new debian server. And then... (1 Reply)
Discussion started by: gauri
1 Replies

9. Solaris

APC PowerChute

hi, got a problem with my ups after replacing the batterie.. there is no connection to the ups. when i plug this ups into a windows - laptop i can speak to it, but in solaris not. there are no messages in powerchute.err and the deamon upsd is running. restarting the deamon doesn't change... (4 Replies)
Discussion started by: pressy
4 Replies

10. UNIX for Dummies Questions & Answers

Openserver 5.07 & APC UPS via USB

I have the latest version of SCO Openserver 5.0.7. I'm trying to install a APC Uninerrupted Power Supply 750EX using the USB port. During the installation it was asking for a port to connect the APC into. The only choices are either tty1a, tty2a, or other. I chose other but it start asking me to... (1 Reply)
Discussion started by: josramon
1 Replies
Login or Register to Ask a Question