{"record":{"id":"2cef659b8d43672b","repo":"ytti/oxidized","slug":"unable-to-detect-prompt-node-prompt","errorCode":null,"errorMessage":"unable to detect prompt: #{@node.prompt}","messagePattern":"unable to detect prompt: #(.+?)","errorType":"exception","errorClass":"PromptUndetect","httpStatus":null,"severity":"error","filePath":"lib/oxidized/input/telnet.rb","lineNumber":29,"sourceCode":"      @node.model.cfg['telnet'].each { |cb| instance_exec(&cb) }\n\n      @text_debug = DebugText.new(Oxidized.config.input.debug, @node, config_name)\n\n      port = vars(:telnet_port) || 23\n\n      telnet_opts = {\n        'Host'    => @node.ip,\n        'Port'    => port.to_i,\n        'Timeout' => @timeout,\n        'Model'   => @node.model,\n        'Log'     => @text_debug\n      }\n\n      @telnet = Net::Telnet.new telnet_opts\n      begin\n        login\n      rescue Timeout::Error\n        raise PromptUndetect, ['unable to detect prompt:', @node.prompt].join(' ')\n      end\n      connected?\n    end\n\n    def connected?\n      @telnet && (not @telnet.sock.closed?)\n    end\n\n    def cmd(cmd_str, expect = @node.prompt)\n      logger.debug \"Telnet: #{cmd_str} @#{@node.name}\"\n      return send(cmd_str + \"\\r\\n\") unless expect\n\n      # create a string to be passed to oxidized_expect and modified _there_\n      # default to a single space so it shouldn't be coerced to nil by any models.\n      out = String(' ')\n      @text_debug&.send_data(cmd_str)\n      @telnet.puts(cmd_str)\n      @telnet.oxidized_expect(timeout: @timeout, expect: expect, out: out)","sourceCodeStart":11,"sourceCodeEnd":47,"githubUrl":"https://github.com/ytti/oxidized/blob/687ed4262d9d21e54662e872e2383386d8498f7b/lib/oxidized/input/telnet.rb#L11-L47","documentation":"Error \"unable to detect prompt: #{@node.prompt}\" thrown in ytti/oxidized.","triggerScenarios":"Thrown at lib/oxidized/input/telnet.rb:29 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"687ed4262d9d21e54662e872e2383386d8498f7b","analyzedAt":"2026-08-23T11:19:42.084Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}