Powershell V5 API Library Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
PowerShell API Library Reference Manual Sifos Technologies PowerSync Analyzer PSA-3000 PowerShell v5 API Library Reference Manual Version 5.2 Revised August 17, 2021 Copyright © 2021 Sifos Technologies August 17, 2021 Sifos Technologies page i PowerShell v5 API Library Reference Manual Sifos Technologies, Inc. (978) 975-2100 Phone (978) 975-2111 FAX Disclaimer The information contained in this manual is the property of Sifos Technologies, Inc., and is furnished for use by recipient only for the purpose stated in the Software License Agreement accompanying the user documentation. Except as permitted by such License Agreement, no part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, without the prior written permission of Sifos Technologies, Inc. Information contained in the user documentation is subject to change without notice and does not represent a commitment on the part of Sifos Technologies, Inc. Sifos Technologies, Inc. assumes no responsibility or liability for any errors or inaccuracies that may appear in the user documentation. August 17, 2021 Sifos Technologies page ii PowerShell v5 API Library Reference Manual Table of Contents 1. Introduction ..................................................................................................................................... 6 1.1. PowerShell v5 API Library Introduction ...................................................................................................................... 6 1.2. System Requirements .................................................................................................................................................. 7 1.3. Installation .................................................................................................................................................................... 7 1.4. Use with a PSA/PSL Chassis Containing PVA-3102 Test Blades .............................................................................. 8 1.5. Use in a Multi-threaded Program ................................................................................................................................. 8 1.6. Reference Manual Organization................................................................................................................................... 8 2. PowerShell v5 API Definitions ....................................................................................................... 9 2.1. Calling Convention ....................................................................................................................................................... 9 2.2. Error Handling .............................................................................................................................................................. 9 2.3. Enumerations ................................................................................................................................................................ 9 2.4. PowerShell_Init ........................................................................................................................................................... 14 2.5. PowerShell_ManageStdout ........................................................................................................................................ 14 2.6. PowerShell_UnInit ...................................................................................................................................................... 14 2.7. PowerShell_AllowDemoModeOperation ................................................................................................................... 15 2.8. PowerShell_IsDemoModeOn ..................................................................................................................................... 15 2.9. PowerShell_GetInitStatus .......................................................................................................................................... 15 2.10. PowerShell_ConnectToChassis ................................................................................................................................ 16 2.11. PowerShell_Inventory ................................................................................................................................................ 16 2.13. PowerShell_SetAlt ...................................................................................................................................................... 17 2.14. PowerShell_GetAlt ...................................................................................................................................................... 17 2.15. PowerShell_SetPolarity .............................................................................................................................................. 18 2.16. PowerShell_GetPolarity ............................................................................................................................................. 18 2.17. PowerShell_Set4PairMode ......................................................................................................................................... 19 2.18. PowerShell_Get4PairMode......................................................................................................................................... 19 2.19. PowerShell_GetConnected4PrPort ........................................................................................................................... 19 2.20. PowerShell_SetIload .................................................................................................................................................. 20 2.21. PowerShell_GetIload .................................................................................................................................................. 20 2.22. PowerShell_GetBladeType......................................................................................................................................... 21 2.23. PowerShell_SetPassiveLoad ..................................................................................................................................... 22 2.24. PowerShell_GetPassiveLoad ..................................................................................................................................... 22 2.25. PowerShell_SetPort .................................................................................................................................................... 23 2.26. PowerShell_GetPort ................................................................................................................................................... 23 2.27. PowerShell_SetTrig1 .................................................................................................................................................. 24 2.28. PowerShell_SetStateTrig1.......................................................................................................................................... 24 2.29. PowerShell_GetTrig1 .................................................................................................................................................. 25 2.30. PowerShell_GetStatusTrig1 ....................................................................................................................................... 26 2.31. PowerShell_SetTrig2 .................................................................................................................................................. 26 2.32. PowerShell_GetTrig2 .................................................................................................................................................. 27 2.33. PowerShell_SetConfigPaverage ................................................................................................................................ 28 2.34. PowerShell_GetStatusPaverage ................................................................................................................................ 28 2.35. PowerShell_SetConfigVdcaverage ............................................................................................................................ 29 2.36. PowerShell_GetConfigVdcaverage ........................................................................................................................... 29 August 17, 2021 Sifos Technologies page iii PowerShell v5 API Library Reference Manual 2.37. PowerShell_GetStatusVdcaverage ............................................................................................................................ 30 2.38. PowerShell_SetConfigVdcpeak ................................................................................................................................. 31 2.39. PowerShell_GetConfigVdcpeak ................................................................................................................................. 32 2.40. PowerShell_GetStatusVdcpeak ................................................................................................................................. 32 2.41. PowerShell_SetConfigVdctrace ................................................................................................................................. 33 2.42. PowerShell_GetConfigVdctrace ...............................................................................................................................