gitignore updated; some missing files added
authorAlex Kirhenshtein <alk@netxms.org>
Wed, 3 Apr 2013 14:28:15 +0000 (14:28 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Wed, 3 Apr 2013 14:28:15 +0000 (14:28 +0000)
.gitattributes
doc/logo.png [new file with mode: 0644]
include/doxygen.h [new file with mode: 0644]
src/client/nxshell/samples/create_nodes_from_hosts.py [new file with mode: 0644]
src/server/core/.clang_complete [new file with mode: 0644]

index 365d4be..7709f20 100644 (file)
@@ -346,6 +346,7 @@ doc/internal/netxms_architecture.png -text
 doc/internal/netxms_architecture.svg -text
 doc/internal/report_definition.docx -text
 doc/internal/sleak_debug.options -text
+doc/logo.png -text svneol=unset#unset
 doc/manuals/client_library.doc -text
 doc/manuals/netxms_install_guide.odt -text
 doc/manuals/netxms_solution_guide.doc -text
@@ -2287,6 +2288,7 @@ src/libtre/xmalloc.h -text
 src/nxinstall/nxinstall.vcproj -text
 src/nxlptest/nxlptest.vcproj -text
 src/nxscript/nxscript.vcproj -text
+src/server/core/.clang_complete -text
 src/server/core/cdp.cpp -text
 src/server/core/components.cpp -text
 src/server/core/fdb.cpp -text
diff --git a/doc/logo.png b/doc/logo.png
new file mode 100644 (file)
index 0000000..37448cb
Binary files /dev/null and b/doc/logo.png differ
diff --git a/include/doxygen.h b/include/doxygen.h
new file mode 100644 (file)
index 0000000..05788ba
--- /dev/null
@@ -0,0 +1,9 @@
+/**
+ * @mainpage
+ * Text for main page
+ *
+ * \defgroup server Core Server
+ * \defgroup agent Core Agent
+ * \defgroup SNMP SNMP Client Library
+ * \defgroup NXSL NetXMS Scripting Language Library
+ */
diff --git a/src/client/nxshell/samples/create_nodes_from_hosts.py b/src/client/nxshell/samples/create_nodes_from_hosts.py
new file mode 100644 (file)
index 0000000..6c28228
--- /dev/null
@@ -0,0 +1,25 @@
+import re
+
+parentId = objects.GenericObject.SERVICEROOT # Infrastructure Services root
+#flags = NXCObjectCreationData.CF_DISABLE_ICMP | \
+#        NXCObjectCreationData.CF_DISABLE_NXCP | \
+#        NXCObjectCreationData.CF_DISABLE_SNMP
+flags = 0
+
+for line in open("/etc/hosts").readlines():
+    line = line.strip()
+    if line.startswith('#'):
+        continue
+    data = re.split(r'\s+', line)
+    if len(data) < 2:
+        continue
+    (ip, name) = data[:2]
+
+    cd = NXCObjectCreationData(objects.GenericObject.OBJECT_NODE, name, parentId);
+    cd.setCreationFlags(flags);
+    cd.setPrimaryName(ip)
+    try:
+        nodeId = session.createObject(cd)
+        print '"%s" created, id=%d' % (name, nodeId)
+    except NXCException:
+        print "Can't create \"%s\" - %s" % (name, ip)
diff --git a/src/server/core/.clang_complete b/src/server/core/.clang_complete
new file mode 100644 (file)
index 0000000..7cf3700
--- /dev/null
@@ -0,0 +1,4 @@
+-I../include
+-I../../../include
+-I../../..
+-DPREFIX=/usr/local