script or ?? to pull LTM serial number

Does anyone have a script (powershell?) or some kind of icontrol that can be run from a windows server on the same subnet that will pull and display or save the serial number of the BIGIP LTM? v10 and v11.

Thanks

Add-PSSnapin iControlSnapIn

Initialize-F5.iControl -HostName [hostname] -PScredentials (get-credential)

(Get-F5.iControl).managementpartition.set_active_partition(‘YourPartition’)

$f = Get-F5.iControl

$f.SystemSystemInfo.get_system_information()

this will list just the serial

($f.SystemSystemInfo.get_system_information()).chassis_serial

Ben

Thanks for the tip Ben! Glad to see there are other PowerShell users out there!

-Joe