Coder Social home page Coder Social logo

Comments (6)

ktbyers avatar ktbyers commented on June 12, 2024

show chassis hardware | display xml

from netmiko.

wdennis avatar wdennis commented on June 12, 2024

Not just with "| display xml" --
output of "show chassis hardware":

Hardware inventory:
Item             Version  Part number  Serial number     Description
Chassis                                CW02xxxxxxxx      EX2200-24T-4G
Routing Engine 0 REV 22   750-026468   CW02xxxxxxxx      EX2200-24T-4G
FPC 0            REV 22   750-026468   CW02xxxxxxxx      EX2200-24T-4G
  CPU                     BUILTIN      BUILTIN           FPC CPU
  PIC 0                   BUILTIN      BUILTIN           24x 10/100/1000 Base-T
  PIC 1          REV 22   750-026468   CW02xxxxxxxx      4x GE SFP
Power Supply 0                                           PS 100W AC
Fan Tray                                                 Fan Tray

{master:0}
netadmin@lab-ex2200-1> 

from netmiko.

wdennis avatar wdennis commented on June 12, 2024

Actually, getting the trailing prompt on any command output from my Juniper EX's (Junos 12.3R6.6, Junos12.3R3.4)

from netmiko.

ktbyers avatar ktbyers commented on June 12, 2024

Can you see what the value of self.router_prompt is? You should should be able to add a 'print self.router_prompt' right after you execute your above command.

from netmiko.

wdennis avatar wdennis commented on June 12, 2024

Code executed:

SSHClass = netmiko.ssh_dispatcher(device_type=juniper_ex2200['device_type'])
net_connect = SSHClass(**juniper_ex2200)
output = net_connect.send_command('show version')
#print(output)
print(net_connect.router_prompt)

Output:

{master:0}
netadmin@lab-ex2200-1>

from netmiko.

ktbyers avatar ktbyers commented on June 12, 2024

Okay, the {master:0} is probably causing it to not work correctly.

from netmiko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.