napalm-automation / napalm-nxos

Apache License 2.0
9 stars 21 forks source link

Command output for nxos-ssh tests - NX 5K #110

Closed gjim83 closed 6 years ago

gjim83 commented 7 years ago

Model: 5548 OS version: 6.0(2)N2(2)

show version

redacted# sh ver
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
Copyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software are covered under the GNU Public
License. A copy of the license is available at
http://www.gnu.org/licenses/gpl.html.

Software
  BIOS:      version 3.6.0
  loader:    version N/A
  kickstart: version 6.0(2)N2(2)
  system:    version 6.0(2)N2(2)
  Power Sequencer Firmware: 
             Module 1: version v1.0
             Module 3: version v2.0
  Microcontroller Firmware:        version v1.2.0.1
  SFP uC:    Module 1: v1.0.0.0
  QSFP uC:   Module not detected
  BIOS compile time:       05/09/2012
  kickstart image file is: bootflash:///n5000-uk9-kickstart.6.0.2.N2.2.bin
  kickstart compile time:  10/4/2013 12:00:00 [10/04/2013 16:04:23]
  system image file is:    bootflash:///n5000-uk9.6.0.2.N2.2.bin
  system compile time:     10/4/2013 12:00:00 [10/04/2013 18:23:49]

Hardware
  cisco Nexus5548 Chassis ("O2 32X10GE/Modular Universal Platform Supervisor")
  Intel(R) Xeon(R) CPU         with 8253856 kB of memory.
  Processor Board ID FOC16192DYQ

  Device name: redacted
  bootflash:    2007040 kB

Kernel uptime is 43 day(s), 20 hour(s), 3 minute(s), 55 second(s)

Last reset at 21209 usecs after  Sat Jun 24 17:18:07 2017

  Reason: Reset Requested by CLI command reload
  System version: 6.0(2)N2(2)
  Service: 

plugin
  Core Plugin, Ethernet Plugin
gjim83 commented 7 years ago

show ntp peers

FOO-BAR-SW06# sh ntp peers
--------------------------------------------------
  Peer IP Address               Serv/Peer          
--------------------------------------------------
  172.20.74.71                 Server (configured) 
  172.24.176.244               Server (configured) 
  172.31.125.136               Server (configured) 
FOO-BAR-SW06# sh hostname
gjim83 commented 7 years ago
FOO-BAR-SW06# sh hostname
FOO-BAR-SW06.spam.com 
FOO-BAR-SW06# 
FOO-BAR-SW06# sh hosts
DNS lookup disabled
Default domain for vrf:default is spam.com
Name/address lookup uses domain service
Name servers are 255.255.255.255

Host                    Address
FOO-BAR-SW06#
ktbyers commented 7 years ago

@gjim83 In order to use the host, hostname, and version data. I also need the output from show interface status (i.e. the napalm get_fact method uses all of those calls).

I have added your NTP data to the test.

gjim83 commented 7 years ago

@ktbyers

FOO-BAR-SW06# sh int status

--------------------------------------------------------------------------------
Port          Name               Status    Vlan      Duplex  Speed   Type
--------------------------------------------------------------------------------
Eth1/1        server01.foo       connected 1         full    10G     10Gbase-SR 
Eth1/2        server02.foo       connected 60        full    10G     10Gbase-SR 
Eth1/3        server01.bar       connected 188       full    1000    SFP-1000BAS 
Eth1/4        --                 sfpAbsent trunk     full    10G     -- 
Eth1/5        "vPC - POD14 Fex 2 unknown e routed    full    10G     10Gbase-SRSR
Eth1/6        --                 notconnec 1         full    auto    auto
Eth1/7        --                 inactive  1         full    auto    auto

in my case, the possible values of status are {'bpdugrdEr', 'disabled ', 'connected', 'unknown e', 'inactive ', 'notconnec', 'sfpAbsent'}

mirceaulinic commented 6 years ago

Hi @gjim83 - we are currently in the process of reunification, please check https://napalm-automation.net/reunification/. Going forward, we'd like to ask you to submit Pull Requests and Issue to the main repository: https://github.com/napalm-automation/napalm. I believe this has been already included in the tests. Otherwise, please feel free to reopen at https://github.com/napalm-automation/napalm/issues.

Thanks for understanding!