Smart Scripting | 25
Table 3-3. Supported FTOS API Functions in PERL Scripts
PERL API Function Arguments Description
F10AddLagIntToVlan (lagId, vlanId, tagFlag) Adds a LAG interface to a VLAN as either tagged or untagged.
tagFlag values: 1 (tagged) or 0 (untagged).
F10AddPhyIntToVlan (stackUnitNum, portId,
vlanId, tagFlag)
Adds a physical interface to a VLAN as either tagged or untagged.
tagFlag values: 1 (tagged) or 0 (untagged).
F10CreateVlanId (vlanId) Creates a VLAN on the switch.
F10DeleteVlanId (vlanId) Deletes a VLAN on the switch.
F10ExecShowCmd (command) Executes a specified show command.
F10MakeLagIntNoShutdown (lagId) Enables the specified port channel.
F10MakeLagIntShutdown (lagId) Disables the specified port channel.
F10MakeLagIntSwitch (lagId) Configures the specified port channel (LAG) as a Layer 2
switchport.
F10MakePhyIntNoShutdown (stackUnitNum, portId) Enables the specified port.
F10MakePhyIntShutdown (stackUnitNum, portId) Disables the specified port.
F10MakePhyIntSwitch (stackUnitNum, portId) Configures the specified port as a Layer 2 switchport.
F10MakeVlanIntNoShutdow
n
(vlanId) Enables the specified VLAN interface.
F10MakeVlanIntShutdown (vlanId) Disables the specified VLAN interface.
F10Ping (ipAddress) Pings (via ICMP) an IP address from the switch.
F10ShowArpTbl None Returns the table of learned ARP entries.
F10ShowBGPNeighbors None Returns list of BGP neighbors.
F10ShowBGPRoute None Returns the table of BGP-learned routes.
F10ShowBGPSummary None Returns summary information on BGP sessions.
F10ShowBootVar None Returns system boot variables.
F10ShowEnvironment None Returns environment-monitoring variable values.
F10ShowIntBrief None Returns brief interface status (up/down/admin up/admin down) of
all interfaces.
F10ShowIntBriefLag None Returns brief interface status (up/down/ admin up/down) of all
port-channel interfaces.
F10ShowIntBriefMan None Returns brief interface status (up/down/ admin up/down) of all
management interfaces.
F10ShowIntBriefPhy None Returns brief interface status (up/down/ admin up/down) of all
physical interfaces.
F10ShowIntBriefVlan None Returns brief interface status (up/down/ admin up/down) of all
VLAN interfaces.
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.