Skip to content

Commit

Permalink
newdevice: Added support for Toshiba TEC printers (#5792)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockyluke authored and laf committed Feb 6, 2017
1 parent 45c5c20 commit 6380176
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 0 deletions.
17 changes: 17 additions & 0 deletions html/images/logos/toshiba.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions html/images/os/toshiba.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions includes/definitions/toshiba-tec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
os: toshiba-tec
group: printer
text: 'Toshiba Printer'
ifname: 1
type: printer
logo: toshiba
over:
- { graph: device_toner, text: Toner }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.1129.1.2.
discovery_modules:
toner: 1
poller_modules:
toner: 1
7 changes: 7 additions & 0 deletions tests/OSDiscoveryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,13 @@ public function testTomato()
$this->checkOS('tomato');
}

public function testToshibaTec()
{
$this->checkOS('toshiba-tec', 'toshiba-tec-ev4');
$this->checkOS('toshiba-tec', 'toshiba-tec-fv4');
$this->checkOS('toshiba-tec', 'toshiba-tec-sx5t');
}

public function testTpconductor()
{
$this->checkOS('tpconductor');
Expand Down
2 changes: 2 additions & 0 deletions tests/snmpsim/toshiba-tec-ev4.snmprec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|TOSHIBA TEC B-EV4
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.1129.1.2.1
2 changes: 2 additions & 0 deletions tests/snmpsim/toshiba-tec-fv4.snmprec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|TOSHIBA TEC B-FV4
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.1129.1.2.1
2 changes: 2 additions & 0 deletions tests/snmpsim/toshiba-tec-sx5t.snmprec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|TOSHIBA TEC B-SX5T
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.1129.1.2.1

0 comments on commit 6380176

Please sign in to comment.