readme

来自「Snmp(简单网管协议)软件包。」· 代码 · 共 82 行

TXT
82
字号
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 + =
减小字号Ctrl + -
显示快捷键?