skel.pl

来自「JdonFramework need above jdk 1.4.0 This」· PL 代码 · 共 16 行

PL
16
字号
#!/usr/local/bin/perlif ($ARGV[0] == 1) {   # OID queried is 1.3.6.1.4.1.546.14.1.0   if ($ARGV[1] eq "SET") {          # use $ARGV[2] to set the value of something and return the set           # followed by a newline character, to the agent   } elsif (($ARGV[1] eq "GET") || ($ARGV[1] eq "GETNEXT")) {          # get the information to which this OID pertains, then return it          # followed by a newline character, to the agent   }} else {   return 0;   # return 0, since I don't know what to do with this OID}

⌨️ 快捷键说明

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