I am not quite familiar with snmpwalk, could you kindly give me a guide on it's
use.
Regards
Frank
________________________________
From: Francois Gaudreault <[email protected]>
To: [email protected]
Sent: Tuesday, July 2, 2013 5:46 PM
Subject: Re: [PacketFence-users] SNMP: Communication to the switch
Is it working if you use snmpwalk?
On 2013-07-02 5:19 AM, frank muriuki wrote:
> Hi All,
>
> I have a challenge establishing communication between Cisco 2960
> switch with the PacketFence. I have tried V1 and V2 but i get this error;
>
> root@ecsnacsvr ~]# /usr/local/pf/bin/pfcmd_vlan -getVlan -switch
> 10.2.1.20 -ifIndex 10001
> 0
>
> [root@ecsnacsvr ~]# tail -f /usr/local/pf/logs/packetfence.log
> Jul 02 12:00:34 httpd.admin(0) ERROR: Use of uninitialized value
> $value in string eq at
> /usr/share/perl5/vendor_perl/HTML/FormHandler/Widget/Field/Select.pm
> line 90.
> (pfappserver::__ANON__)
> Jul 02 12:01:01 httpd.admin(0) INFO: "10.2.1.20" successfully modified
> (pfappserver::Base::Model::Config::update)
> Jul 02 12:01:01 httpd.admin(0) INFO: Configuration file successfully
> saved (pfappserver::Base::Model::Config::rewriteConfig)
> Jul 02 12:01:01 httpd.admin(0) INFO: Configuration file successfully
> saved (pfappserver::Base::Model::Config::commit)
> Jul 02 12:01:01 httpd.admin(0) INFO: Configuration file successfully
> saved (pfappserver::Base::Controller::Crud::Config::_commitChanges)
> Jul 02 12:09:34 httpd.admin(0) ERROR: Use of uninitialized value
> $value in string eq at
> /usr/share/perl5/vendor_perl/HTML/FormHandler/Widget/Field/Select.pm
> line 90.
> (pfappserver::__ANON__)
> Jul 02 12:09:58 pfcmd_vlan(3460) ERROR: error creating SNMP v2c read
> connection to 10.2.1.20: No response from remote host "10.2.1.20"
> (pf::SNMP::connectRead)
> Jul 02 12:10:06 pfcmd_vlan(3464) ERROR: error creating SNMP v2c read
> connection to 10.2.1.20: No response from remote host "10.2.1.20"
> (pf::SNMP::connectRead)
>
> Switch configuration:
>
> ECS-ASW-FL1#sh run | i snmp
> snmp trap mac-notification change added
> snmp-server community Pass123$ RW 10
> snmp-server enable traps port-security
> snmp-server enable traps port-security trap-rate 1
> snmp-server host 10.10.0.10 version 2c Pass123$ port-security
>
> ECS-ASW-FL1#sh run int g0/22
> Building configuration...
>
> Current configuration : 277 bytes
> !
> interface GigabitEthernet0/22
> switchport access vlan 20
> switchport mode access
> switchport port-security
> switchport port-security violation restrict
> switchport port-security mac-address 0025.1185.e79f
> snmp trap mac-notification change added
> spanning-tree portfast
> end
>
> PacketFence Configuration
> [10.2.1.20]
> mode=production
> triggerInline=
> deauthMethod=SSH
> type=Cisco::Catalyst_2960
> macDetectionVlan=20
> isolationVlan=20
> uplink_dynamic=0
> uplink=10,25,26
> ecs staffVlan=201
> registrationVlan=10
> cliUser=ecsadmin
> cliPwd=3cS@dm1nnx
> cliTransport=SSH
> cliEnablePwd=3cS@dm1nnx
> SNMPVersionTrap=2c
> SNMPVersion=2c
> SNMPCommunityRead=Pass123$
> SNMPCommunityWrite=Pass123$
> SNMPCommunityTrap=Pass123$
>
> Please assist.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
>
>
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
[email protected]
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC H3J 1S6
www.cloudops.com
@CloudOps_
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users