Has anyone run the connect_and_read.pl tool against a Cisco 3500XL
switch and got it to run with out an error?
I have a test network setup with three Cisco switches.
Cisco 3560 48 port SMI
Cisco 3550 24 port PWR
Cisco 3500XL (3524)
The 3560 and 3550 both look like they are passing. The 3500XL is
getting an uninitialized value error. It got the error on IOS
12.0(5)WC3b and on 12.0(5)WC17.
Snmpwalk scrolls screens for mib info for the switch and tcpdump test
shows that packetfence is getting traps from the switch.
[r...@sksd47 test]# ./connect_and_read.pl
10.81.98.11
- sysUptime: 8 minutes, 47.34
- nb Vlans : 11
- Uplinks: 10006, 10007, 10008, 10009, 10010, 10011, 10012, 10013,
10014, 10015, 10016, 10017, 10018, 10019, 10020, 10021, 10022, 10023,
10024, 10025, 10026, 10027, 10028, 10029, 10030, 10031, 10032, 10033,
10034, 10035, 10036, 10037, 10038, 10039, 10040, 10041, 10042, 10043,
10044, 10045, 10046, 10047, 10048, 10101, 10102, 10103, 10104
10.81.98.12
- sysUptime: 9 minutes, 20.65
- nb Vlans : 11
- Uplinks: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27
Use of uninitialized value in pattern match (m//) at
/usr/local/pf/test/../lib/pf/SNMP.pm line 1330 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a
mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl tells you what
operation
you used the undefined value in. Note, however, that perl optimizes
your
program and the operation displayed in the warning may not
necessarily
appear literally in your program. For example, "that $foo" is
usually optimized into "that " . $foo, and the warning will refer to
the concatenation (.) operator, even though there is no . in your
program.
Use of uninitialized value in numeric lt (<) at
/usr/local/pf/test/../lib/pf/SNMP.pm line 1331 (#1)
Use of uninitialized value in hash element at
/usr/local/pf/test/../lib/pf/SNMP.pm line 1332 (#1)
Use of uninitialized value in sort at
/usr/local/pf/test/../lib/pf/SNMP.pm line
1355 (#1)
Use of uninitialized value in join or string at
/usr/local/pf/test/../lib/pf/SNMP.pm line 1355 (#1)
10.81.98.13
- sysUptime: 8 minutes, 45.80
- nb Vlans : 11
- Uplinks: 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26
[r...@sksd47 test]#
Part of switches.conf
[10.81.98.11]
type = Cisco::Catalyst_3560
mode = production
uplink =
10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,
10018,10019,10020,10021,10022,10023,10024,10025,10026,10027,10028,10029,
1003
0,10031,10032,10033,10034,10035,10036,10037,10038,10039,10040,10041,1004
2,10043,10044,10045,10046,10047,10048,10101,10102,10103,10104
#SNMPVersion = 3
#SNMPEngineID = 0000000000000
#SNMPUserNameRead = readUser
#SNMPAuthProtocolRead = MD5
#SNMPAuthPasswordRead = authpwdread
#SNMPPrivProtocolRead = DES
#SNMPPrivPasswordRead = privpwdread
#SNMPUserNameWrite = writeUser
#SNMPAuthProtocolWrite = MD5
#SNMPAuthPasswordWrite = authpwdwrite
#SNMPPrivProtocolWrite = DES
#SNMPPrivPasswordWrite = privpwdwrite
#SNMPVersionTrap = 3
#SNMPUserNameTrap = readUser
#SNMPAuthProtocolTrap = MD5
#SNMPAuthPasswordTrap = authpwdread
#SNMPPrivProtocolTrap = DES
#SNMPPrivPasswordTrap = privpwdread
[10.81.98.12]
type = Cisco::Catalyst_3500XL
mode = production
uplink =
3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27
[10.81.98.13]
type = Cisco::Catalyst_3550
mode = production
uplink = 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26
Thank You,
Kerry Melcher, CCNP
Supervisor of Network Services
South Kitsap School District
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users