Specifications
2
Performing Updates Using rsys_swm
38
Callback function
Thersys_swmutilityimplementsasamplecallbackfunctioninitscodethatadherestothe
callbackAPIprototypepublishedintheSMLheaderfile
rsys_swm_api.handdefinedinthe
APIdocumentation(rsys_sml_api_reference.doc)generatedbytheSMLlibrarycode.By
default,thesamplecallbackonlytrackstheupgradecampaign’sprogressanddisplaysiton
screeninverbosemode.
Youcaneditthesamplecallbackcodeandconstructmorecomplexcallbacksthatperform
operationslikeShelfManager
andapplicationswitchovers,orcommissionupdatedmodules
aftermoduleactivation.
Thersys_swmutilitycaneitherignorethecallbackeventsorex ecutecustomoperationslike
performingaswitchoverbetweenphasesorcommissioningupdatedmodulesaftermodule
activation.
ThecallbackfunctioniscalledatthesepointsduringtheupgradeforthecallbackAPI
prototype:
•Discoverystage1:Anupgrade‐capablemoduleisfound.Theentitypathisprovided.
•Discoverystage2:Anupgrade‐capablesoftwareentityisfound.Theentitypathis
provided.
•Phase:Aphaseisstartedorcompleted.Thephaseindexisprovided.
• Upgradeoperation1:Anupgradeoperation(e.g.,installation,activation,etc.)starts,
completes,orfailsonamodule.Theentitypathandtheoperationtypeareprovided.
• Upgradeoperation2:Theupgradeoperationstarts,completes,orfailsonasoftware
entity.Theentitypathandoperationtypeareprovided.
Performing the upgrade on one module
Toperformtheupgradeonasinglemoduleratherthananentireshelf,youcandoanythe
following:
•Runrsys_swmagainstacampaignconfigurationfilethathasonlyonemodulelistedinits
specification.
•Runrsys_swmagainstashelflevelcampaignconfigurationfileandusetheoption
‐ito
specifythetargetmodule’sBladeHSDIPaddressastheHPIserverIPaddress.
•Runrsys_swmagainstashelflevelcampaignconfigurationfileanduseoption‐ito
specifytheShelfManager’sIPaddressandoption‐etonamethespecificmoduleyou
wanttheutilitytoupgrade.