Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
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 Netdot-devel digest..."
Today's Topics:
1. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.5-rc1-5-g41a9d2b ([email protected])
2. [SCM] Netdot branch master updated.
netdot-1.0.5-rc1-5-g41a9d2b ([email protected])
3. [Netdot - Bug #1784] (New) Whitespaces not removed from
device name in updatedevices.pl ([email protected])
4. [Netdot - Support #1785] (New) Root password
([email protected])
5. [Netdot - Support #1785] Root password ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Tue, 21 Jan 2014 14:14:53 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.5-rc1-5-g41a9d2b
To: [email protected]
Message-ID: <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".
The branch, netdot-1.0 has been updated
via 41a9d2bdc11b84d970c105c5afbcd313fef0019f (commit)
from 1966d21ed0bece914741fb2f7c987bf19b565bc4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 41a9d2bdc11b84d970c105c5afbcd313fef0019f
Author: Carlos Vicente <[email protected]>
Date: Tue Jan 21 17:14:37 2014 -0500
Remove deprecated method from Exporter.pm. Update Sysmon exporter to
reflect change
diff --git a/lib/Netdot/Exporter.pm b/lib/Netdot/Exporter.pm
index bc7491e..4233715 100644
--- a/lib/Netdot/Exporter.pm
+++ b/lib/Netdot/Exporter.pm
@@ -165,43 +165,6 @@ sub get_device_info {
return $self->cache('exporter_device_info', \%device_info);
}
-########################################################################
-
-=head2 get_device_main_ip
-
- Arguments:
- device id
- Returns:
- IP address string
- Examples:
- my $ip = Netdot::Exporter->get_device_main_ip($devid);
-
-=cut
-
-sub get_device_main_ip {
- my ($self, $devid) = @_;
-
- $self->throw_fatal("Missing required arguments")
- unless $devid;
-
- my $device_info = $self->get_device_info();
- return unless exists $device_info->{$devid};
-
- my $ip;
- if ( $device_info->{$devid}->{ipaddr} &&
$device_info->{$devid}->{ipversion} ){
- $ip = Ipblock->int2ip($device_info->{$devid}->{ipaddr},
$device_info->{$devid}->{ipversion});
- }elsif ( my @ips =
Netdot->dns->resolve_name($device_info->{$devid}->{hostname}, {v4_only=>1}) ){
- # Not sure how management tools will handle v6 addresses, so let's do
v4 only for now
- $ip = $ips[0];
- }elsif ( !$ip ){
- # Grab the first IP we can get
- my $device = Device->retrieve($devid);
- if ( my $ips = $device->get_ips() ){
- $ip = $ips->[0]->address if $ips->[0];
- }
- }
- return $ip;
-}
########################################################################
diff --git a/lib/Netdot/Exporter/Sysmon.pm b/lib/Netdot/Exporter/Sysmon.pm
index b2625de..ce76637 100644
--- a/lib/Netdot/Exporter/Sysmon.pm
+++ b/lib/Netdot/Exporter/Sysmon.pm
@@ -92,15 +92,15 @@ sub generate_configs {
}else{
$logger->warn("$hostname does not resolve, or duplicate. Using
IP.");
# Determine IP
- my $ip = $self->get_device_main_ip($devid);
- unless ( $ip ){
+ my $devh = $device_info->{$devid};
+ unless $devh->{target_addr} && $devh->{target_version}{
$logger->warn("Cannot determine IP address for $hostname.
Skipping");
delete $hosts{$devid};
next;
}
+ my $ip = Ipblock->int2ip($devh->{target_addr},
$devh->{target_version});
$hosts{$devid}{ip} = $ip;
}
-
foreach my $parent_id ( $self->get_monitored_ancestors($devid,
$device_parents) ){
my $hostname = $device_info->{$parent_id}->{hostname};
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Exporter.pm | 37 -------------------------------------
lib/Netdot/Exporter/Sysmon.pm | 6 +++---
2 files changed, 3 insertions(+), 40 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 2
Date: Tue, 21 Jan 2014 14:15:27 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch master updated.
netdot-1.0.5-rc1-5-g41a9d2b
To: [email protected]
Message-ID: <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".
The branch, master has been updated
via 41a9d2bdc11b84d970c105c5afbcd313fef0019f (commit)
via 1966d21ed0bece914741fb2f7c987bf19b565bc4 (commit)
via 40dd6340654202813926b34f2f830478cc36e503 (commit)
from ea497c63eb9208e2adaf54f2fe250872d79fd130 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Exporter.pm | 37 -------------------------------------
lib/Netdot/Exporter/Sysmon.pm | 6 +++---
upgrade/updatedb | 5 +++--
3 files changed, 6 insertions(+), 42 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 3
Date: Wed, 22 Jan 2014 02:33:05 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1784] (New) Whitespaces not
removed from device name in updatedevices.pl
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1784 has been reported by Igor Belikov.
----------------------------------------
Bug #1784: Whitespaces not removed from device name in updatedevices.pl
https://osl.uoregon.edu/redmine/issues/1784
Author: Igor Belikov
Status: New
Priority: Normal
Assignee:
Category: Netdot
Target version: 1.0.5
Resolution:
Error in file lib/Netdot/Model/RR.pm
Beginning from line 708:
Whitespaces and trailing dots are removed from variable $argv->{name}, but
checking for valid characters and length performed on variable $name (whith
possible whitespaces and dots).
Attached file RR.pm.patch corrects this error and adds removal commas from
device name.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 4
Date: Wed, 22 Jan 2014 02:50:50 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Support #1785] (New) Root password
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1785 has been reported by Kevin Karas.
----------------------------------------
Support #1785: Root password
https://osl.uoregon.edu/redmine/issues/1785
Author: Kevin Karas
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:
Hello,
what is the Password for the "root" user? I only can log in with netdot/netdot,
but this user has no root rights. I tried "netdot" as the Password but that
didnt work.
Im using the .vmdk in VMWare Appliance
Kevin Karas
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 5
Date: Wed, 22 Jan 2014 06:24:12 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Support #1785] Root password
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1785 has been updated by Carlos Vicente.
Did you try "sudo -s" ?
Kevin Karas wrote:
> Hello,
>
> what is the Password for the "root" user? I only can log in with
> netdot/netdot, but this user has no root rights. I tried "netdot" as the
> Password but that didnt work.
>
> Im using the .vmdk in VMWare Appliance
>
>
> Kevin Karas
----------------------------------------
Support #1785: Root password
https://osl.uoregon.edu/redmine/issues/1785#change-3146
Author: Kevin Karas
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:
Hello,
what is the Password for the "root" user? I only can log in with netdot/netdot,
but this user has no root rights. I tried "netdot" as the Password but that
didnt work.
Im using the .vmdk in VMWare Appliance
Kevin Karas
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 82, Issue 3
*******************************************