Release Automation

  • 1.  Telnet Session

    Posted Oct 11, 2018 11:48 AM

    HI, we are going to migrate some agents to a new ES. I need to check if agents connection to this new ES is fine. I saw the Telnet Session Action, but I can't make it work

     

    In the agents log I can see the connection stablished:

     

    2018-10-11 12:27:22,720 [job-593468-jobServer-596951-6:Telnet Session(P13723098000.F13723102000.E13723103000):Telnet Session] DEBUG (com.nolio.platform.shared.executables.actions.TelnetAction:86) - Telnet Connection has no user name nor password. wait for prompt
    2018-10-11 12:27:22,720 [TelnetConnector] INFO (com.nolio.platform.shared.executables.actions.TelnetConnector:69) - Starting TelnetConnector for [10.75.248.65:6600]
    2018-10-11 12:27:37,782 [job-593468-jobServer-596951-6:Telnet Session(P13723098000.F13723102000.E13723103000):Telnet Session] INFO (com.nolio.platform.shared.executables.actions.TelnetConnector:172) - HHello! NiMi here. Node type: SUPER_NODE You come from /10.75.253.39:2704
    2018-10-11 12:27:37,782 [job-593468-jobServer-596951-6:Telnet Session(P13723098000.F13723102000.E13723103000):Telnet Session] INFO (com.nolio.platform.shared.executables.actions.TelnetConnector:214) - Telnet client disconnecting - should run set to false
    2018-10-11 12:27:37,798 [TelnetConnector] DEBUG (com.nolio.platform.shared.executables.actions.TelnetConnector:118) - Done reading, should run is false
    2018-10-11 12:27:37,845 [job-593468-jobServer-596951-6:Telnet Session(P13723098000.F13723102000.E13723103000):Telnet Session] INFO (com.nolio.platform.shared.executables.actions.TelnetConnector:238) - Stopping TelnetConnector ...
    2018-10-11 12:27:37,845 [job-593468-jobServer-596951-6:Telnet Session(P13723098000.F13723102000.E13723103000):Telnet Session] INFO (com.nolio.platform.shared.executables.actions.TelnetConnector:253) - TelnetConnector stopped. It took 0 seconds to stop the telnet client
    2018-10-11 12:27:37,845 [job-593468-jobServer-596951-6:Telnet Session(P13723098000.F13723102000.E13723103000):Telnet Session] INFO (com.nolio.platform.shared.executables.actions.TelnetAction:113) - Failed to login telnet host [10.75.248.65] on port [6600] Check supplied credentials and prompts..
    2018-10-11 12:27:37,845 [job-593468-jobServer-596951-6:Telnet Session(P13723098000.F13723102000.E13723103000):Telnet Session] INFO (com.nolio.platform.shared.datamodel.Action:334) - ------------------------Finished action [Telnet Session(P13723098000.F13723102000.E13723103000):Telnet Session] result [false, Failed to login to Telnet Host. , ]-

     

    .

    But the action is failing.

     

    What I need is to check whether a remote port is listening  or not ( like telnet "remote ip" "remote port")

     

    Thanks.



  • 2.  Re: Telnet Session

    Broadcom Employee
    Posted Oct 11, 2018 11:58 AM

    Hello Julio,

     

    I am not sure that the telnet action will be your best way to accomplish port testing. If all you have is remote access then possibly - though i have no experience with it to share. If you have local access to the server you want to know port info for then you can look at the netstat command. However, if you have migrated agents and you're trying to find out if those agents are properly reporting to that execution server then it looks like you could use the action: Get Agents for Execution Server.

     

    Description:

    This step retrieves the connected agents for a given execution server.

     

    I hope this helps.

    -Gregg



  • 3.  Re: Telnet Session

    Posted Oct 11, 2018 12:07 PM

    Hi Gregg, I have several servers with differents OS types and I look for one way to test this.  What I wanted to check if those agents can stablish a connection to that new ES. I thought this action could be used as a portqry.exe (in windows), which return value indicates whether a remote port is opened or not.



  • 4.  Re: Telnet Session
    Best Answer

    Broadcom Employee
    Posted Oct 11, 2018 09:36 PM

    Hi,

     

    If you want to check connectivity between NES and Agent, I suppose simple action is OK like "Delay" action. Delay action does not depend on OS.

     

    When NES cannot contact agent, the action will not be started. It means nolio_action_exe.log on agent is not updated.

    When agent cannot respond to NES, NAC cannot get the result of action.

    If port is unavailable between NES and Agent, Delay action will be failed or stuck. If available, it will be succeeded.

    I suppose you don't need to check port availability directly.

     

    By the way, although Telnet Session action was failed, it seems NES could throw an action to the agent at this stage, at least.

     

    Regards

    Yas



  • 5.  Re: Telnet Session

    Posted Oct 19, 2018 06:36 AM

    Hello,

    To test if a TCP connection can be establish from an agent to some target you can use a JavaScript action :

    https://communities.ca.com/ideas/235729284#comment-233948995 



  • 6.  Re: Telnet Session

    Broadcom Employee
    Posted Oct 22, 2018 01:33 AM

    Hi Julio,

     

    Do you have any feedback?

    If you tried any methods, please share your attempt and result.

     

    Thanks

    Yas



  • 7.  Re: Telnet Session

    Posted Nov 02, 2018 02:03 PM

    Hi Phaw, I'll test it, thanks for your help on this.