⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 Snmp(简单网管协议)软件包。
💻
字号:
mibload(save_descriptions, use_long_names)   setmib  initMib  addMibDirs  addMibFiles  loadModules  unloadModules (todo)mib translateObj getType mapEnum SNMP::MIB::NODEsession  connectivity  error handling  mib loading  parametersget(use_enums, sprint_val, long_names)  var formats  fget  multi varbinds  error reportinggetnextsettrap??asyncsnmpv3This is the first stab at setting up comprehensive tests forSNMP-1.7 which look and act like regular perl5 test results.Use teststub.t attached below as a template for creating additionaltest modules.Add more tests and feed them back into the distribution!  The more thebetter!Written by John Stoffel (jfs@fluent.com =or= john@nesc.org) 10/14/1997------------<teststub.t>--------------------------------#!./perlBEGIN {    unless(grep /blib/, @INC) {        chdir 't' if -d 't';        @INC = '../lib' if -d '../lib';    }}use Test;use SNMP 3.0;$SNMP::verbose = 0;$num = 0;  # Number of tests to runprint "1..$num\n";$n = 1;my $junk_oid = ".1.3.6.1.2.1.1.1.1.1.1";my $oid = '.1.3.6.1.2.1.1.1';my $name = 'sysDescr';my $junk_name = 'fooDescr';####################################################################### Garbage names return Undef.# test 1$type = SNMP::getType($junk_name);printf "%s %d\n", (!defined($type)) ? "ok" :"not ok", $n++;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -