<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessing Unity express SRE-module via Python Netmiko in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901830#M1907</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.cisco.com/t5/user/viewprofilepage/user-id/881099" target="_self"&gt;TI2491&lt;/A&gt;. Thanks for your response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;No they are not entered in a secure string (not even when I enter them manually). The problem is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I enter the: "service-module ISM 0/0 session" command -&amp;gt; this would the prompt for credentials.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Then I send a different command with the username and then a third one with the password.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The error I get is as if no credentials were entered, and the authentication process expired. After that the username and password conmmands are executeded in cisco as normal commands in # , eg "my_username", obvisously there is no such command in cisco and I get the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"% Bad IP address or host name&lt;BR /&gt;% Unknown command or computer name, or unable to find computer address".&lt;/P&gt;&lt;P&gt;Somehow I need to enter the credentials within the first command("&lt;SPAN class=""&gt;service-module ISM 0/0 session"&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;I fail to do so...&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2019 05:55:44 GMT</pubDate>
    <dc:creator>vgrigoriadis</dc:creator>
    <dc:date>2019-08-02T05:55:44Z</dc:date>
    <item>
      <title>Accessing Unity express SRE-module via Python Netmiko</title>
      <link>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901286#M1905</link>
      <description>&lt;P&gt;Dear all.&lt;/P&gt;&lt;P&gt;I have prepared a small python script to ssh several CUCME routers (2901) and get some "show" info, using the Netmiko Python library. No problem so far. The issue is that I'd like to access the cisco unity Express (v8.8.7) ISM (SRE-300) module within the cucme router to get some info from there too. The way I would do that manually from the cli is using the command #"service-module ISM 0/0 session". Then I would be prompted to enter username and password. After that, I would be connected to the module and could issue any show command. However, when I am trying to do that from my script, after sending command "service-module ISM 0/0 session", I don't have a way to send the credentials in, so the session expires. I tried many different combinations- sending the credentials in seperate commands, or within one command etc.., nothing worked. BTW, the session is a basic tty (131) serial connection (from the router to its internal SRE module). So the whole procedure is as follows: ssh to router, and from there vty-line (console) connection to the internal module. Any ideas to solve that, would be highly appreciated. Thank you all in advance.&lt;/P&gt;&lt;P&gt;Vasilis&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 07:58:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901286#M1905</guid>
      <dc:creator>vgrigoriadis</dc:creator>
      <dc:date>2019-08-01T07:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Unity express SRE-module via Python Netmiko</title>
      <link>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901531#M1906</link>
      <description>&lt;P&gt;when you enter the credentials, is the password entered as a secure string?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;I don't see why passing the credentials in your existing ssh session wouldn't work if that's how you access it from inside of the CUCME anyway...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 15:06:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901531#M1906</guid>
      <dc:creator>TI2491</dc:creator>
      <dc:date>2019-08-01T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Unity express SRE-module via Python Netmiko</title>
      <link>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901830#M1907</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.cisco.com/t5/user/viewprofilepage/user-id/881099" target="_self"&gt;TI2491&lt;/A&gt;. Thanks for your response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;No they are not entered in a secure string (not even when I enter them manually). The problem is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I enter the: "service-module ISM 0/0 session" command -&amp;gt; this would the prompt for credentials.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Then I send a different command with the username and then a third one with the password.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The error I get is as if no credentials were entered, and the authentication process expired. After that the username and password conmmands are executeded in cisco as normal commands in # , eg "my_username", obvisously there is no such command in cisco and I get the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"% Bad IP address or host name&lt;BR /&gt;% Unknown command or computer name, or unable to find computer address".&lt;/P&gt;&lt;P&gt;Somehow I need to enter the credentials within the first command("&lt;SPAN class=""&gt;service-module ISM 0/0 session"&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;I fail to do so...&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 05:55:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901830#M1907</guid>
      <dc:creator>vgrigoriadis</dc:creator>
      <dc:date>2019-08-02T05:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Unity express SRE-module via Python Netmiko</title>
      <link>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901948#M1908</link>
      <description>&lt;P&gt;Could you post the code that you're using to do this?&amp;nbsp; omit the username and password and any proprietary information, of course.&amp;nbsp; I don't have one of these here that I can play with so I'll see if I can help anywhere!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if possible, the results of reading the input buffer after executing the code.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 10:25:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3901948#M1908</guid>
      <dc:creator>TI2491</dc:creator>
      <dc:date>2019-08-02T10:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Unity express SRE-module via Python Netmiko</title>
      <link>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3902176#M1909</link>
      <description>&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;I have replaced the router ip with &amp;lt;router_IP&amp;gt;, the username with 'user' and the password with 'pass'.&lt;/P&gt;&lt;P&gt;BTW I have tried many different versions of that...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basic script&lt;BR /&gt;------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from netmiko import Netmiko&lt;BR /&gt;from netmiko import ConnectHandler&lt;/P&gt;&lt;P&gt;target = {&lt;BR /&gt;'host':'router_IP',&lt;BR /&gt;'username':'user',&lt;BR /&gt;'password':'pass',&lt;BR /&gt;'device_type':'cisco_ios',&lt;BR /&gt;'secret':'pass'&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;net_connect = ConnectHandler(**target)&lt;BR /&gt;result = net_connect.enable()&lt;BR /&gt;output0 = net_connect.send_command('service-module ISM 0/0 session')&lt;BR /&gt;output1=net_connect.send_command('user')&lt;BR /&gt;output2=net_connect.send_command('pass')&lt;BR /&gt;print(net_connect.find_prompt(), output0, output1, output2)&lt;/P&gt;&lt;P&gt;net_connect.disconnect()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OUTPUT coming from router&lt;BR /&gt;------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;router# Trying &amp;lt;router_IP&amp;gt;, 2131 ... Open&lt;BR /&gt;CC&lt;BR /&gt;*****************************************************************&lt;BR /&gt;* !!!Authorized Use Only!!! *&lt;BR /&gt;* *&lt;BR /&gt;* You must be assigned an account on this system to access. By *&lt;BR /&gt;* accessing this system you are consenting to system monitoring *&lt;BR /&gt;* for law enforcement purpose. *&lt;BR /&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;username:&lt;BR /&gt;% username: timeout expired!&lt;BR /&gt;[Connection to &amp;lt;router_IP&amp;gt; closed by foreign host] Translating "user"&lt;/P&gt;&lt;P&gt;% Bad IP address or host name&lt;BR /&gt;% Unknown command or computer name, or unable to find computer address % Bad IP address or host name&lt;BR /&gt;% Unknown command or computer name, or unable to find computer address&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 16:18:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/accessing-unity-express-sre-module-via-python-netmiko/m-p/3902176#M1909</guid>
      <dc:creator>vgrigoriadis</dc:creator>
      <dc:date>2019-08-02T16:18:29Z</dc:date>
    </item>
  </channel>
</rss>

