[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-install
Subject:    Re: [opennms-install] Moving from 1.12.5 to 1.16.03
From:       David S Hustace <david () opennms ! com>
Date:       2015-12-03 6:09:37
Message-ID: 9BDB9CAE-6110-4ED7-85B6-0A46519AA26B () opennms ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/alternative)]


> On Oct 29, 2015, at 3:12 PM, John Hala <john.hala@villanova.edu> wrote:
> 
> I'd like to know if anyone has a procedure to just export the list of nodes and \
> monitors that I already have defined in the existing system and then import them \
> into the new system.

Some variant of this should work...

So, *before* you upgrade:

$ pg_dump --username=opennms --format=c \
--table=nodenxtid --table=node \
--table=assets \
--table=opennmsnxtid --table=ipinterface \
--table=servicenxtid --table=service \
--table=ifservices --table=snmpinterface \
--table=catnxtid --table=categories --table=category_node \
--verbose --file=opennms_nodes.pgsql opennms


$ dropdb --username=opennms opennms
$ createdb --username=opennms opennms

$ sudo /opt/opennms/bin/install -dis

$ pg_restore --user=opennms --dbname=opennms --format=c --verbose opennms_nodes.pgsql


Now, you should be able to uninstall 1.12.5 and reinstall a clean Horizon 16.0.3 \
(note that your version syntax is off a bit) and you'll have your nodes in the DB.


David Hustace
The OpenNMS Group, Inc.


[Attachment #7 (unknown)]

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class=""><br class=""><blockquote type="cite" \
class="">On Oct 29, 2015, at 3:12 PM, John Hala &lt;<a \
href="mailto:john.hala@villanova.edu" class="">john.hala@villanova.edu</a>&gt; \
wrote:<br class=""><br class="">I'd like to know if anyone has a procedure to just \
export the list of nodes and monitors that I already have defined in the existing \
system and then&nbsp;import them into the new system.<br class=""></blockquote><br \
class="">Some variant of this should work...<div class=""><br class=""></div><div \
class="">So, *before* you upgrade:<br class=""><br class=""></div><blockquote \
style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><font \
face="Courier New" style="font-size: 14px;" class="">$ pg_dump --username=opennms \
--format=c \</font></div><div class=""><font face="Courier New" style="font-size: \
14px;" class="">--table=nodenxtid --table=node \</font></div><font face="Courier New" \
style="font-size: 14px;" class="">--table=assets \<br class=""></font><font \
face="Courier New" style="font-size: 14px;" class="">--table=opennmsnxtid \
--table=ipinterface \</font><div class=""><font face="Courier New" style="font-size: \
14px;" class="">--table=servicenxtid --table=service \</font></div><div \
class=""><font face="Courier New" style="font-size: 14px;" \
class="">--table=ifservices --table=snmpinterface \</font></div><div class=""><font \
face="Courier New" style="font-size: 14px;" class="">--table=catnxtid \
--table=categories --table=category_node \</font></div><div class=""><font \
face="Courier New" style="font-size: 14px;" class="">--verbose \
--file=opennms_nodes.pgsql&nbsp;opennms</font></div><div class=""><div class=""><font \
face="Courier New" style="font-size: 14px;" class=""><br \
class=""></font></div></div><div class=""><div class=""><font face="Courier New" \
style="font-size: 14px;" class=""><br class=""></font></div></div><div class=""><div \
class=""><font face="Courier New" style="font-size: 14px;" class="">$ dropdb \
--username=opennms opennms</font></div></div><div class=""><div class=""><font \
face="Courier New" style="font-size: 14px;" class="">$ createdb --username=opennms \
opennms</font></div></div><div class=""><div class=""><font face="Courier New" \
style="font-size: 14px;" class=""><br class=""></font></div></div><div class=""><div \
class=""><font face="Courier New" style="font-size: 14px;" class="">$ sudo \
/opt/opennms/bin/install -dis</font></div></div><div class=""><div class=""><font \
face="Courier New" style="font-size: 14px;" class=""><br \
class=""></font></div></div><div class=""><div class=""><font face="Courier New" \
style="font-size: 14px;" class="">$&nbsp;pg_restore --user=opennms --dbname=opennms \
--format=c --verbose&nbsp;opennms_nodes.pgsql</font></div></div></blockquote><div \
class=""><div class=""><div class=""><br class=""></div><div class=""><br \
class=""></div><div class="">Now, you should be able to uninstall 1.12.5 and \
reinstall a clean Horizon 16.0.3 (note that your version syntax is off a bit) and \
you'll have your nodes in the DB.</div><div class=""><br class=""></div><div \
class=""><br class=""></div><div class="">David Hustace</div><div class="">The \
OpenNMS Group, Inc.</div><div class=""><br class=""></div></div></div></body></html>


["signature.asc" (signature.asc)]

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJWX9yhAAoJEJsqxtS6QvjCKRIP/R4meqpZ7WVKMxaMGaoPwNfs
UzXHA6RWjzId05IBpEZ76wHqKJ49IrcgRSGsHr09oqPDiNv4xATmmMV4WCGJcti3
RnE+7nxvdXosnYJ1uEb+R7ZPHgdtrJoea+EZB54kn8He22rtXnR/OqgSc40oMwZB
PzrhIHs6+zd4vAOJbKHveYvBcET/0gxim9AaHlD78zbWkP2u8y3tFmKz15Iqqmt4
XwnSIrV1XhbswdiCjOKFBGEVB/RWE08vofAM4PsMHtoaGkSGinpdDr4rLzaLeuGY
XxrFQ8paWM4PO1MrNZyUEcMK+6QralxGEw+lbNI34g0N6kli7slCWPjpH7nsv3j9
a2HuPlNRtRL7VDGqKExMQwGaod8GQeyBe4BVmvewZBM3cr3+C7K9dGCKANhqrhCX
KOVnR7VXoZBy69tYk/L1uX4uKpaZoEoc7U8kaZBPkcSLoJg5HVEXBnJSrRvFLqPf
B45+XHsDDTcoWwaoCVCcwNdZRYCLxMBNseajvXdCSn4hGNX2EBy+8thuN1gOmxea
5Rp7V8jGZ1LWooqcPozQcxaS/AVRhmJGUTC4ztn0fFaAmdUwcISq8L56QI8cXmvX
1AOBN3mtM5KMQXia00na4gIWOLbD1Tl2OFfh4YtK8NCGAtMrb+whOQkWkq40nnu/
rMtRMfGaH9EPJ8S+MUHr
=1yhZ
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic