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. [Netdot - Feature #1782] Stop SNMP-update from overwriting
manually entered data (serial numbers) ([email protected])
2. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.4-129-g4a0f19b ([email protected])
3. [SCM] Netdot branch master updated. netdot-1.0.4-129-g4a0f19b
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Wed, 27 Nov 2013 12:11:40 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1782] Stop SNMP-update from
overwriting manually entered data (serial numbers)
To: [email protected], [email protected],
[email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1782 has been updated by Eric Snipe.
Works like a charm. Thanks so much for this and all your work on this great
tool.
-Eric
----------------------------------------
Feature #1782: Stop SNMP-update from overwriting manually entered data (serial
numbers)
https://osl.uoregon.edu/redmine/issues/1782#change-3135
Author: Eric Snipe
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.5
Resolution: fixed
I'm unable to pull the SN from certain devices via SNMP (Cisco PIX, Avocent
Console Server, etc.) all other asset data is imported, but for some reason no
SN. However, when I manually enter the SN for these devices it gets erased
every time there is an SMNP-update. Would it be possible to prevent this? Maybe
stop SNMP updated from overwriting asset data with blank values?
--
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: 2
Date: Wed, 27 Nov 2013 13:31:28 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.4-129-g4a0f19b
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 4a0f19b8253c409d8849ef6e6a3edc35a7a58850 (commit)
from 5083baa6141fa04b937ee2f07a98fffc2747f76e (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 4a0f19b8253c409d8849ef6e6a3edc35a7a58850
Author: Carlos Vicente <[email protected]>
Date: Wed Nov 27 14:12:55 2013 -0500
Fix for #1782 (Stop SNMP-update from overwriting manually entered data
(serial numbers))
diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index 395dc1b..5db2d91 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -2978,10 +2978,14 @@ sub info_update {
##############################################################
# Asset
my %asset_args = (
- serial_number => $info->{serial_number},
physaddr => $self->_assign_base_mac($info) || undef,
reserved_for => "", # needs to be cleared when device gets installed
);
+
+ # Make sure S/N contains something
+ if (defined $info->{serial_number} && $info->{serial_number} =~ /\S+/ ){
+ $asset_args{serial_number} = $info->{serial_number};
+ }
# Search for an asset based on either serial number or base MAC
# If two different assets are found, we will have to pick one and
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Model/Device.pm | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
Message: 3
Date: Wed, 27 Nov 2013 13:31:54 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch master updated.
netdot-1.0.4-129-g4a0f19b
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 4a0f19b8253c409d8849ef6e6a3edc35a7a58850 (commit)
via 5083baa6141fa04b937ee2f07a98fffc2747f76e (commit)
via 57ebef08e9e60b02ac66ee8699c88f84d8f56f43 (commit)
from 9ad91a5690ed85f9ee44858f8aa028aae232d091 (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:
export/cacti/netdot_to_cacti.php | 35 +++++++++++++++++++++++------------
lib/Netdot/Model/Device.pm | 6 +++++-
2 files changed, 28 insertions(+), 13 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 80, Issue 14
********************************************