Skip to content

Commit e9d1893

Browse files
committed
Wildcard output differences in snmp tests
And point out that snmp-mibs-downloader is needed.
1 parent d6cc6b2 commit e9d1893

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

ext/snmp/tests/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ in `snmp_include.inc`.
3434

3535
### On Linux/FreeBSD
3636

37-
* Install package `net-snmpd` (name may differ based on your distribution).
37+
* On Ubuntu, install `snmpd` and `snmp-mibs-downloader`. (May be `net-snmpd`
38+
on other distributions.)
3839
* Replace config file (by default this is `/etc/snmp/snmpd.conf` on Linux and
3940
`/usr/local/etc/snmp/snmpd.conf` on FreeBSD) with `snmpd.conf` supplied.
4041

ext/snmp/tests/snmp2_get.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ bool(false)
8181
noSuchName checks
8282
Single OID
8383

84-
Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysDescr.110': No Such Instance currently exists at this OID in %s on line %d
84+
Warning: snmp2_get(): Error in packet at '%s': No Such Instance currently exists at this OID in %s on line %d
8585
bool(false)
8686
Single OID in array
8787

88-
Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysDescr.110': No Such Instance currently exists at this OID in %s on line %d
88+
Warning: snmp2_get(): Error in packet at '%s': No Such Instance currently exists at this OID in %s on line %d
8989
bool(false)
9090
Multiple OID
9191

92-
Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysUpTime.220': No Such Instance currently exists at this OID in %s on line %d
92+
Warning: snmp2_get(): Error in packet at '%s': No Such Instance currently exists at this OID in %s on line %d
9393
array(1) {
9494
["%s"]=>
9595
string(%d) "%s"

ext/snmp/tests/snmp_getvalue.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ string(%d) "%s"
7272
Get with SNMP_VALUE_OBJECT for BITS OID
7373
object
7474
int(4)
75-
string(25) "BITS: %d %s"
75+
string(%d) "%s: %d %S"
7676
Get with SNMP_VALUE_OBJECT | SNMP_VALUE_PLAIN for BITS OID
7777
object
7878
int(4)

ext/snmp/tests/snmpget.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ bool(false)
8080
noSuchName checks
8181
Single OID
8282

83-
Warning: snmpget(): Error in packet at 'SNMPv2-MIB::sysDescr.110': (noSuchName) There is no such variable name in this MIB. in %s on line %d
83+
Warning: snmpget(): Error in packet at '%s': (noSuchName) There is no such variable name in this MIB. in %s on line %d
8484
bool(false)
8585
Single OID in array
8686

87-
Warning: snmpget(): Error in packet at 'SNMPv2-MIB::sysDescr.110': (noSuchName) There is no such variable name in this MIB. in %s on line %d
87+
Warning: snmpget(): Error in packet at '%s': (noSuchName) There is no such variable name in this MIB. in %s on line %d
8888
bool(false)
8989
Multiple OID
9090

91-
Warning: snmpget(): Error in packet at 'SNMPv2-MIB::sysUpTime.220': (noSuchName) There is no such variable name in this MIB. in %s on line %d
91+
Warning: snmpget(): Error in packet at '%s': (noSuchName) There is no such variable name in this MIB. in %s on line %d
9292
array(1) {
9393
["%s"]=>
9494
string(%d) "%s"

0 commit comments

Comments
 (0)