Table 3-3. Supported FTOS API Functions in PERL Scripts
PERL API Function
F10AddLagIntToVlan
F10AddPhyIntToVlan
F10CreateVlanId
F10DeleteVlanId
F10ExecShowCmd
F10MakeLagIntNoShutdown (lagId)
F10MakeLagIntShutdown
F10MakeLagIntSwitch
F10MakePhyIntNoShutdown (stackUnitNum, portId)
F10MakePhyIntShutdown
F10MakePhyIntSwitch
F10MakeVlanIntNoShutdow
n
F10MakeVlanIntShutdown
F10Ping
F10ShowArpTbl
F10ShowBGPNeighbors
F10ShowBGPRoute
F10ShowBGPSummary
F10ShowBootVar
F10ShowEnvironment
F10ShowIntBrief
F10ShowIntBriefLag
F10ShowIntBriefMan
F10ShowIntBriefPhy
F10ShowIntBriefVlan
F10ShowIPRoute
F10ShowISISNeighbors
F10ShowISISRoute
F10ShowLagIntStatus
Arguments
(lagId, vlanId, tagFlag)
(stackUnitNum, portId,
vlanId, tagFlag)
(vlanId)
(vlanId)
(command)
(lagId)
(lagId)
(stackUnitNum, portId)
(stackUnitNum, portId)
(vlanId)
(vlanId)
(ipAddress)
None
None
None
None
None
None
None
None
None
None
None
None
None
None
(lagId)
Description
Adds a LAG interface to a VLAN as either tagged or untagged.
tagFlag values: 1 (tagged) or 0 (untagged).
Adds a physical interface to a VLAN as either tagged or untagged.
tagFlag values: 1 (tagged) or 0 (untagged).
Creates a VLAN on the switch.
Deletes a VLAN on the switch.
Executes a specified show command.
Enables the specified port channel.
Disables the specified port channel.
Configures the specified port channel (LAG) as a Layer 2
switchport.
Enables the specified port.
Disables the specified port.
Configures the specified port as a Layer 2 switchport.
Enables the specified VLAN interface.
Disables the specified VLAN interface.
Pings (via ICMP) an IP address from the switch.
Returns the table of learned ARP entries.
Returns list of BGP neighbors.
Returns the table of BGP-learned routes.
Returns summary information on BGP sessions.
Returns system boot variables.
Returns environment-monitoring variable values.
Returns brief interface status (up/down/admin up/admin down) of
all interfaces.
Returns brief interface status (up/down/ admin up/down) of all
port-channel interfaces.
Returns brief interface status (up/down/ admin up/down) of all
management interfaces.
Returns brief interface status (up/down/ admin up/down) of all
physical interfaces.
Returns brief interface status (up/down/ admin up/down) of all
VLAN interfaces.
Returns routing table information.
Returns list of ISIS neighbors.
Returns the table of ISIS-learned routes.
Returns the detailed status of a specified port-channel interface.
Smart Scripting | 25
Need help?
Do you have a question about the FORCE10 Open Automation and is the answer not in the manual?
Questions and answers