Sponsored Content
Full Discussion: telnet via ssh to an APC UPS
Top Forums UNIX for Dummies Questions & Answers telnet via ssh to an APC UPS Post 302487520 by Korla Plankton on Wednesday 12th of January 2011 05:24:51 PM
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!
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
UPSDRVCTL(8)						      Network UPS Tools (NUT)						      UPSDRVCTL(8)

NAME
upsdrvctl - UPS driver controller SYNOPSIS
upsdrvctl -h upsdrvctl [-t] [-v] (start | stop | shutdown | status) [ups] DESCRIPTION
upsdrvctl provides a uniform interface for controlling your UPS drivers. You should use upsdrvctl instead of direct calls to the drivers whenever possible. When used properly, upsdrvctl lets you maintain identical startup scripts across multiple systems with different UPS configurations. OPTIONS
-h Display the help message. -t Enable testing mode. This also enables verbose mode. Testing mode makes upsdrvctl display the actions it would execute without actually doing them. Use this to test out your configuration without actually doing anything to your UPS drivers. This may be helpful when defining the 'sdorder' directive in your ups.conf(5). -v Enable verbose messages. COMMANDS
upsdrvctl supports four commands - start, stop, shutdown and status. They take an optional argument which is a UPS name from ups.conf(5). Without that argument, they operate on every UPS that is currently configured. start Start the UPS driver(s). stop Stop the UPS driver(s). shutdown Command the UPS driver(s) to run their shutdown sequence. Drivers are stopped according to their sdorder value - see ups.conf(5). WARNING: this will probably power off your computers, so don't play around with this option. Only use it when your systems are pre- pared to lose power. status Check the status of the UPS driver(s). If every UPS that has been checked is running, then the exitcode will be 0. If one seems to be missing, the exitcode will be 1. BUGS
The status checking is rudimentary, and really only looks for the presence of .pid files. If you really want to know if your UPS drivers are alive and well, upsmon(8)'s NOCOMM notifier does a fine job. SEE ALSO
nutupsdrv(8), upsd(8) ups.conf(5) Internet resources: The NUT (Network UPS Tools) home page: http://www.exploits.org/nut/ NUT mailing list archives and information: http://lists.exploits.org/ Wed Oct 16 2002 UPSDRVCTL(8)
All times are GMT -4. The time now is 04:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy