remote monitoring of device by telnet


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting remote monitoring of device by telnet
# 1  
Old 12-31-2004
Question remote monitoring of device by telnet

There is programm of monitoring by telnet.
The main body of script is

mkfifo pipe0
telnet $host $port < pipe0 > file0 &

then after analizing of file0

printf "commands\r" > pipe0

This programm worked till then I kill pipe0 during working of programm. Now this script dont work.
After command "telnet" results

Trying IP...
Connected to host
Escape character is '^]'.
Connection closed by foreign host.

How me reconstruction this script? How repair pipe0?
# 2  
Old 12-31-2004
The problem is not pipe0. You screwed up the telnet server in the remote device. Somehow you need to reset this. If nothing else, you may need to cycle power on the remote device.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Pexpect telnet into one device and then from there to another

I am trying to use pexpect to telnet to a device and then subsequently telnet from that device to another device but i am unable to. Here is the script i wrote and the error i am getting I will appreciate help very much. Thanks import pexpect child = pexpect.spawn('telnet... (0 Replies)
Discussion started by: kaf3773
0 Replies

2. AIX

Backup to a remote tape device. Is it possible?

Hi all The situation is as follows: We need to take an mksysb image from an AIX 6.1 server. From some reason (irrelevant to this discussion) this server does not have access to a local CD-ROM or a tape drive. We do have another server with AIX 6.1 (but different technology level) which got access... (1 Reply)
Discussion started by: abohmeed
1 Replies

3. Solaris

Ping trace telnet monitoring script

Hello, it is my first post :) I need to implement some monitoring tools in a script, ping telnet traceroute I found this one to ping, it works, #!/bin/sh for i in `cat /tmp/PingStatus.txt` do ping -c 5 -w 5 -n $i | grep -q "bytes from" && echo "$i is OK" || opcmsg object=PING a=OS... (5 Replies)
Discussion started by: marmellata
5 Replies

4. Infrastructure Monitoring

Remote Monitoring

Hi All, I am writing a tool which remotely monitors network devices and sends an alarm if the device does not respond just like an NMS. Can I use Threads module and invoke a simultaneous ping/snmpwalk to 100 or more devices and raise an alarm if any of the devices do no respond? Please... (1 Reply)
Discussion started by: gurukottur
1 Replies

5. Shell Programming and Scripting

Help me monitoring the IO for remote server

Hi guys i have purchased sun server for my visualization project. Request you to help me finding the io for disk . I have put storage(disks) on different location (File Server) and on server (Application) i have configured 4 virtual machines. How would i monitor the io for file server from... (0 Replies)
Discussion started by: pinga123
0 Replies

6. AIX

Telnet disconnects on handheld device AIX

I have intermec handheld device which is connecting to AIX Server on port 12431 or whatever. ( oracle application ) The handheld device connects for few seconds and then disconnects from the AIX server. Once it disconnects the handheld device automatically switches off. Are there any... (2 Replies)
Discussion started by: filosophizer
2 Replies

7. AIX

remote monitoring AIX

peepz, do any of you use Remote monitoring for your aix boxes?? I mean something like SNMP or third party monitoring? I've looked some things up and this came out popular: SNMP for AIX NET-SNMP opensource program Tivoli Netview Server to monitor the servers AIX RMC Ganglia for... (1 Reply)
Discussion started by: kvanelshocht
1 Replies

8. Solaris

flarcreate to remote tape device

Hi, Someone knows hot to create a flash archive to a remote tape device? Here is my try: $flarcreate -n nereus -S -t lisdev:/dev/rmt/1n WARNING: hash generation disabled when using tape (-t) current filter settings Creating the archive... ERROR: Unable to work archive. Regards (4 Replies)
Discussion started by: spacewalker
4 Replies

9. UNIX for Dummies Questions & Answers

cpio backup to a remote device..

Hi, Needing to perform a backup of one system to the tape unit on another system. Why, well because the local tape device is stuffed and I desparately need to have a backup completed successfully sooner rather than not at all. My question is how do I set the below code to allow me to perform... (3 Replies)
Discussion started by: Cameron
3 Replies
Login or Register to Ask a Question