Added aditional debug options to console
authorzev <zev@netxms.org>
Wed, 11 Oct 2017 14:11:44 +0000 (17:11 +0300)
committerzev <zev@netxms.org>
Wed, 11 Oct 2017 14:16:32 +0000 (17:16 +0300)
src/server/core/console.cpp

index 492effe..76b095a 100644 (file)
@@ -645,6 +645,10 @@ int ProcessConsoleCommand(const TCHAR *pszCmdLine, CONSOLE_CTX pCtx)
                ConsoleWrite(pCtx, _T("ERROR: Invalid index modifier\n\n"));
             }
          }
                ConsoleWrite(pCtx, _T("ERROR: Invalid index modifier\n\n"));
             }
          }
+         else if (IsCommand(_T("NETMAP"), szBuffer, 4))
+         {
+            DumpIndex(pCtx, &g_idxNetMapById);
+         }
          else if (IsCommand(_T("NODEADDR"), szBuffer, 5))
          {
             pArg = ExtractWord(pArg, szBuffer);
          else if (IsCommand(_T("NODEADDR"), szBuffer, 5))
          {
             pArg = ExtractWord(pArg, szBuffer);
@@ -674,7 +678,11 @@ int ProcessConsoleCommand(const TCHAR *pszCmdLine, CONSOLE_CTX pCtx)
          {
             DumpIndex(pCtx, &g_idxNodeById);
          }
          {
             DumpIndex(pCtx, &g_idxNodeById);
          }
-         else if (IsCommand(_T("SUBNET"), szBuffer, 1))
+         else if (IsCommand(_T("SENSOR"), szBuffer, 2))
+         {
+            DumpIndex(pCtx, &g_idxSensorById);
+         }
+         else if (IsCommand(_T("SUBNET"), szBuffer, 2))
          {
             pArg = ExtractWord(pArg, szBuffer);
             if (IsCommand(_T("ZONE"), szBuffer, 1))
          {
             pArg = ExtractWord(pArg, szBuffer);
             if (IsCommand(_T("ZONE"), szBuffer, 1))