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: Issues installing ND2 on CentOS 6 (Nikolaos Milas)
2. Re: RPMs for RHEL/CentOS 6 (Patrick Flaherty)
3. Re: Issues installing ND2 on CentOS 6 (Alan Buxey)
4. Re: Issues installing ND2 on CentOS 6 (Nikolaos Milas)
5. Re: Issues installing ND2 on CentOS 6 (Nikolaos Milas)
6. Re: Issues installing ND2 on CentOS 6 (Daniel Bird)
--- Begin Message ---
On 7/11/2013 7:58 μμ, Nikolaos Milas wrote:
I also installed (successfully) Net::SNMP from CPAN...
In fact, doc states: "DO NOT INSTALL SNMP:: or Net::SNMP from CPAN!" (I
should have seen it earlier.)
So, I guess I must find a way to uninstall Net:SNMP installed from CPAN.
How do I do that???
(I still have to find a way to install SNMP::Info.)
Nick
--- End Message ---
--- Begin Message ---
On Thu, Nov 7, 2013 at 6:50 AM, Nikolaos Milas <[email protected]> wrote:
> On 1/11/2013 5:26 μμ, Walter Gould wrote:
>
> > I am the one that had been maintaining the netdisco 1.x RPM's.
> > However, with work and family constraints, I don't have enough time to
> > continue maintaining them. I apologize for that. I welcome anyone that
> > feels they have the time and desire to take over where I left off.
>
> Hmm, pitty. I would hope that time investment to keep these packages up
> to date wouldn't be that terrible, but only you can tell.
>
> >
> > Also, I would highly suggest looking at ND2 as a possible alternative.
> > Oliver & Co. has done a great job developing it. In the past few
> > months, it has really come a long way. In fact, we are about to deploy
> > a ND2 server here on our campus. The great thing about ND2 is that it
> > is totally installed using CPAN (upgrades too)!!
>
> Unfortunately, my experience in installing apps via CPAN is
> disappointing... I would tend to think that installing via CPAN is more
> of a drawback than an advantage. Not only it makes OS administration
> more difficult, it usually does not complete any installation correctly.
> At least this is my experience with CentOS 5/6.
>
> In any case, as I do want to use ND2 and participate in its development,
> I am trying to; more details in a separate thread.
>
> If you find the time, I would appreciate your effort to update the
> src.rpm at least for the 1.3.2 version, as we will continue to use v1.x.
> (in parallel to ND2, when we manage to have a working installation) and
> I would welcome the opportunity to upgrade.
>
> I am available and willing to help in any way I can (test, build RPMs
> etc.) if you decide to update the src.rpm (and fix it to work correctly
> for upgrades: https://bugzilla.redhat.com/show_bug.cgi?id=773199)
Go find the src rpm for netdisco (
http://dl.fedoraproject.org/pub/epel/5/SRPMS/netdisco-1.1-1.el5.src.rpm),
grab the new tarball for netdisco, hack the spec (look for the version
variable), and run rpmbuild, it may "just work". I do it all the time for
other applications that don't have new rpms. There's also cpan2rpm that has
worked really well in my experience if you want to go with ND2. Setup a
build vm, and try that, then you have binaries you can install everywhere
(bonus points for setting up your own repo for rpms you build yourself,
extra bonus points if you do it in a spacewalk channel, extra extra bonus
points if you write up any thing you had to tweak and send it to the
mailing list)
Walter, thank you for all your awesome work with those RPMs, they made my
life a lot easier rebuilding a server one weekend.
Best,
Patrick
--- End Message ---
--- Begin Message ---
What about installing the version via package manager that comes with your OS?
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
--- End Message ---
--- Begin Message ---
On 7/11/2013 8:45 μμ, Nikolaos Milas wrote:
So, I guess I must find a way to uninstall Net:SNMP installed from CPAN.
How do I do that???
After some googling, I used this script:
https://metacpan.org/pod/ExtUtils::Packlist#EXAMPLE and it seems it worked:
netdisco$ pwd
/home/netdisco/perl5
netdisco$ ./modrm
...
Found module Net::SNMP Version
Do you want to delete Net::SNMP? [n] y
rm ./lib/perl5/x86_64-linux-thread-multi/auto/Net/SNMP/.packlist
...
Now, installing SNMP::Info was easier than I thought. I simply used:
http://rpm.pbone.net/index.php3/stat/26/dist/74/size/262307/name/perl-SNMP-Info-2.09-1.el6.src.rpm
and the source code from:
http://sourceforge.net/projects/snmp-info/files/snmp-info/3.08/SNMP-Info-3.08.tar.gz/download
and I created an RPM (in the usual way) without problems. I only needed
net-snmp-perl RPM (as a dependency) to build the package (installed via
yum from the updates repo).
I installed the produced package:
yum localinstall perl-SNMP-Info-3.08-1.el6.noarch.rpm
and finally ND2 installation completed successfully:
Successfully installed App-Netdisco-2.019003
Installing
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/.meta/App-Netdisco-2.019003/install.json
Installing
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi/.meta/App-Netdisco-2.019003/MYMETA.json
1 distribution installed
Stay tuned for what's next!
All the best,
Nick
--- End Message ---
--- Begin Message ---
On 7/11/2013 10:12 μμ, Nikolaos Milas wrote:
Stay tuned for what's next!
Now, I am trying to bootstrap, but I can't connect to the database:
============================================================================================================
$ ~/bin/netdisco-deploy
...
Would you like to deploy or upgrade your database schema? [y/N]: y
DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently
unversioned. Please call upgrade on your schema to sync the DB. at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 43
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI
connect('dbname=netdisco;host=localhost','netdisco',...) failed: FATAL:
Ident authentication failed for user "netdisco" at
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1395. at
/home/netdisco/perl5/bin/netdisco-db-deploy line 63
DB schema update complete.
DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently
unversioned. Please call upgrade on your schema to sync the DB. at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 43
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI
connect('dbname=netdisco;host=localhost','netdisco',...) failed: FATAL:
Ident authentication failed for user "netdisco" at
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1395. at
/home/netdisco/bin/netdisco-deploy line 100
============================================================================================================
I even try:
# psql -h localhost -d netdisco -U netdisco -W
Password for user netdisco:
psql: FATAL: Ident authentication failed for user "netdisco"
I also tried:
-----------------------------------------
# su postgres
bash-4.1$ psql
could not change directory to "/root"
psql (8.4.18)
Type "help" for help.
postgres=# ALTER USER netdisco WITH PASSWORD 'mypass';
ALTER ROLE
postgres=# \q
bash-4.1$ exit
exit
-----------------------------------------
Even so, I can't connect. I know little about pgsql. Can anyone shed
some light?
Thanks,
Nick
-------------------------
For completeness sake, I list here my initial attempts to run
netdisco-deploy, the problems that occurred and the actions taken:
====================================================================
netdisco$ ~/bin/netdisco-deploy
Can't locate Term/UI.pm in @INC (@INC contains:
/home/netdisco/perl5/lib/perl5/auto/share/dist/App-Netdisco/lib
/home/netdisco/perl5/lib /home/netdisco/perl5/bin/lib
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi
/home/netdisco/perl5/lib/perl5 /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
/home/netdisco/bin/netdisco-deploy line 42.
BEGIN failed--compilation aborted at /home/netdisco/bin/netdisco-deploy
line 42.
====================================================================
I had to install (as root):
Installing:
perl-Term-UI x86_64 0.20-131.el6_4 updates 38 k
Installing for dependencies:
perl-Locale-Maketext-Simple x86_64 1:0.18-131.el6_4
updates 30 k
perl-Log-Message x86_64 1:0.02-131.el6_4
updates 45 k
perl-Log-Message-Simple x86_64 0.04-131.el6_4
updates 27 k
perl-Module-Load x86_64 1:0.16-131.el6_4
updates 27 k
perl-Params-Check x86_64 1:0.26-131.el6_4
updates 34 k
and then:
====================================================================
netdisco$ ~/bin/netdisco-deploy
Can't locate Archive/Extract.pm in @INC (@INC contains:
/home/netdisco/perl5/lib/perl5/auto/share/dist/App-Netdisco/lib
/home/netdisco/perl5/lib /home/netdisco/perl5/bin/lib
/home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi
/home/netdisco/perl5/lib/perl5 /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
/home/netdisco/bin/netdisco-deploy line 45.
BEGIN failed--compilation aborted at /home/netdisco/bin/netdisco-deploy
line 45.
====================================================================
I had to install (as root):
Installing:
perl-Archive-Extract x86_64 1:0.38-131.el6_4
updates 39 k
Installing for dependencies:
perl-IPC-Cmd x86_64 1:0.56-131.el6_4 updates 45 k
perl-Module-Load-Conditional x86_64 0.30-131.el6_4
updates 33 k
Shouldn't all the above packages have been installed during installation?
Thanks,
Nick
--- End Message ---
--- Begin Message ---
On 07/11/2013 21:31, Nikolaos Milas wrote:
> Would you like to deploy or upgrade your database schema? [y/N]: y
> DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently
> unversioned. Please call upgrade on your schema to sync the DB. at
> /home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 43
> DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI
> connect('dbname=netdisco;host=localhost','netdisco',...) failed: FATAL:
> Ident authentication failed for user "netdisco" at
> /home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1395. at
> /home/netdisco/perl5/bin/netdisco-db-deploy line 63
> DB schema update complete.
Google is your friend...
http://goo.gl/AFN5vU ->
http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/
D
--- End Message ---
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users