Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support (Russian)
  3. Комманда в ExternalParameter

Комманда в ExternalParameter

Scheduled Pinned Locked Moved Support (Russian)
3 Posts 2 Posters 20.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    V
    VladimirV
    wrote on last edited by
    #1

    Комманда в ExternalParameter выполняется не полностью.
    Сервер и агент v2.0.5
    Лог агента:

    [26-Aug-2016 14:36:57.729] [DEBUG] [session:0] Received message CMD_GET_PARAMETER
    [26-Aug-2016 14:36:57.729] [DEBUG] [session:0] Requesting parameter "RAIDControllerStatus"
    [26-Aug-2016 14:36:57.730] [DEBUG] H_ExternalParameter called for "RAIDControllerStatus" "E"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /C "Optimal""
    [26-Aug-2016 14:36:57.730] [DEBUG] RunExternal called for "RAIDControllerStatus" "E"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /C "Optimal""
    [26-Aug-2016 14:36:57.730] [DEBUG] RunExternal: command line is ""C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /C "Optimal""
    [26-Aug-2016 14:36:58.624] [DEBUG] [session:0] GetParameterValue(): result is 0 (SUCCESS)
    [26-Aug-2016 14:36:58.624] [DEBUG] [session:0] Sending message CMD_REQUEST_COMPLETED (size 88)
    [26-Aug-2016 14:36:58.624] [DEBUG] [session:0] Outgoing message dump:
      ** 001D0008000000580000005E00000002
      ** 0000001C000000000000000000000000
      ** 0000001501000000000000280043006F
      ** 006E00740072006F006C006C00650072
      ** 007300200066006F0075006E0064003A
      ** 0020003100000000
      ** code=0x001D (CMD_REQUEST_COMPLETED) flags=0x0008 id=94 size=88 numFields=2
      ** [    28] INT32    0
      ** [    21] STRING   "Controllers found: 1"
    

    Вывод комманды в консоли:

    C:\>"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /c "Optimal"
    1
    

    Вывод первой комманды:

    C:\>"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad
    Controllers found: 1
    ----------------------------------------------------------------------
    Controller information
    ----------------------------------------------------------------------
       Controller Status                        : Optimal
       Channel description                      : SAS/SATA
       Controller Model                         : Adaptec 4800SAS
       Controller Serial Number                 : 7C2710E1D59
       Physical Slot                            : Unknown
       Temperature                              : 40 C/ 104 F (Normal)
       Installed memory                         : 256 MB
       Copyback                                 : Disabled
       Background consistency check             : Disabled
       Automatic Failover                       : Enabled
       Defunct disk drive count                 : 0
       Logical devices/Failed/Degraded          : 4/0/0
       --------------------------------------------------------
       Controller Version Information
       --------------------------------------------------------
       BIOS                                     : 5.2-0 (11564)
       Firmware                                 : 5.2-0 (11564)
       Driver                                   : 5.2-0 (16119)
       Boot Flash                               : 5.2-0 (11564)
       --------------------------------------------------------
       Controller Battery Information
       --------------------------------------------------------
       Status                                   : Not Installed
    
    
    Command completed successfully.
    

    Часть конфиг агента:

    DebugLevel = 9
    ExecTimeout = 10000
    ExternalParameter = RAIDControllerStatus:"C:\Program Files\Adaptec\Adaptec Storage Manager\arcconf.exe" getconfig 1 ad | find /C "Optimal"
    
    1 Reply Last reply
    0
    • K
      K
      kozlov_ao
      wrote on last edited by
      #2

      Насколько я помню, arcconf долго отрабатывает. Если это так, лучше использовать ExternalParametersProvider.
      Увеличением тайм-аута тут уже не обойтись.

      1 Reply Last reply
      0
      • V
        V
        VladimirV
        wrote on last edited by
        #3

        Субьектвно, он отрабатывает не более 2 секунд.
        Через ExternalParametersProvider работает, придется использовать.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups