summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-07-21 00:10:41 +0200
committerDaniil Baturin <daniil@baturin.org>2018-07-21 00:10:41 +0200
commit46dafc9fa56169f29a60be6a8ea77532bb1479e1 (patch)
tree9411a04a4d4bddd1c0ba9251f075720c1a609e49
parentf63af25cce0202d959be25bd47ca5fe1ec12ac0b (diff)
parentadd153b13de56f97624b2dc433fdbe21b36dbeed (diff)
downloadvyatta-op-46dafc9fa56169f29a60be6a8ea77532bb1479e1.tar.gz
vyatta-op-46dafc9fa56169f29a60be6a8ea77532bb1479e1.zip
Merge branch 'current' of github.com:vyos/vyatta-op into current
-rw-r--r--Makefile.am3
-rw-r--r--debian/control8
-rw-r--r--scripts/vyatta-show-snmp-ifmib138
-rw-r--r--scripts/vyatta-show-snmp-v3.pl168
-rwxr-xr-xscripts/vyatta-show-snmp.pl123
-rw-r--r--templates/show/snmp/community/node.def1
-rw-r--r--templates/show/snmp/community/node.tag/host/node.def2
-rw-r--r--templates/show/snmp/community/node.tag/host/node.tag/node.def3
-rw-r--r--templates/show/snmp/community/node.tag/node.def3
-rw-r--r--templates/show/snmp/mib/ifmib/ifAlias/node.def2
-rw-r--r--templates/show/snmp/mib/ifmib/ifAlias/node.tag/node.def2
-rw-r--r--templates/show/snmp/mib/ifmib/ifDescr/node.def2
-rw-r--r--templates/show/snmp/mib/ifmib/ifDescr/node.tag/node.def2
-rw-r--r--templates/show/snmp/mib/ifmib/ifIndex/node.def2
-rw-r--r--templates/show/snmp/mib/ifmib/ifIndex/node.tag/node.def2
-rw-r--r--templates/show/snmp/mib/ifmib/node.def2
-rw-r--r--templates/show/snmp/mib/node.def1
-rw-r--r--templates/show/snmp/node.def2
-rw-r--r--templates/show/snmp/v3/certificates/node.def7
-rw-r--r--templates/show/snmp/v3/group/node.def2
-rw-r--r--templates/show/snmp/v3/node.def2
-rw-r--r--templates/show/snmp/v3/trap-target/node.def2
-rw-r--r--templates/show/snmp/v3/user/node.def2
-rw-r--r--templates/show/snmp/v3/view/node.def2
24 files changed, 0 insertions, 483 deletions
diff --git a/Makefile.am b/Makefile.am
index ad9c01a..0a1f89b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,9 +29,6 @@ bin_SCRIPTS += scripts/show-users.pl
bin_SCRIPTS += scripts/show-dhcp-leases.pl
bin_SCRIPTS += scripts/vyatta-boot-image.pl
bin_SCRIPTS += scripts/vyatta-sudo
-bin_SCRIPTS += scripts/vyatta-show-snmp.pl
-bin_SCRIPTS += scripts/vyatta-show-snmp-ifmib
-bin_SCRIPTS += scripts/vyatta-show-snmp-v3.pl
bin_SCRIPTS += scripts/rename-image.pl
bin_SCRIPTS += scripts/show-image-storage.pl
bin_SCRIPTS += scripts/vyatta-remote-copy.pl
diff --git a/debian/control b/debian/control
index bd17cf4..4bff070 100644
--- a/debian/control
+++ b/debian/control
@@ -10,17 +10,13 @@ Package: vyatta-op
Architecture: all
Depends: sed (>= 4.1.5),
console-terminus,
- bmon,
- iftop,
ethtool,
traceroute,
ntpdate,
procps (>= 1:3.2.7-3),
- pciutils,
vyatta-cfg (>= 0.16.26),
vyatta-cfg-system (>= 0.19.93),
vyatta-quagga (>= 0.99.15-26),
- lsof,
coreutils (>= 5.97-5.3),
host,
vyatta-bash | bash (>= 4.1),
@@ -30,10 +26,6 @@ Depends: sed (>= 4.1.5),
at,
net-tools,
libtimedate-perl,
- usbutils,
- lsscsi,
- hvinfo,
- python3-pystache
Suggests: util-linux (>= 2.13-5),
ncurses-bin (>= 5.5-5),
dialog
diff --git a/scripts/vyatta-show-snmp-ifmib b/scripts/vyatta-show-snmp-ifmib
deleted file mode 100644
index 8fb1004..0000000
--- a/scripts/vyatta-show-snmp-ifmib
+++ /dev/null
@@ -1,138 +0,0 @@
-#! /usr/bin/perl
-
-# **** License ****
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# This code was originally developed by Vyatta, Inc.
-# Portions created by Vyatta are Copyright (C) 2007 Vyatta, Inc.
-# All Rights Reserved.
-#
-# Author: Stephen Hemminger
-# Date: Novemember 2010
-# Description: Script for show snmp ifmib
-#
-# **** End License ****
-
-use strict;
-use warnings;
-use Getopt::Long;
-use POSIX qw(strtol);
-
-# This is used to show values corresponding to to results IF-MIB.
-my %interfaces;
-
-sub show_ifindex {
- foreach my $ifname (@_) {
- my $info = $interfaces{$ifname};
- my $ifindex = $info->{'ifIndex'};
- printf "%s: ifIndex = %d\n", $ifname, $ifindex;
- }
-}
-
-sub show_ifalias {
- foreach my $ifname (@_) {
- my $info = $interfaces{$ifname};
- my $ifalias = $info->{'ifAlias'};
- printf "%s: ifAlias = %s\n", $ifname,
- defined($ifalias) ? $ifalias : $ifname;
- }
-}
-
-sub read_sysfs {
- my $filename = shift;
-
- open( my $f, '<', $filename )
- or return; # not a PCI device
-
- my $val = <$f>;
- close $f;
-
- return strtol($val);
-}
-
-# Imitate code in net-snmp to lookup PC
-# TODO - move to common code extension (and handle USB?)
-sub pci_info {
- my $ifname = shift;
- my $vendor_id = read_sysfs("/sys/class/net/$ifname/device/vendor");
- my $device_id = read_sysfs("/sys/class/net/$ifname/device/device");
-
- return unless ( defined($vendor_id) && defined($device_id) );
-
- my $cmd = sprintf("lspci -m -d %04x:%04x", $vendor_id, $device_id);
- open( my $pci, '-|', $cmd )
- or die "Can't run $cmd";
- my $info = <$pci>;
- close $pci;
-
- return unless $info;
-
- # extract vendor and device description from output
- $info =~ /^\S+ "[^"]*" "([^"]*)" "([^"]*)"/;
-
- return "$1 $2";
-}
-
-sub show_ifdescr {
- foreach my $ifname (@_) {
- my $ifdescr = pci_info($ifname);
-
- printf "%s: ifDescr = %s\n", $ifname,
- defined($ifdescr) ? $ifdescr : $ifname;
- }
-}
-
-sub show_all {
- foreach my $ifname (@_) {
- my $info = $interfaces{$ifname};
- my $ifindex = $info->{'ifIndex'};
- my $ifalias = $info->{'ifAlias'};
- my $ifdescr = pci_info($ifname);
-
- printf "%s: ifIndex = %d\n", $ifname, $ifindex;
-
- my $pad = sprintf( "%-*s", length($ifname) + 1, " " );
- printf "%s ifAlias = %s\n", $pad, $ifalias if ($ifalias);
- printf "%s ifDescr = %s\n", $pad, $ifdescr if ($ifdescr);
- }
-}
-
-my $show = \&show_all;
-
-GetOptions(
- "ifindex" => sub { $show = \&show_ifindex },
- "ifalias" => sub { $show = \&show_ifalias },
- "ifdescr" => sub { $show = \&show_ifdescr },
-) or die "Unknown option\n";
-
-# List of all interfaces that currently exist on system
-# includes interfaces that may be outside Vyatta CLI because
-# they still show up in SNMP
-open( my $ip, '-|', 'ip li' )
- or die "Can't run ip command\n";
-
-my $ifname;
-while (<$ip>) {
- if (/^(\d+): ([^:]*): /) {
- $ifname = $2;
- $interfaces{$ifname} = { 'ifIndex' => $1 };
- }
- elsif (/^ +alias (.*)$/) {
- $interfaces{$ifname}->{'ifAlias'} = $1;
- }
-}
-close $ip;
-
-if (@ARGV) {
- $show->(@ARGV);
-}
-else {
- $show->( sort keys %interfaces );
-}
diff --git a/scripts/vyatta-show-snmp-v3.pl b/scripts/vyatta-show-snmp-v3.pl
deleted file mode 100644
index dc81623..0000000
--- a/scripts/vyatta-show-snmp-v3.pl
+++ /dev/null
@@ -1,168 +0,0 @@
-#! /usr/bin/perl
-
-use Getopt::Long;
-
-sub show_view() {
- print <<END;
-
-SNMPv3 Views:
-
-END
-
- foreach my $view ( listNodes("view") ) {
- print "View : $view\nOIDs :\n";
- foreach my $oid ( listNodes("view $view oid") ) {
- my $exclude = '';
- $exclude = ' exclude'
- if ( isExists("view $view oid $oid exclude") );
- my $mask = '';
- if ( isExists("view $view oid $oid mask") ) {
- my $value = returnValue("view $view oid $oid mask");
- $mask = " mask $value";
- }
- print " .$oid$exclude$mask\n";
- }
- print "\n";
- }
-}
-
-sub show_group() {
- print <<END;
-
-SNMPv3 Groups:
-
-Group View
------ ----
-END
-
- foreach my $group ( listNodes("group") ) {
- my $view = returnValue("group $group view");
- my $mode = returnValue("group $group mode");
- if ( length($group) >= 20 ) {
- print "$group\n $view($mode)\n";
- }
- else {
- $~ = "GROUP_FORMAT";
- format GROUP_FORMAT =
-@<<<<<<<<<<<<<<<<<< @*(@*)
-$group $view $mode
-.
- write;
- }
- }
- print "\n";
-}
-
-sub show_user() {
- print <<END;
-
-SNMPv3 Users:
-
-User Auth Priv Mode Group
----- ---- ---- ---- -----
-END
-
- foreach my $user ( listNodes("user") ) {
- my $auth = returnValue("user $user auth type");
- my $priv = returnValue("user $user privacy type");
- my $mode = returnValue("user $user mode");
- my $group = returnValue("user $user group");
- if ( length($user) >= 20 ) {
- print "$user\n $auth $priv $mode $group\n";
- }
- else {
- $~ = "USER_FORMAT";
- format USER_FORMAT =
-@<<<<<<<<<<<<<<<<<< @<<< @<<< @<<< @*
-$user $auth $priv $mode $group
-.
- write;
- }
- }
- print "\n";
-}
-
-sub show_trap() {
- print <<END;
-
-SNMPv3 Trap-targets:
-
-Tpap-target Port Protocol Auth Priv Type EngineID User
------------ ---- -------- ---- ---- ---- -------- ----
-END
-
- foreach my $trap ( listNodes("trap-target") ) {
- my $auth = returnValue("trap-target $trap auth type");
- my $priv = returnValue("trap-target $trap privacy type");
- my $type = returnValue("trap-target $trap type");
- my $port = returnValue("trap-target $trap port");
- my $user = returnValue("trap-target $trap user");
- my $protocol = returnValue("trap-target $trap protocol");
- my $engineid = returnValue("trap-target $trap engineid");
- if ( length($trap) >= 30 ) {
- $~ = "TRAP_BIG_FORMAT";
- format TRAP_BIG_FORMAT =
-^*
-$trap
- @<<<<< @<<<<<<< @<<< @<<< @<<<<< @<<<<<<<<<<<<<<<<<<<<... @*
-$port $protocol $auth $priv $type $engineid $user
-.
- write;
- }
- else {
- $~ = "TRAP_FORMAT";
- format TRAP_FORMAT =
-@<<<<<<<<<<<<<<<<<<<<<<<<<<<< @<<<<< @<<<<<<< @<<< @<<< @<<<<< @<<<<<<<<<<<<<<<<<<<<... @*
-$trap $port $protocol $auth $priv $type $engineid $user
-.
- write;
- }
- }
- print "\n";
-}
-
-sub show_all() {
- show_user();
- show_group();
- show_view();
- show_trap();
-}
-
-sub listNodes {
- my $path = shift;
- my @nodes =
- split( ' ', `cli-shell-api listActiveNodes service snmp v3 $path` );
- return map { substr $_, 1, -1 } @nodes;
-}
-
-sub returnValue {
- my $path = shift;
- my $value = `cli-shell-api returnActiveValue service snmp v3 $path`;
- return $value;
-}
-
-sub isExists {
- my $path = shift;
- system("cli-shell-api existsActive service snmp v3 $path");
- return !$?;
-}
-
-my $all;
-my $view;
-my $group;
-my $user;
-my $trap;
-
-GetOptions(
- "all!" => \$all,
- "view!" => \$view,
- "group!" => \$group,
- "user!" => \$user,
- "trap!" => \$trap,
-);
-
-show_all() if ($all);
-show_view() if ($view);
-show_group() if ($group);
-show_user() if ($user);
-show_trap() if ($trap);
diff --git a/scripts/vyatta-show-snmp.pl b/scripts/vyatta-show-snmp.pl
deleted file mode 100755
index 634b3cc..0000000
--- a/scripts/vyatta-show-snmp.pl
+++ /dev/null
@@ -1,123 +0,0 @@
-#! /usr/bin/perl
-
-# **** License ****
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# This code was originally developed by Vyatta, Inc.
-# Portions created by Vyatta are Copyright (C) 2007 Vyatta, Inc.
-# All Rights Reserved.
-#
-# Author: Stephen Hemminger
-# Date: January 2010
-# Description: Script to display SNMP information
-#
-# **** End License ****
-#
-use strict;
-use warnings;
-use Getopt::Long;
-use NetAddr::IP;
-
-my $SNMPDCFG = '/etc/snmp/snmpd.conf';
-my $SNMPSTATUS = '/usr/bin/snmpstatus';
-my $password_file = '/config/snmp/superuser_pass';
-
-# generate list of communities in configuration file
-sub read_config {
- my %community;
-
- die "Service SNMP does not configured.\n" if (! -e $SNMPDCFG);
-
- open( my $cfg, '<', $SNMPDCFG )
- or die "Can't open $SNMPDCFG : $!\n";
-
- while (<$cfg>) {
- chomp;
- s/#.*$//;
- my @cols = split;
- next
- unless ( $#cols > 0
- && ( $cols[0] eq 'rocommunity' || $cols[0] eq 'rwcommunity' ) );
-
- my $addr = ( $#cols > 1 ) ? $cols[2] : "0.0.0.0/0";
- $community{ $cols[1] } = NetAddr::IP->new($addr);
- }
- close $cfg;
-
- return \%community;
-}
-
-# expand list of available communities for allowed: tag
-sub show_all {
- my $community = read_config();
-
- print join( ' ', keys( %{$community} ) ), "\n";
- exit 0;
-}
-
-# check status of any accessible community on localhost
-sub status_any {
- my $cref = read_config();
- my %community = %{$cref};
- my $localhost = new NetAddr::IP('localhost');
-
- if (scalar(%community)) {
- foreach my $c ( keys %community ) {
- my $addr = $community{$c};
- status( $c, $localhost->addr() ) if ( $addr->contains($localhost) );
- }
- }
- status_v3();
-
-}
-
-sub status_v3 {
- open (my $file, '<' , $password_file) or die "Couldn't open $password_file - $!";
- my $superuser_pass = do { local $/; <$file> };
- close $file;
- open ($file, '<', $SNMPDCFG) or die "Couldn't open $SNMPDCFG - $!";
- my $superuser_login = '';
- while (my $line = <$file>) {
- if ($line =~ /^iquerySecName (.*)$/) {
- $superuser_login = $1;
- }
- }
- close $file;
- exec $SNMPSTATUS, '-v3', '-l', 'authNoPriv', '-u', $superuser_login, '-A', $superuser_pass, 'localhost';
-}
-
-# check status of one community
-sub status {
- my ( $community, $host ) = @_;
- $host = 'localhost' unless defined($host);
-
- print "Status of SNMP community $community on $host\n";
- exec $SNMPSTATUS, '-v1', '-c', $community, $host;
- die "Can't exec $SNMPSTATUS : $!";
-}
-
-sub usage {
- print "usage: $0 [--community=name [--host=hostname]]\n";
- print " $0 --allowed\n";
- exit 1;
-}
-
-my ( $host, $community, $allowed );
-
-GetOptions(
- "host=s" => \$host,
- "community=s" => \$community,
- "allowed" => \$allowed,
-) or usage();
-
-show_all() if ($allowed);
-status( $community, $host ) if ( defined($community) );
-status_any();
-
diff --git a/templates/show/snmp/community/node.def b/templates/show/snmp/community/node.def
deleted file mode 100644
index 48e7d1d..0000000
--- a/templates/show/snmp/community/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Show status of SNMP community
diff --git a/templates/show/snmp/community/node.tag/host/node.def b/templates/show/snmp/community/node.tag/host/node.def
deleted file mode 100644
index ac7e559..0000000
--- a/templates/show/snmp/community/node.tag/host/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show status of SNMP on remote host
-
diff --git a/templates/show/snmp/community/node.tag/host/node.tag/node.def b/templates/show/snmp/community/node.tag/host/node.tag/node.def
deleted file mode 100644
index b20409d..0000000
--- a/templates/show/snmp/community/node.tag/host/node.tag/node.def
+++ /dev/null
@@ -1,3 +0,0 @@
-help: Show status of SNMP on specified host
-allowed: echo -n '<hostname> <x.x.x.x>'
-run: ${vyatta_bindir}/vyatta-show-snmp.pl --community $4 --host $6
diff --git a/templates/show/snmp/community/node.tag/node.def b/templates/show/snmp/community/node.tag/node.def
deleted file mode 100644
index 48aa6ad..0000000
--- a/templates/show/snmp/community/node.tag/node.def
+++ /dev/null
@@ -1,3 +0,0 @@
-help: Show status of specified SNMP community
-allowed: ${vyatta_bindir}/vyatta-show-snmp.pl --allowed
-run: ${vyatta_bindir}/vyatta-show-snmp.pl --community="$4"
diff --git a/templates/show/snmp/mib/ifmib/ifAlias/node.def b/templates/show/snmp/mib/ifmib/ifAlias/node.def
deleted file mode 100644
index 91a0aa0..0000000
--- a/templates/show/snmp/mib/ifmib/ifAlias/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show SNMP ifAlias for all interfaces
-run: ${vyatta_bindir}/vyatta-show-snmp-ifmib --ifalias
diff --git a/templates/show/snmp/mib/ifmib/ifAlias/node.tag/node.def b/templates/show/snmp/mib/ifmib/ifAlias/node.tag/node.def
deleted file mode 100644
index 6c5b00a..0000000
--- a/templates/show/snmp/mib/ifmib/ifAlias/node.tag/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show SNMP ifAlias for specified interface
-run: ${vyatta_bindir}/vyatta-show-snmp-ifmib --ifalias $6
diff --git a/templates/show/snmp/mib/ifmib/ifDescr/node.def b/templates/show/snmp/mib/ifmib/ifDescr/node.def
deleted file mode 100644
index 6ec827d..0000000
--- a/templates/show/snmp/mib/ifmib/ifDescr/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show SNMP ifDescr for all interfaces
-run: ${vyatta_bindir}/vyatta-show-snmp-ifmib --ifdescr
diff --git a/templates/show/snmp/mib/ifmib/ifDescr/node.tag/node.def b/templates/show/snmp/mib/ifmib/ifDescr/node.tag/node.def
deleted file mode 100644
index 95222de..0000000
--- a/templates/show/snmp/mib/ifmib/ifDescr/node.tag/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show SNMP ifDescr for specified interface
-run: ${vyatta_bindir}/vyatta-show-snmp-ifmib --ifdescr $6
diff --git a/templates/show/snmp/mib/ifmib/ifIndex/node.def b/templates/show/snmp/mib/ifmib/ifIndex/node.def
deleted file mode 100644
index 2955c1d..0000000
--- a/templates/show/snmp/mib/ifmib/ifIndex/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show SNMP ifIndex for all interfaces
-run: ${vyatta_bindir}/vyatta-show-snmp-ifmib --ifindex
diff --git a/templates/show/snmp/mib/ifmib/ifIndex/node.tag/node.def b/templates/show/snmp/mib/ifmib/ifIndex/node.tag/node.def
deleted file mode 100644
index f9159ac..0000000
--- a/templates/show/snmp/mib/ifmib/ifIndex/node.tag/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show SNMP ifIndex for specified interface
-run: ${vyatta_bindir}/vyatta-show-snmp-ifmib --ifindex $6
diff --git a/templates/show/snmp/mib/ifmib/node.def b/templates/show/snmp/mib/ifmib/node.def
deleted file mode 100644
index fa309ff..0000000
--- a/templates/show/snmp/mib/ifmib/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show SNMP interfaces MIB information
-run: ${vyatta_bindir}/vyatta-show-snmp-ifmib
diff --git a/templates/show/snmp/mib/node.def b/templates/show/snmp/mib/node.def
deleted file mode 100644
index de4f01b..0000000
--- a/templates/show/snmp/mib/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Show SNMP MIB information
diff --git a/templates/show/snmp/node.def b/templates/show/snmp/node.def
deleted file mode 100644
index 98f4366..0000000
--- a/templates/show/snmp/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show status of SNMP on localhost
-run: ${vyatta_bindir}/vyatta-show-snmp.pl
diff --git a/templates/show/snmp/v3/certificates/node.def b/templates/show/snmp/v3/certificates/node.def
deleted file mode 100644
index e66fc0d..0000000
--- a/templates/show/snmp/v3/certificates/node.def
+++ /dev/null
@@ -1,7 +0,0 @@
-help: Show TSM certificates
-run: files=`sudo ls /etc/snmp/tls/certs/ 2> /dev/null`;
- if [ -n "$files" ]; then
- sudo /usr/bin/net-snmp-cert showcerts --subject --fingerprint
- else
- echo "You don't have any certificates. Put it in '/etc/snmp/tls/certs/' folder."
- fi
diff --git a/templates/show/snmp/v3/group/node.def b/templates/show/snmp/v3/group/node.def
deleted file mode 100644
index 7ff947a..0000000
--- a/templates/show/snmp/v3/group/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show the list of configured groups
-run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --group \ No newline at end of file
diff --git a/templates/show/snmp/v3/node.def b/templates/show/snmp/v3/node.def
deleted file mode 100644
index 70c0df2..0000000
--- a/templates/show/snmp/v3/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show status of SNMP v3 on localhost
-run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --all \ No newline at end of file
diff --git a/templates/show/snmp/v3/trap-target/node.def b/templates/show/snmp/v3/trap-target/node.def
deleted file mode 100644
index 9f0d2f1..0000000
--- a/templates/show/snmp/v3/trap-target/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show the list of configured targets
-run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --trap
diff --git a/templates/show/snmp/v3/user/node.def b/templates/show/snmp/v3/user/node.def
deleted file mode 100644
index 621ccc8..0000000
--- a/templates/show/snmp/v3/user/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show the list of configured users
-run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --user
diff --git a/templates/show/snmp/v3/view/node.def b/templates/show/snmp/v3/view/node.def
deleted file mode 100644
index 7e05d84..0000000
--- a/templates/show/snmp/v3/view/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Show the list of configured views
-run: /opt/vyatta/bin/vyatta-show-snmp-v3.pl --view \ No newline at end of file