Send netdisco-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:
1. Re: Netdisco2 Port Control (Jonathan Woodard)
2. Re: Multiple community list not working (Oliver Gorwits)
3. ERROR: invalid byte sequence for encoding (Rune Thorsplass)
4. Re: ERROR: invalid byte sequence for encoding (Rune Thorsplass)
5. Re: ERROR: invalid byte sequence for encoding (Oliver Gorwits)
--- Begin Message ---
You are most welcome. Glad to give back. :-)
-----Original Message-----
From: Deshong, Kenneth [mailto:[email protected]]
Sent: Friday, August 01, 2014 3:26 PM
To: Jonathan Woodard; [email protected]
Cc: Oliver Gorwits
Subject: RE: Netdisco2 Port Control
Well that was it. I added my strings like you have yours Read\Write separate
and everything seems to be working. Our W and WR string are similar so it was
a combination mistype as well.
Thanks for your quick response.
Ken DeShong
Network Engineer
USF Health Information Systems
Desk: 813-396-9472
Fax: 813-974-5198
Amazing Things Happen When You Connect the Unconnected
-----Original Message-----
From: Jonathan Woodard [mailto:[email protected]]
Sent: Friday, August 01, 2014 4:18 PM
To: Jonathan Woodard; Deshong, Kenneth; [email protected]
Cc: Oliver Gorwits
Subject: RE: Netdisco2 Port Control
In the deployment.yml file, uncomment the lines and change the community to
your SNMP write community.
Example:
snmp_auth:
- tag: 'v2default' <-- Just a descriptive tag, could be "Myv2Readstring
community: 'mycommunity'
read: true
write: false
Uncomment below lines
- tag: 'v2default_w'
community: 'private' <--- Change this to your write enabled SNMP string
read: false
write: true
Also note, if your string is read/write both, you could change it to this.
- tag: 'v2default_rw'
community: 'private' <--- Change this to your write enabled SNMP string
read: true
write: true
Hopefully that helps some.
-----Original Message-----
From: Jonathan Woodard [mailto:[email protected]]
Sent: Friday, August 01, 2014 2:56 PM
To: Deshong, Kenneth; [email protected]
Cc: Oliver Gorwits
Subject: Re: [Netdisco] Netdisco2 Port Control
Double check your deployment file. I had that problem and I accidentally put
the write SNMP string in the wrong field.
-----Original Message-----
From: Deshong, Kenneth [mailto:[email protected]]
Sent: Friday, August 01, 2014 2:50 PM
To: [email protected]
Cc: Oliver Gorwits
Subject: [Netdisco] Netdisco2 Port Control
I recently installed Netdisco2 and it has been working well with one exception.
It won't change a VLAN or Shut a Port down via the web interface. It lets me
execute the command but nothing ever happens on the switch. Any advice on
where I should look?
Ken DeShong
Network Engineer
USF Health Information Systems
Desk: 813-396-9472
Fax: 813-974-5198
Amazing Things Happen When You Connect the Unconnected
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search
up to 200,000 lines of code with a free copy of Black Duck Code Sight - the
same software that powers the world's largest code search on Ohloh, the Black
Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search
up to 200,000 lines of code with a free copy of Black Duck Code Sight - the
same software that powers the world's largest code search on Ohloh, the Black
Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
--- Begin Message ---
Hi Richard,
You were close, but need to take care of the syntax and especially the
whitespace/indenting in the configuration file:
community: [first, second, third]
community:
- first
- second
- third
snmp_auth:
- tag: alpha
community: first
- tag: beta
community: second
- tag: gamma
community: third
In case you read email in a proportional font and this still looks
weird, I've put the same text in a pastebin: http://pastie.org/9438646
I hope this helps,
regards,
oliver.
On 2014-08-01 18:43, Richard Silver wrote:
So I’ve just upgraded our installation to the latest version 2. No
matter how I format it in the deployment.yml, I can’t get multiple
snmp communities to work properly. If I do a comma separated list
such
as:
community: community1, community2, community&3
It starts the discover as if they’re one string
[7569] 2014-08-01 17:34:53 info discover: started at Fri Aug 1
12:34:53 2014
[7569] 2014-08-01 17:34:53 debug [172.31.1.111] try_connect with ver:
2, class: SNMP::Info::Layer2::HP, comm: community1, community2,
community&3
[7569] 2014-08-01 17:35:03 debug [172.31.1.111] try_connect with ver:
2, class: SNMP::Info, comm: community1, community2, community&3
[7569] 2014-08-01 17:35:12 debug [172.31.1.111] try_connect with ver:
1, class: SNMP::Info::Layer2::HP, comm: community1, community2,
community&3
[7569] 2014-08-01 17:35:21 debug [172.31.1.111] try_connect with ver:
1, class: SNMP::Info, comm: community1, community2, community&3
I also tried configuring with the other format listed using a line
for
each
Community:
- community1
- community2
- community&3
With the result:
[22189] 2014-08-01 17:39:51 debug [172.31.1.111] try_connect with
ver:
2, class: SNMP::Info::Layer2::HP, comm: ARRAY(0x2461e08)
[22189] 2014-08-01 17:40:01 debug [172.31.1.111] try_connect with
ver:
2, class: SNMP::Info, comm: ARRAY(0x2461e08)
If I list them in order as full community: statements
community: community1
community: community2
community: community&3
It will only use the last community string listed, community&3.
Am I missing something? Running on RHEL 6, all the latest updates.
Thanks,
Richard
RICHARD SILVER
SENIOR NETWORK ENGINEER
EAST ALABAMA MEDICAL CENTER
334-528-6866
"Have you tried turning it off and back on again?" This email and any
files transmitted with it are confidential and intended solely for
the
use of the individual or entity to whom they are addressed. If you
have received this email in error please notify the system manager.
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.
--- End Message ---
--- Begin Message ---
Hi
I’m new to Netdisco v2, but I really start to like it :)
Today I got this error, when running a manual discover against a Cisco
WS-C2960-24-S . Any hints?
Using these versions:
App::Netdisco 2.028012
DB Schema v38
Dancer 1.3126
Bootstrap 2.3.1
PostgreSQL 8.4.21 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real (Ubuntu
4.4.3-4ubuntu5.1) 4.4.3, 64-bit. DBI 1.631, DBD::Pg 2.16.1
SNMP::Info 3.18
Perl 5.010001
netdisco@vx00securelog:~$ ~/bin/netdisco-do -D discover -d 10.182.88.5
[24817] 2014-08-02 12:32:14 info discover: started at Sat Aug 2 14:32:14 2014
[24817] 2014-08-02 12:32:16 debug [10.182.88.5] try_connect with ver: 2, class:
SNMP::Info::Layer3::C6500, comm: pdmt
[24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - aliased as 10.182.88.5
[24817] 2014-08-02 12:32:19 debug resolving 1 aliases with max 50 outstanding
requests
[24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - removed 1 aliases
[24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - added 1 new aliases
[24817] 2014-08-02 12:32:21 debug [10.182.88.5] interfaces - ignoring 10501
(Null0) (other)
[24817] 2014-08-02 12:32:22 debug [10.182.88.5] interfaces - removed 0
interfaces
[24817] 2014-08-02 12:32:22 info discover: finished at Sat Aug 2 14:32:22 2014
[24817] 2014-08-02 12:32:22 info discover: status error: error running job:
DBIx::Class::Storage::DBI::_dbh_execute_for_fetch(): execute_for_fetch()
aborted with 'ERROR: invalid byte sequence for encoding "UTF8": 0xe672f8
HINT: This error can also happen if the byte sequence does not match the
encoding expected by the server, which is controlled by "client_encoding".' at
populate slice:
{
descr => "FastEthernet0/24",
duplex => "full",
duplex_admin => "full",
ip => "10.182.88.5",
is_master => "false",
lastchange => 4770,
mac => "3c:df:1e:a2:75:98",
mtu => 1500,
name => "switch-N\346r\370y",
port => "FastEthernet0/24",
pvid => 997,
slave_of => undef,
speed => "100 Mbps",
stp => "forwarding",
type => "ethernetCsmacd",
up => "up",
up_admin => "up",
vlan => 997
} at /usr/local/netdisco/perl5/lib/perl5/App/Netdisco/Core/Discover.pm line 323
--- End Message ---
--- Begin Message ---
Hi
Found it :)
Interface description for FastEthernet0/24 included some norwegian character.
Removed them and then no error.
RuneT
2. aug. 2014 kl. 14:42 skrev Rune Thorsplass <[email protected]>:
> Hi
> I’m new to Netdisco v2, but I really start to like it :)
>
> Today I got this error, when running a manual discover against a Cisco
> WS-C2960-24-S . Any hints?
>
> Using these versions:
> App::Netdisco 2.028012
> DB Schema v38
> Dancer 1.3126
> Bootstrap 2.3.1
> PostgreSQL 8.4.21 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3, 64-bit. DBI 1.631, DBD::Pg 2.16.1
> SNMP::Info 3.18
> Perl 5.010001
>
>
> netdisco@vx00securelog:~$ ~/bin/netdisco-do -D discover -d 10.182.88.5
> [24817] 2014-08-02 12:32:14 info discover: started at Sat Aug 2 14:32:14
> 2014
> [24817] 2014-08-02 12:32:16 debug [10.182.88.5] try_connect with ver: 2,
> class: SNMP::Info::Layer3::C6500, comm: pdmt
> [24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - aliased as
> 10.182.88.5
> [24817] 2014-08-02 12:32:19 debug resolving 1 aliases with max 50
> outstanding requests
> [24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - removed 1 aliases
> [24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - added 1 new aliases
> [24817] 2014-08-02 12:32:21 debug [10.182.88.5] interfaces - ignoring 10501
> (Null0) (other)
> [24817] 2014-08-02 12:32:22 debug [10.182.88.5] interfaces - removed 0
> interfaces
> [24817] 2014-08-02 12:32:22 info discover: finished at Sat Aug 2 14:32:22
> 2014
> [24817] 2014-08-02 12:32:22 info discover: status error: error running job:
> DBIx::Class::Storage::DBI::_dbh_execute_for_fetch(): execute_for_fetch()
> aborted with 'ERROR: invalid byte sequence for encoding "UTF8": 0xe672f8
> HINT: This error can also happen if the byte sequence does not match the
> encoding expected by the server, which is controlled by "client_encoding".'
> at populate slice:
> {
> descr => "FastEthernet0/24",
> duplex => "full",
> duplex_admin => "full",
> ip => "10.182.88.5",
> is_master => "false",
> lastchange => 4770,
> mac => "3c:df:1e:a2:75:98",
> mtu => 1500,
> name => "switch-N\346r\370y",
> port => "FastEthernet0/24",
> pvid => 997,
> slave_of => undef,
> speed => "100 Mbps",
> stp => "forwarding",
> type => "ethernetCsmacd",
> up => "up",
> up_admin => "up",
> vlan => 997
> } at /usr/local/netdisco/perl5/lib/perl5/App/Netdisco/Core/Discover.pm line
> 323
>
--- End Message ---
--- Begin Message ---
Hi Rune,
Many thanks for the bug report. This will be fixed in the next release.
I'm glad that you found the workaround, but I'm sorry that it meant not
being able to use Norwegian characters! :(
regards,
oliver.
On 2014-08-02 13:42, Rune Thorsplass wrote:
Hi
I’m new to Netdisco v2, but I really start to like it :)
Today I got this error, when running a manual discover against a
Cisco WS-C2960-24-S . Any hints?
Using these versions:
App::Netdisco 2.028012
DB Schema v38
Dancer 1.3126
Bootstrap 2.3.1
PostgreSQL 8.4.21 on x86_64-pc-linux-gnu, compiled by GCC
gcc-4.4.real (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3, 64-bit. DBI 1.631,
DBD::Pg 2.16.1
SNMP::Info 3.18
Perl 5.010001
netdisco@vx00securelog:~$ ~/bin/netdisco-do -D discover -d
10.182.88.5
[24817] 2014-08-02 12:32:14 info discover: started at Sat Aug 2
14:32:14 2014
[24817] 2014-08-02 12:32:16 debug [10.182.88.5] try_connect with ver:
2, class: SNMP::Info::Layer3::C6500, comm: pdmt
[24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - aliased as
10.182.88.5
[24817] 2014-08-02 12:32:19 debug resolving 1 aliases with max 50
outstanding requests
[24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - removed 1
aliases
[24817] 2014-08-02 12:32:19 debug [10.182.88.5] device - added 1 new
aliases
[24817] 2014-08-02 12:32:21 debug [10.182.88.5] interfaces -
ignoring 10501 (Null0) (other)
[24817] 2014-08-02 12:32:22 debug [10.182.88.5] interfaces - removed
0 interfaces
[24817] 2014-08-02 12:32:22 info discover: finished at Sat Aug 2
14:32:22 2014
[24817] 2014-08-02 12:32:22 info discover: status error: error
running job: DBIx::Class::Storage::DBI::_dbh_execute_for_fetch():
execute_for_fetch() aborted with 'ERROR: invalid byte sequence for
encoding "UTF8": 0xe672f8
HINT: This error can also happen if the byte sequence does not match
the encoding expected by the server, which is controlled by
"client_encoding".' at populate slice:
{
descr => "FastEthernet0/24",
duplex => "full",
duplex_admin => "full",
ip => "10.182.88.5",
is_master => "false",
lastchange => 4770,
mac => "3c:df:1e:a2:75:98",
mtu => 1500,
name => "switch-N\346r\370y",
port => "FastEthernet0/24",
pvid => 997,
slave_of => undef,
speed => "100 Mbps",
stp => "forwarding",
type => "ethernetCsmacd",
up => "up",
up_admin => "up",
vlan => 997
} at
/usr/local/netdisco/perl5/lib/perl5/App/Netdisco/Core/Discover.pm
line
323
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index
and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users