FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


hardware:cisco:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
hardware:cisco:index.html [2018/02/12 01:46]
kurihara
hardware:cisco:index.html [2018/02/14 23:40]
kurihara
Line 1: Line 1:
 [[:index.html#Hardware|Top#Hardware]] [[:index.html#Hardware|Top#Hardware]]
-====== Cisco (cisco.py)=====+====== Cisco Configuration with Fabric (cisco.py)=====
  
 $FHHOME/fabfile/cisco.py $FHHOME/fabfile/cisco.py
Line 6: Line 6:
 {{INLINETOC}} {{INLINETOC}}
 \\ \\
- +I use Fabric for simple tasks and repetitive tasks. 
-===== Operation =====+\\ 
 +===== Fabric Operation =====
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 14: Line 15:
 </sxh> </sxh>
  
-==== Ref. Remote Shell Commands ====+==== Fabric Remote Shell Commands ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ fab -H $HOST auth.ciscopro --set shell=False --no-pty -- show interfaces status $ fab -H $HOST auth.ciscopro --set shell=False --no-pty -- show interfaces status
 </sxh> </sxh>
 +
  
 \\ \\
Line 47: Line 49:
  
 #------------------------------------------------------------------ #------------------------------------------------------------------
-#cisco.termleng0 +#cisco.term_leng0 
 #------------------------------------------------------------------ #------------------------------------------------------------------
 @task @task
Line 57: Line 59:
  
 #------------------------------------------------------------------ #------------------------------------------------------------------
-#cisco.showrun+#cisco.sh_run
 #------------------------------------------------------------------ #------------------------------------------------------------------
 @task @task
-def showrun():+def sh_run():
     """show runnning-config"""     """show runnning-config"""
     run("show running-config", shell=False)     run("show running-config", shell=False)
Line 69: Line 71:
 #------------------------------------------------------------------ #------------------------------------------------------------------
 @task @task
-def showrun():+def sh_int_status():
     """show interfaces status"""     """show interfaces status"""
     run("show interfaces status", shell=False)     run("show interfaces status", shell=False)


hardware/cisco/index.html.txt · Last modified: 2018/02/22 23:30 by kurihara