Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
getreport.pl
Package: mrtg-2.13.2.zip [view]
Upload User: shbosideng
Upload Date: 2013-05-04
Package Size: 1555k
Code Size: 1k
Category:
SNMP
Development Platform:
C/C++
- #!/usr/bin/perl # This script is used to establish a TCP connection with a host to get the
- # report of disk-space quota provided by repquota utility.
- #
- # use: ./getreport.pl <hostname> <port number>
- #
- # By Steven Micallef <smic@wire.net.au> on the 24/4/1999.
- # Modified by Adrian Turcu <adrianturcu@yahoo.com> on 18/9/2000.
- use Net::Telnet ();
- $hostname = $ARGV[0];
- $port = $ARGV[1];
- # If you've changed the port showdisk.pl runs on, change it here too.
- #$port = 9047;
- $i = 0;
- if ($hostname eq "" || $port eq "" )
- {
- print "Usage: $0 <hostname> <port number>n";
- exit;
- }
- $t = new Net::Telnet ( Host => $hostname, Port => $port);
- $t->open("$hostname");
- do
- {
- $data = $t->getline(Timeout => 40);
- print $data;
- } while ( $data );