4 Replies Latest reply on Nov 18, 2009 4:08 AM by auslaender6

    Get Outlet Configuration from APC Power RACK PDU

      Hi,

      I tried to get the Outlet Configuration from our PDU's.

      Login is successful and menu navigation seems to be ok, but output is not as expected:

      1


      ------- Device Manager --------------------------------------------------------

           1- Bank Management
           2- Outlet Management
           3- Power Supply Status

           <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
      >
      2


      ------- Outlet Management -----------------------------------------------------

           1- Outlet Control/Configuration
           2- Outlet Restriction

           <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
      >

      Debug is:

      <NEWSESSION Kiwi CatTools 3.4.0 21.10.2009 14:11:05>
      <PROTOCOL=Telnet>
      <DEVICE TYPE=APC.AOS>
      <ACTIVITY TYPE=Device.CLI.Send commands>
      <ACTIVITY SCRIPT=C:\Program Files\CatTools3\Scripts\Client.Device.CLI.Send commands.txt>
      <USERS NAME FOR DEVICE=PW50MGMT01>
      <C OK 14:11:05><R-14:11:05>[10][13]User Name : <W-14:11:05>apc[13]<R-14:11:05>apc[10][13]Password  : <W-14:11:05>apc[13]<R-14:11:05>***<R-14:11:05>[10][10][10][13]American Power Conversion               Network Management Card AOS      v3.7.0[13][10](c) Copyright 2008 All Rights Reserved  Rack PDU APP                     v3.7.0[13][10]-------------------------------------------------------------------------------[13][10]Name      : PW50MGMT01                              Date : 10/21/2009[13][10]Contact   : XXXXXX                                   Time : 13:11:05[10][13]Location  : XXXXXXXXXXX 14005556         User : Administrator[10][13]Up Time   : 253 Days 1 Hour 46 Minutes                Stat : P+ N+ A+[13][10][13][10]Switched Rack PDU: Communication Established[10][10][13]<R-14:11:05>------- Control Console -------------------------------------------------------[13][10][13][10]     1- Device Manager[13][10]     2- Network[13][10]     3- System[13][10]     4- Logout[13][10][13][10]     <ESC>- Main Menu, <ENTER>- Refresh, <CTRL-L>- Event Log[13][10]> <W-14:11:07>[13]<R-14:11:07>[10][10][13]------- Control Console -------------------------------------------------------[13][10][13][10]     1- Device Manager[13][10]     2- Network[13][10]     3- System[13][10]     4- Logout[13][10][13][10]     <ESC>- Main Menu, <ENTER>- Refresh, <CTRL-L>- Event Log[13][10]> <W-14:11:11>1<W-14:11:11>[13]<R-14:11:11>1[10][10][13]<R-14:11:11>------- Device Manager --------------------------------------------------------[13][10][13][10]     1- Bank Management[13][10]     2- Outlet Management[13][10]     3- Power Supply Status[13][10][13][10]     <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log[13][10]> <W-14:11:14>2<W-14:11:14>[13]<R-14:11:14>2<R-14:11:14>[10][10][13]------- Outlet Management -----------------------------------------------------[13][10][13][10]     1- Outlet Control/Configuration[13][10]     2- Outlet Restriction[13][10][13][10]     <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log[13][10]> <W-14:11:17>1<R-14:11:17>1<W-14:11:17>[13]<R-14:11:17>[10][10][13]<R-14:11:17>------- Outlet Control/Configuration ------------------------------------------[13][10][13][10]<R-14:11:17>     1- ASA50                    ON[13][10]     2- Outlet 2                 ON[13][10]     3- Outlet 3                 ON[13][10]<R-14:11:17>     4- Outlet 4                 ON[13][10]<R-14:11:17>     5- Outlet 5                 ON[13][10]     6- FW0WAF01                 ON[13][10]     7- Outlet 7                 ON[13][10]     8- Outlet 8                 ON[13][10]     9- Outlet 9                 ON[13][10]    10- Outlet 10                ON[13][10]    11- Outlet 11                ON[13][10]    12- Outlet 12                ON[13][10]    13- Outlet 13                ON[13][10]    14- Outlet 14                ON[13][10]    15- Outlet 15                ON[13][10]    16- Outlet 16                ON[13][10]    17- Outlet 17                ON[13][10]    18- Outlet 18                ON[13][10]    19- Outlet 19                ON[13][10]<R-14:11:17>    20- Outlet 20                ON[13][10]<R-14:11:17>    21- Outlet 21                ON[13][10]<R-14:11:17>    22- Outlet 22                ON[13][10]<R-14:11:17>[13]        Press <ENTER> to continue...<W-14:11:17>[13]<R-14:11:18>[13]                                    [13]    23- Outlet 23                ON[13][10]    24- Outlet 24                ON[13][10]    25- Master Control/Configuration[13][10][13][10]     <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log[13][10]>

       

      Commands used are:

      %ctUM: EchoOff
      %ctUM:PauseTime 02
      1
      %ctUM:PauseTime 02
      2
      %ctUM: EchoOn
      %ctUM:PauseTime 02
      1

      Info Log:

      2009-10-21 14:11:04 3-Info 0 Kiwi CatTools Service Performing activity - Run Now
      2009-10-21 14:11:04 3-Info 0 Kiwi CatTools Service Loading activity: TEST_APC_Ports. Schd: 26
      2009-10-21 14:11:04 4-Debug 0 Kiwi CatTools Service Marshaller - Running script. Device: PW50MGMT01
      2009-10-21 14:11:05 4-Debug 1 PW50MGMT01 Connected to 10.252.11.1
      2009-10-21 14:11:05 4-Debug 1 PW50MGMT01 Login APC AOS: PW50MGMT01
      2009-10-21 14:11:05 4-Debug 1 PW50MGMT01 Beginning Login AAA
      2009-10-21 14:11:05 4-Debug 1 PW50MGMT01 Sending login AAA username
      2009-10-21 14:11:05 4-Debug 1 PW50MGMT01 Sending login AAA password
      2009-10-21 14:11:07 4-Debug 1 PW50MGMT01 DeviceHostnameID: N/A
      2009-10-21 14:11:07 4-Debug 1 PW50MGMT01 Login to PW50MGMT01 was successful
      2009-10-21 14:11:08 4-Debug 1 PW50MGMT01 Device at ------- Control Console ------- menu
      2009-10-21 14:11:08 4-Debug 1 PW50MGMT01 %ctUM: EchoOff processed successfully
      2009-10-21 14:11:09 3-Info 1 PW50MGMT01 Pausing for 2 seconds - %ctUM:PauseTime.
      2009-10-21 14:11:11 4-Debug 1 PW50MGMT01 %ctUM:PauseTime 02 processed successfully
      2009-10-21 14:11:11 4-Debug 1 PW50MGMT01 Waiting for a response to: 1
      2009-10-21 14:11:12 4-Debug 1 PW50MGMT01 Device at ------- Device Manager ------- menu
      2009-10-21 14:11:12 3-Info 1 PW50MGMT01 Pausing for 2 seconds - %ctUM:PauseTime.
      2009-10-21 14:11:14 4-Debug 1 PW50MGMT01 %ctUM:PauseTime 02 processed successfully
      2009-10-21 14:11:14 4-Debug 1 PW50MGMT01 Waiting for a response to: 2
      2009-10-21 14:11:15 4-Debug 1 PW50MGMT01 Device at ------- Outlet Management ------- menu
      2009-10-21 14:11:15 4-Debug 1 PW50MGMT01 %ctUM: EchoOn processed successfully
      2009-10-21 14:11:15 3-Info 1 PW50MGMT01 Pausing for 2 seconds - %ctUM:PauseTime.
      2009-10-21 14:11:17 4-Debug 1 PW50MGMT01 %ctUM:PauseTime 02 processed successfully
      2009-10-21 14:11:17 4-Debug 1 PW50MGMT01 Waiting for an echo of 1 command
      2009-10-21 14:11:17 4-Debug 1 PW50MGMT01 Waiting for a response to: 1
      2009-10-21 14:11:17 4-Debug 1 PW50MGMT01 Stepping past Press <ENTER> to continue...
      2009-10-21 14:11:19 1-Error 1 PW50MGMT01 Client script error: Invalid procedure call or argument: 'InStr' on line: 671
      2009-10-21 14:11:19 3-Info 0 Kiwi CatTools Service All threads have finished. Now processing results...
      2009-10-21 14:11:19 4-Debug 0 Kiwi CatTools Service No report data found. Not sending report via e-mail.
      2009-10-21 14:11:20 4-Debug 0 Kiwi CatTools Service Error notification e-mail was not sent. (Disabled when not in 'Timer' mode)
      2009-10-21 14:11:20 3-Info 0 Kiwi CatTools Service Run Now activity has completed

       

      Any Suggestions? :)

        • Re: Get Outlet Configuration from APC Power RACK PDU
          Wardini

          Hi,

          The issue is occurring because your 'Outlet Control/Configuration' menu is too long and has a 'more prompt' in it, '<R-14:11:17>[13]        Press <ENTER> to continue... '.

          Because of the way the script works this then means when it tries to work out what menu it is at the menu title is no longer in the buffer and so an error is occurring.

          Do you know if there is a command to turn off paging on these device as this may provide the simplest solution?

          Kind regards,

          Wardini

            • Re: Get Outlet Configuration from APC Power RACK PDU

              Hi Wardini,

              no that's not possible :(.

              I tried some other devices and had some luck with Dell.Switch.CLI, but I need some commands to disable output und reenable it again....

              ##########

              1

              ------- Device Manager --------------------------------------------------------

                   1- Bank Management
                   2- Outlet Management
                   3- Power Supply Status

                   <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
              >
              2

              ------- Outlet Management -----------------------------------------------------

                   1- Outlet Control/Configuration
                   2- Outlet Restriction

                   <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
              >
              1

              ------- Outlet Control/Configuration ------------------------------------------

                   1- Outlet 1                    ON
                   2- Outlet 2                 ON
                   3- Outlet 3                 ON
                   4- Outlet 4                 ON
                   5- Outlet 5                 ON
                   6- Outlet 6                ON
                   7- Outlet 7                 ON
                   8- Outlet 8                 ON
                   9- Outlet 9                 ON
                  10- Outlet 10                ON
                  11- Outlet 11                ON
                  12- Outlet 12                ON
                  13- Outlet 13                ON
                  14- Outlet 14                ON
                  15- Outlet 15                ON
                  16- Outlet 16                ON
                  17- Outlet 17                ON
                  18- Outlet 18                ON
                  19- Outlet 19                ON
                  20- Outlet 20                ON
                  21- Outlet 21                ON
                  22- Outlet 22                ON

                      Press <ENTER> to continue...

                                                 
                  23- Outlet 23                ON
                  24- Outlet 24                ON
                  25- Master Control/Configuration

                   <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
              >

              ------- Outlet Control/Configuration ------------------------------------------

                   1- Outlet 1                   ON
                   2- Outlet 2                 ON
                   3- Outlet 3                 ON
                   4- Outlet 4                 ON
                   5- Outlet 5                 ON
                   6- Outlet 6                ON
                   7- Outlet 7                 ON
                   8- Outlet 8                 ON
                   9- Outlet 9                 ON
                  10- Outlet 10                ON
                  11- Outlet 11                ON
                  12- Outlet 12                ON
                  13- Outlet 13                ON
                  14- Outlet 14                ON
                  15- Outlet 15                ON
                  16- Outlet 16                ON
                  17- Outlet 17                ON
                  18- Outlet 18                ON
                  19- Outlet 19                ON

              #######

               

              I didn't want the Menu Output in the device.output.txt only.

               

              Thanks for your help so far!