Customer Service Center
Home
Knowledge Base
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ19244
Printer Friendly
Email Article Link
Spirent TestCenter: Is there a way to install firmware using the stc API
Environment/Versions
build 5.09
TCL 8.4.13 and 8.5.9
Answer
Yes it can be done. Here is a sample script
package require SpirentTestCenter
stc::config automationoptions -logTo STDOUT
stc::config automationoptions -logLevel INFO
stc::config automationoptions -suppresstclerrors false
set chassisAddr {ipaddress of chassis}
# Connect to a chassis
puts "Connecting $chassisAddr"
stc::connect $chassisAddr
set thefirmdir "C:/Firmware/x.xx.xxxx"
puts [stc::perform setfirmwarearchivesdir -dir $thefirmdir ]
after 2000
set hPChassisMan [stc::get system1 -children-physicalchassismanager]
puts " hPChassisMan $hPChassisMan"
set hPChassis [stc::get $hPChassisMan -children-physicalchassis]
puts "hPChassis $hPChassis"
# Get the handle to the physical test modules
set moduleHandles [stc::get $hPChassisMan -children-physicaltestmodule]
puts "moduleHandles $moduleHandles"
puts [stc::perform InstallFirmware -EquipmentList $moduleHandles -Version 5.09.9136 ]
puts "it should get done soon"
Version
1.0
Publish Date
2020-05-28
Categories
Product : API,Chassis
Related Articles