Owner's Manual
Smart Scripting | 77
Running a Python API Script
When you run a Python script that invokes the API functions in Supported Dell
Networking OS API Functions in Python Scripts, logon credentials are read from the
smartutils.cfg file, and a telnet session opens on the switch in which function calls are
executed in the Dell Networking OS CLI. The script closes the telnet session after
running all the CLI commands.
F10ShowIPRoute None Returns routing table information.
F10ShowISISNeighbors None Returns list of ISIS neighbors.
F10ShowISISRoute None Returns the table of ISIS-learned routes.
F10ShowLagIntStatus (lagId) Returns the detailed status of a specified port-channel interface.
F10ShowLagIntVlanMember
s
(lagId) Returns information on VLAN membership for a specified
port-channel interface.
F10ShowLog None Returns the switch log buffer.
F10ShowMacAddrTbl None Returns the table of learned MAC addresses.
F10ShowMem (lagId) Returns switch memory usage.
F10ShowOSPFNeighbors None Returns list of OSPF neighbors.
F10ShowOSPFRoute None Returns the table of OSPF-learned routes.
F10ShowPhyIntBand (stackUnitNum, portId) Returns in/out bandwidth average for a specified port.
F10ShowPhyIntStatus (stackUnitNum, portId) Returns the detailed status of a specified physical interface.
F10ShowPhyIntVlanMember
s
(stackUnitNum, portId) Returns information on VLAN membership for a specified
physical interface.
F10ShowProcCpu None Returns switch CPU usage and running processes.
F10ShowRun None Returns the running configuration (in memory).
F10ShowVer None Returns software version information.
F10ShowVlan None Returns the show vlan output for all VLANs.
F10ShowVlanId (vlanId) Returns the show vlan output for a specific vlan.
F10ShowVlanIntStatus (vlanId) Returns the detailed status of a specified VLAN interface.
F10ShowVrrp None Returns the full VRRP status output.
F10ShowVrrpBrief None Returns a brief VRRP session summary.
F10Traceroute (ipAddress, timeout) Performs a traceroute operation to an IP address from the switch.
F10WriteMem None Write the running configuration to the startup configuration file.
Table 5-4. Supported Dell Networking OS API Functions in Python Scripts (continued)