Skip to content

Latest commit

 

History

History
166 lines (149 loc) · 7.91 KB

8-1. show commands.md

File metadata and controls

166 lines (149 loc) · 7.91 KB

What you can do with this procedure

The following show commands can be executed from the CLI

Basic syntax

python [file path]/network_sketcher.py [command] --master [master file path]

Add --one_msg option to display output on a single line

python [file path]/network_sketcher.py [command] --master [master file path] --one_msg
  • The location of [command], --one_msg, and --master [master file path] can be changed as follows
    python [file path]/network_sketcher.py --one_msg -master [master file path] [command]

show area

Displays all area names.

python [file path]/network_sketcher.py show area --master [master file path] 
  • ex.
    #python .\network_sketcher.py show area --master "C:\work\[MASTER]test.xlsx"
    DC-TOP1
    DC-TOP2
    DC-TOP3

show area_device

Displays all device names in each area.

python [file path]/network_sketcher.py show area_device --master [master file path] 
  • ex.
    #python .\network_sketcher.py show area_device --master "C:\work\[MASTER]test.xlsx"
    ['Site1', ['L2sw-x', 'L3sw-1', 'L3sw-2', 'R-1', 'R-2']]

show area_location

Displays area placement information. Relative location information.

python [file path]/network_sketcher.py show area_location --master [master file path] 
  • ex.
    #python .\network_sketcher.py show area_location --master "C:\work\[MASTER]test.xlsx"
    ['DC-TOP1', 'DC-TOP2', 'DC-TOP3']
    ['Site1', 'Site2']

show device

Displays all device names.

python [file path]/network_sketcher.py show device --master [master file path] 
  • ex.
    #python .\network_sketcher.py show device --master "C:\work\[MASTER]test.xlsx"
    DEVICE1
    DEVICE10
    DEVICE11
    DEVICE12

show device_interface

Displays all interface names for all devices.

python [file path]/network_sketcher.py show device_interface --master [master file path] 
  • ex.
    #python .\network_sketcher.py show device_interface --master "C:\work\[MASTER]test.xlsx"
    ['DEVICE6', ['GigabitEthernet 0/3']]
    ['DEVICE5', ['GigabitEthernet 0/4']]
    ['DEVICE10', ['GigabitEthernet 0/5']]

show device_location

Displays device placement information within each area. It is relative location information.' AIR' means blank.

python [file path]/network_sketcher.py show device_location --master [master file path] 
  • ex.
    #python .\network_sketcher.py show device_location --master "C:\work\[MASTER]test.xlsx"
    ['tmp', [['AIR', 'AIR', 'AIR', 'AIR', 'AIR', 'DEVICE1', 'DEVICE2', 'AIR'], ['AIR', 'AIR', 'AIR', 'AIR', 'AIR', 'AIR', 'AIR', 'DEVICE3'], ['AIR', 'AIR', 'DEVICE4', 'AIR', 'AIR', 'DEVICE5', 'DEVICE6', 'DEVICE7'], ['DEVICE8', 'DEVICE9', 'DEVICE10', 'DEVICE11', 'DEVICE12', 'AIR', 'AIR', 'AIR']]]

  • explanation Area name:tmp
    Device location:
    ['AIR', 'AIR', 'AIR', 'AIR', 'AIR', 'DEVICE1', 'DEVICE2', 'AIR']
    ['AIR', 'AIR', 'AIR', 'AIR', 'AIR', 'AIR', 'AIR', 'DEVICE3']
    ['AIR', 'AIR', 'DEVICE4', 'AIR', 'AIR', 'DEVICE5', 'DEVICE6', 'DEVICE7']
    ['DEVICE8', 'DEVICE9', 'DEVICE10', 'DEVICE11', 'DEVICE12', 'AIR', 'AIR', 'AIR']

show link

Displays L1 wiring information.

python [file path]/network_sketcher.py show link --master [master file path] 
  • ex.
    #python .\network_sketcher.py show link --master "C:\work\[MASTER]test.xlsx"
    [['DEVICE1', 'GigabitEthernet 0/0'], ['DEVICE4', 'GigabitEthernet 0/0']]
    [['DEVICE1', 'GigabitEthernet 0/4'], ['DEVICE5', 'GigabitEthernet 0/4']]
    [['DEVICE10', 'GigabitEthernet 0/5'], ['DEVICE4', 'GigabitEthernet 0/5']]

show interface

Displays detailed information on all L1 interfaces for each device.

python [file path]/network_sketcher.py show interface --master [master file path] 
  • ex.
    #python .\network_sketcher.py show interface --master "C:\work\[MASTER]test.xlsx"
    ['DEVICE1', 'GE 0/0', 'GigabitEthernet 0/0', 'Auto', 'Auto', '1000BASE-T']
    ['DEVICE1', 'GE 0/2', 'GigabitEthernet 0/2', 'Auto', 'Auto', '1000BASE-T']
    ['DEVICE1', 'GE 0/4', 'GigabitEthernet 0/4', 'Auto', 'Auto', '1000BASE-T']
    ['DEVICE10', 'GE 0/5', 'GigabitEthernet 0/5', 'Auto', 'Auto', '1000BASE-T']

show waypoint

Displays all waypoint names.

python [file path]/network_sketcher.py show waypoint --master [master file path] 
  • ex.
    #python .\network_sketcher.py show waypoint --master "C:\work\[MASTER]test.xlsx"
    WAN-1
    WAN-Dum3

show waypoint_interface

Displays all interface names for each waypoint.

python [file path]/network_sketcher.py show waypoint_interface --master [master file path] 
  • ex.
    #python .\network_sketcher.py show waypoint_interface --master "C:\work\[MASTER]test.xlsx"
    ['WAN-1', ['GigabitEthernet 0/0', 'GigabitEthernet 0/19', 'GigabitEthernet 0/31', 'GigabitEthernet 0/45', 'GigabitEthernet 0/46', 'GigabitEthernet 0/53', 'GigabitEthernet 0/54']]
    ['WAN-Dum3', ['GigabitEthernet 0/6', 'GigabitEthernet 0/10', 'GigabitEthernet 0/13', 'GigabitEthernet 0/14', 'GigabitEthernet 0/26']]

show l2_interface

Displays detailed information about the L2 interface, exported from the input-ready information in the DEVICE file.

python [file path]/network_sketcher.py show l2_interface --master [master file path] 
  • ex.
    #python .\network_sketcher.py show l2_interface --master "C:\work\[MASTER]test.xlsx"
    ['FW-12', 'GigabitEthernet 0/32', '', '', '']
    ['FW-12', 'GigabitEthernet 0/33', '', '', '']
    ['FW-12', 'GigabitEthernet 0/36', '', '', '']
    ['FW-12', 'GigabitEthernet 0/37', '', '', '']

show l3_interface

Displays detailed information about the L3 interface, exported from the input-ready information in the DEVICE file.

python [file path]/network_sketcher.py show l3_interface --master [master file path] 
  • ex.
    #python .\network_sketcher.py show l3_interface --master "C:\work\[MASTER]test.xlsx"
    ['FW-12', 'GigabitEthernet 0/32', '', '10.0.2.1/29']
    ['FW-12', 'GigabitEthernet 0/33', '', '10.0.2.9/29']
    ['FW-12', 'GigabitEthernet 0/36', '', '10.0.2.17/29']
    ['FW-12', 'GigabitEthernet 0/37', '', '10.0.2.25/29']
    ['FW-12', 'GigabitEthernet 0/38', '', '10.0.5.57/29']