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,thesamplecallbackonlytrackstheupgradecampaignsprogressanddisplaysiton
screeninverbosemode.
Youcaneditthesamplecallbackcodeandconstructmorecomplexcallbacksthatperform
operationslikeShelfManager
andapplicationswitchovers,orcommissionupdatedmodules
aftermoduleactivation.
Thersys_swmutilitycaneitherignorethecallbackeventsorex ecutecustomoperationslike
performingaswitchoverbetweenphasesorcommissioningupdatedmodulesaftermodule
activation.
ThecallbackfunctioniscalledatthesepointsduringtheupgradeforthecallbackAPI
prototype:
•Discoverystage1:Anupgradecapablemoduleisfound.Theentitypathisprovided.
•Discoverystage2:Anupgradecapablesoftwareentityisfound.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
specifytheShelfManagersIPaddressandoption‐etonamethespecificmoduleyou
wanttheutilitytoupgrade.