Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
dac776bc
Commit
dac776bc
authored
Mar 13, 2002
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Intel support to portstats.
parent
acc39e6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
tbsetup/portstats.in
tbsetup/portstats.in
+17
-2
No files found.
tbsetup/portstats.in
View file @
dac776bc
...
...
@@ -15,7 +15,6 @@ use lib '@prefix@/lib';
use
libdb
;
use
snmpit_lib
;
use
snmpit_cisco
;
use
English
;
use
Getopt::
Long
;
...
...
@@ -156,7 +155,23 @@ foreach my $name (keys %portMap) {
#
# Connect to the switch and get the data we want off of it
#
my
$device
=
new
snmpit_cisco
(
$name
);
my
$type
=
getDeviceType
(
$name
);
my
$device
;
SWITCH:
for
(
$type
)
{
/cisco/
&&
do
{
require
snmpit_cisco
;
$device
=
new
snmpit_cisco
(
$name
);
last
;
};
/intel/
&&
do
{
require
snmpit_intel
;
$device
=
new
snmpit_intel
(
$name
);
last
;
};
# 'default' case
die
"
Unknown switch type (
$type
) for
$name
\n
";
}
my
@results
=
$device
->
getFields
(
\
@ports
,
\
@oids
);
foreach
my
$result
(
@results
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment