remoteclient.pl
来自「ntop网络监控软件,使用方面」· PL 代码 · 共 46 行
PL
46 行
#!/usr/bin/perl# # Copyright (C) 2001 Luca Deri <deri@ntop.org>## http://www.ntop.org/### Description:## This is a simple program that shows how to# fetch information out of ntop## January 2001#use LWP::Simple;$ntopHost = "localhost";$ntopPort = 3000;$URL = "http://".$ntopHost.":".$ntopPort."/dumpData.html?language=perl";$content = get($URL);if($content eq "") { print "No data. Please make sure ntop is up and running\n";} else { # evaluate the hash table %hash = eval($content); # %hash now contains the received entries while (($key, $value) = each %hash) { print $key."\n"; } # now let's print the raw output print "==========================\n"; print $content."\n"; print "==========================\n";}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?