Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to run a quick network device inventory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to run a quick network device inventory
Authored by: rajulkabir on Oct 13, '04 12:15:45PM

1) I couldn't get NET::MAC::Vendor to build - it died on the fetch_oui test with 'syntax error at t/fetch_oui.t line 20, near "$oui ( "' and 'syntax error at t/fetch_oui.t line 28, near "}"'. Did anyone else have that problem?

2) I think what this script is missing to put it over the edge into really cool territory is to (either by default or as an option) look at the routing table to figure out the locally connected subnets on its own and broadcast ping them all to flesh out the ARP table.



[ Reply to This | # ]
module build
Authored by: ssevenup on Oct 13, '04 12:51:11PM

1) Same here

2) Agreed

--MM

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]
A script to run a quick network device inventory
Authored by: macubergeek on Oct 14, '04 06:03:16AM

I installed via the CPAN perl module

cpan> force install NET::MAC::Vendor
worked fine



[ Reply to This | # ]
nope I was wrong
Authored by: macubergeek on Oct 14, '04 06:09:44AM

Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/compile..................NOK 1# Failed test (t/compile.t at line 7)
# Tried to use 'Net::MAC::Vendor'.
# Error: Can't locate LWP/Simple.pm in @INC (@INC contains: /private/var/root/.cpan/build/Net-MAC-Vendor-0.21/blib/lib /private/var/root/.cpan/build/Net-MAC-Vendor-0.21/blib/arch /usr/local/lib/perl5/5.8.5/darwin-2level /usr/local/lib/perl5/5.8.5/darwin-2level /usr/local/lib/perl5/5.8.5 /usr/local/lib/perl5/site_perl/5.8.5/darwin-2level /usr/local/lib/perl5/site_perl/5.8.5/darwin-2level /usr/local/lib/perl5/site_perl/5.8.5 /usr/local/lib/perl5/site_perl/5.8.5/darwin-2level /usr/local/lib/perl5/site_perl/5.8.5 /usr/local/lib/perl5/site_perl . /usr/local/lib/perl5/5.8.5/darwin-2level /usr/local/lib/perl5/5.8.5 /usr/local/lib/perl5/site_perl/5.8.5/darwin-2level /usr/local/lib/perl5/site_perl/5.8.5 /usr/local/lib/perl5/site_perl .) at /private/var/root/.cpan/build/Net-MAC-Vendor-0.21/blib/lib/Net/MAC/Vendor.pm line 50.
# BEGIN failed--compilation aborted at /private/var/root/.cpan/build/Net-MAC-Vendor-0.21/blib/lib/Net/MAC/Vendor.pm line 50.
# Compilation failed in require at (eval 1) line 2.
FAILED--Further testing stopped: Could not compile Net::MAC::Vendor.
make: *** [test_dynamic] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force

cpan> # Looks like you failed 1 tests of 1.

module wouldn't install



[ Reply to This | # ]