Skip to content

Instantly share code, notes, and snippets.

@bldewolf
bldewolf / cisco-portchannels.pl
Last active March 29, 2018 09:33
A small Perl script using Net::SNMP to check port channel health on a given Cisco device. Exit values should be Nagios-compatible.
#!/usr/bin/perl
use strict;
use warnings;
use Net::SNMP;
use Getopt::Long;
sub snmp_error {
my $session = shift;