Send netdisco-users mailing list submissions to
netdisco-users@lists.sourceforge.net
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
netdisco-users-requ...@lists.sourceforge.net
You can reach the person managing the list at
netdisco-users-ow...@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:
1. Re: Errors after upgrading to 2.033006 (Oliver Gorwits)
2. Re: Serial number shows as 0x10 (Oliver Gorwits)
3. Re: Customize the Netdisco Web Gui (Oliver Gorwits)
4. Re: netdisco-sshcollector array issue (Alton Pouncey)
5. Re: netdisco-sshcollector array issue (Oliver Gorwits)
--- Begin Message ---
Peter,
Sorry if we asked this before... are there some space characters in the
config before the name/user/pass statements? such as:
database:
name:
user:
pass:
The spaces must be there so the config item is read as a dictionary
(hash).
regards,
oliver.
On 2016-06-27 10:36, Soppe, Peter wrote:
Hi Oliver & all,
I can reproduce the connection error on the cli:
netdisco@debian:~/environments$ perl -w ~netdisco/bin/netdisco-do psql
[55834] 2016-06-27 09:09:21 info psql: started at Mon Jun 27 11:09:21
2016
[55834] 2016-06-27 09:09:21 info psql: finished at Mon Jun 27 11:09:21
2016
[55834] 2016-06-27 09:09:21 info psql: status error: error running
job: Not a HASH reference at /home/netdisco/bin/netdisco-do line 181.
The Code (/home/netdisco/bin/netdisco-do):
[…] Line 181:
my $name = (setting('database')->{name} || 'netdisco');
[…]
Seems the setting hash [cannot|has not] be[en] initialized.
The ~netdisco/environments/deployment.yml is still the same:
[…]
# ------------------
# ESSENTIAL SETTINGS
# ------------------
database:
name: 'netdisco'
user: 'netdisco'
pass: 'xxxxxxxxxxxxxxxxxxxxx'
#host: 'localhost'
[…]
The Postgres Connection is not the problem:
netdisco@debian:~$ psql -P pager=off -c "select * from node limit 1"
netdisco
mac | switch | port | vlan | active | oui | time_first | time_recent
| time_last
-------------------+-------------+------+------+--------+----------+----------------------------+----------------------------+----------------------------
f8:b1:56:xx:xx:xx | 10.xx.xx.xx | xxx | xxx | t | f8:b1:56 |
2016-06-24 14:53:08.695626 | 2016-06-24 14:53:08.695626 | 2016-06-24
14:53:06.406623
(1 Zeile)
Do you have any Idea how to fix this?
Best regards,
Peter
Hi Peter,
On 2016-06-24 16:00, Soppe, Peter wrote:
Now I cannot access the netdisco Website (http://IP:5000 [1] [1])
and am
getting several errors in the log files (see below):
At the command line can you run:
~netdisco/bin/netdisco-do psql
And does this connect to the Netdisco database?
The error might indicate that the web server frontend is unable to
connect to the postgres database.
regards,
oliver.
PETER SOPPE
Leiter Technik
ICSMEDIA GMBH
Soester Straße 13
D - 48155 Münster
T: +49 251 6060-416
F: +49 251 6060-190
M: +49 151 16786000
p...@icsmedia.de
www.icsmedia.de
Geschäftsführer: Ulrich Moeller, Kai Mallmann
Amtsgericht M?nster HRB 4697
USt-IdNr. DE179964809
Links:
------
[1] http://ip:5000/
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech
luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
--- Begin Message ---
Hi Zachary,
I guess from the lack of reply that your issue might not be shared by
users on this list.
However from your mention of cron I guess you're using Netdisco version
1. You might consider at least upgrading the perl SNMP::Info library and
MIB files in your installation, as this could have been fixed along the
way, or ideally upgrade to Netdisco 2:
https://metacpan.org/pod/App::Netdisco
regards,
oliver.
On 2016-03-01 15:05, Zachary McGibbon wrote:
I've noticed that a lot of my Cisco switches show up in the inventory
with a serial number of 0x10, however if I re-run a discover on the
device it is corrected. Then, when the cron runs the next day it
goes back to 0x10
I've looked in the tables and see that this 0x10 is stored in the
'device' table in the 'serial' column.
However, in the device_module table the serial for the same switch is
correct.
Anyone else have this problem?
- Zachary
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
--- Begin Message ---
Hi John,
Perhaps bookmark this page, and then use the location fiter:
/search?tab=device&q=cisco&dns=&ip=&name=&location=&description=&vendor=cisco&matchall=on
or, use the Device by Location report:
http://netdisco.ecmwf.int/report/devicebylocation
regards,
oliver.
On 2015-12-30 13:28, Tran, John wrote:
I am a newbie to NetDisco and was able to install Netdisco
successfully. Now that I have cisco devices showing up, is there a way
for me to change the homepage layout to have something else than By
Platform? I have over 300 cisco devices in 4 different sites. I would
to group the cisco devices by sites or location so it would be easier
to see where the Cisco devices are located. Any help would be
appreciated.
John Tran
Senior Systems Network Engineer
T +1 215 660 8500 Ext:7183
E john.t...@almacgroup.com
25 Fretz Road | Souderton PA 18964 | United States of America
www.almacgroup.com [1]
The contents of this message and any attachments to it are
confidential and may be legally privileged. If you have received this
message in error, you should delete it from your system immediately
and advise the sender.
Almac Group (UK) Limited, registered no. NI061368. Almac Sciences
Limited, registered no. NI041550. Almac Discovery Limited, registered
no. NI046249. Almac Pharma Services Limited, registered no. NI045055.
Almac Clinical Services Limited, registered no. NI041905. Almac
Clinical Technologies Limited, registered no. NI061202. Almac
Diagnostics Limited, registered no. NI043067. All preceding companies
are registered in Northern Ireland with a registered office address of
Almac House, 20 Seagoe Industrial Estate, Craigavon, BT63 5QD, UK.
Almac Sciences (Scotland) Limited, registered in Scotland no.
SC154034.
Almac Clinical Services LLC, Almac Clinical Technologies LLC and Almac
Diagnostics LLC are Delaware limited liability companies and Almac
Group Incorporated is a Delaware Corporation. More information on the
Almac Group can be found on the Almac website: www.almacgroup.com
Links:
------
[1] http://www.almacgroup.com
------------------------------------------------------------------------------
_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
--- Begin Message ---
Oliver,
I have copied the netdisco-sshcollector script to the netdisco user's
home directory (/home/netdisco). I renamed the
/usr/local/bin/netdisco-sshcollecor file to
/usr/local/bin/original.netdisco-sshcollector to move it out of the way.
I have deleted the /root/environments/deployment.yml file.
The only other places that a deployment.tml file exists now is in the
perl5 directories that it was installed in by the CPAN install.
When I run "./netedisco-sshcollector" as the netdisco user now, I still get
this message:
Can't use an undefined value as an ARRAY reference at
./netdisco-sshcollector line 83.
Do I need to delete the deployment.yml files in the perl directories that the
CPAN installation put them in.
Thanks,
Alton
-----------------------------------------------------------------------
Hi Alton,
This error message, together with the netdisco-sshcollector command
seeming to live in /usr/local/bin rather than /home/netdisco makes me
think that the command has not seen the configuration file, or you have
two copies of the configuration file.
Normally, and according to our standard install procedure, netdisco is
installed to /home/netdisco. If your install is elsewhere then the
person who set that up hopefully knows which config file is used and
where it's saved.
I hope this helps point you in the right direction.
regards,
oliver.
On 2016-07-15 19:37, Alton Pouncey wrote:
> All,
>
> I am attempting to run netdisco-sshcollector as part of our new
> Netdisco 2 installation.
>
> I have setup the 'sshcollector' section of the deployment.yml file as
> follows:
>
> sshcollector:
> - ip: '111.222.333.444'
> user: xxxxxxxx
> password: yyyyyyyy
> enable_password: zzzzzzzz
> platform: IOS
>
> The device I am trying to connect to is an ASA so, in reading the
> instructions, it seems I need the enable_password.
>
> When I run /usr/local/bin/netdisco-sshcollector, I get the following
> error:
>
> Can't use an undefined value as an ARRAY reference at
> /usr/local/bin/netdisco-sshcollector line 83.
>
> That part of the netdisco-sshcollector script is this:
>
> 82 sub main {
> 83 my @input = @{ setting('sshcollector') };
> 84
> 85 my @mce_result = mce_loop {
> 86 my ($mce, $chunk_ref, $chunk_id) = @_;
> 87 my $host = $chunk_ref->[0];
> 88
> 89 my $hostlabel = (!defined
> $host->{hostname} or $host->{hostname} eq "-")
> 90 ? $host->{ip} : $host->{hostname};
>
>> From what little I can figure out from the message, it would seem
> that setting('sshcollector') is not being set/defined. What do I
> need to change in the sshcollector section of the deployment.yml file
> to get this to work?
>
> Thanks,
>
> Alton
>
> --
>
> Alton Pouncey, II | Networks Specialist
> University of Arkansas at Little Rock | Information Technology
> Services
> 501.916.3010 | arpouncey@... | ualr.edu
On Fri, Jul 15, 2016 at 1:37 PM, Alton Pouncey <arpoun...@ualr.edu> wrote:
> All,
>
> I am attempting to run netdisco-sshcollector as part of our new Netdisco 2
> installation.
>
> I have setup the 'sshcollector' section of the deployment.yml file as
> follows:
>
> sshcollector:
> - ip: '111.222.333.444'
> user: xxxxxxxx
> password: yyyyyyyy
> enable_password: zzzzzzzz
> platform: IOS
>
> The device I am trying to connect to is an ASA so, in reading the
> instructions, it seems I need the enable_password.
>
> When I run /usr/local/bin/netdisco-sshcollector, I get the following error:
>
> Can't use an undefined value as an ARRAY reference at
> /usr/local/bin/netdisco-sshcollector line 83.
>
> That part of the netdisco-sshcollector script is this:
>
> 82 sub main {
> 83 my @input = @{ setting('sshcollector') };
> 84
> 85 my @mce_result = mce_loop {
> 86 my ($mce, $chunk_ref, $chunk_id) = @_;
> 87 my $host = $chunk_ref->[0];
> 88
> 89 my $hostlabel = (!defined $host->{hostname} or
> $host->{hostname} eq "-")
> 90 ? $host->{ip} : $host->{hostname};
>
> From what little I can figure out from the message, it would seem that
> setting('sshcollector') is not being set/defined. What do I need to change
> in the sshcollector section of the deployment.yml file to get this to work?
>
> Thanks,
> Alton
>
> --
> Alton Pouncey, II | Networks Specialist
> University of Arkansas at Little Rock | Information Technology Services
> 501.916.3010 | arpoun...@ualr.edu | ualr.edu
>
--
Alton Pouncey, II | Networks Specialist
University of Arkansas at Little Rock | Information Technology Services
501.916.3010 | arpoun...@ualr.edu | ualr.edu
--- End Message ---
--- Begin Message ---
Hi Alton,
Rather than attempt to unpick this installation issue - would it be
possible for you to stop the two daemons, remove /home/netdisco and
start again?
You only need to keep a copy of the config file, and you don't need to
touch the database during the exercise. Follow the instructions at
https://metacpan.org/pod/App::Netdisco
Also, for the avoidance of doubt, there is no need to ever run any part
of Netdisco with root privileges.
regards,
oliver,
On 2016-07-20 16:55, Alton Pouncey wrote:
Oliver,
I have copied the netdisco-sshcollector script to the netdisco user's
home directory (/home/netdisco). I renamed the
/usr/local/bin/netdisco-sshcollecor file to
/usr/local/bin/original.netdisco-sshcollector to move it out of the
way.
I have deleted the /root/environments/deployment.yml file.
The only other places that a deployment.tml file exists now is in the
perl5 directories that it was installed in by the CPAN install.
When I run "./netedisco-sshcollector" as the netdisco user now, I
still get
this message:
Can't use an undefined value as an ARRAY reference at
./netdisco-sshcollector line 83.
Do I need to delete the deployment.yml files in the perl directories
that the
CPAN installation put them in.
Thanks,
Alton
-----------------------------------------------------------------------
Hi Alton,
This error message, together with the netdisco-sshcollector command
seeming to live in /usr/local/bin rather than /home/netdisco makes me
think that the command has not seen the configuration file, or you
have
two copies of the configuration file.
Normally, and according to our standard install procedure, netdisco is
installed to /home/netdisco. If your install is elsewhere then the
person who set that up hopefully knows which config file is used and
where it's saved.
I hope this helps point you in the right direction.
regards,
oliver.
On 2016-07-15 19:37, Alton Pouncey wrote:
All,
I am attempting to run netdisco-sshcollector as part of our new
Netdisco 2 installation.
I have setup the 'sshcollector' section of the deployment.yml file
as
follows:
sshcollector:
- ip: '111.222.333.444'
user: xxxxxxxx
password: yyyyyyyy
enable_password: zzzzzzzz
platform: IOS
The device I am trying to connect to is an ASA so, in reading the
instructions, it seems I need the enable_password.
When I run /usr/local/bin/netdisco-sshcollector, I get the following
error:
Can't use an undefined value as an ARRAY reference at
/usr/local/bin/netdisco-sshcollector line 83.
That part of the netdisco-sshcollector script is this:
82 sub main {
83 my @input = @{ setting('sshcollector') };
84
85 my @mce_result = mce_loop {
86 my ($mce, $chunk_ref, $chunk_id) = @_;
87 my $host = $chunk_ref->[0];
88
89 my $hostlabel = (!defined
$host->{hostname} or $host->{hostname} eq "-")
90 ? $host->{ip} :
$host->{hostname};
From what little I can figure out from the message, it would seem
that setting('sshcollector') is not being set/defined. What do I
need to change in the sshcollector section of the deployment.yml
file
to get this to work?
Thanks,
Alton
--
Alton Pouncey, II | Networks Specialist
University of Arkansas at Little Rock | Information Technology
Services
501.916.3010 | arpouncey@... | ualr.edu [2]
On Fri, Jul 15, 2016 at 1:37 PM, Alton Pouncey <arpoun...@ualr.edu>
wrote:
All,
I am attempting to run netdisco-sshcollector as part of our new
Netdisco 2 installation.
I have setup the 'sshcollector' section of the deployment.yml file
as follows:
sshcollector:
- ip: '111.222.333.444'
user: xxxxxxxx
password: yyyyyyyy
enable_password: zzzzzzzz
platform: IOS
The device I am trying to connect to is an ASA so, in reading the
instructions, it seems I need the enable_password.
When I run /usr/local/bin/netdisco-sshcollector, I get the following
error:
Can't use an undefined value as an ARRAY reference at
/usr/local/bin/netdisco-sshcollector line 83.
That part of the netdisco-sshcollector script is this:
82 sub main {
83 my @input = @{ setting('sshcollector') };
84
85 my @mce_result = mce_loop {
86 my ($mce, $chunk_ref, $chunk_id) = @_;
87 my $host = $chunk_ref->[0];
88
89 my $hostlabel = (!defined
$host->{hostname} or $host->{hostname} eq "-")
90 ? $host->{ip} :
$host->{hostname};
From what little I can figure out from the message, it would seem
that setting('sshcollector') is not being set/defined. What do I
need to change in the sshcollector section of the deployment.yml
file to get this to work?
Thanks,
Alton
--
Alton Pouncey, II | Networks Specialist
University of Arkansas at Little Rock | Information Technology
Services
501.916.3010 [1] | arpoun...@ualr.edu | ualr.edu [2]
--
Alton Pouncey, II | Networks Specialist
University of Arkansas at Little Rock | Information Technology
Services
501.916.3010 | arpoun...@ualr.edu | ualr.edu [2]
Links:
------
[1] tel:501.916.3010
[2] http://ualr.edu
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and
traffic
patterns at an interface-level. Reveals which users, apps, and
protocols are
consuming the most bandwidth. Provides multi-vendor support for
NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users