code: def sap_sid_nr(broker):
          
          insts = broker[DefaultSpecs.saphostctrl_listinstances].content
          hn = broker[DefaultSpecs.hostname].content[0].split('.')[0].strip()
          results = set()
          for ins in insts:
              ins_splits = ins.split(' - ')
              # Local Instance
              if ins_splits[2].strip() == hn:
                  # (sid, nr)
                  results.add((ins_splits[0].split()[-1].lower(), ins_splits[1].strip()))
          return list(results)
docs: Get the SID and Instance Number
  
          Typical output of saphostctrl_listinstances::
          # /usr/sap/hostctrl/exe/saphostctrl -function ListInstances
          Inst Info : SR1 - 01 - liuxc-rhel7-hana-ent - 749, patch 418, changelist 1816226
  
          Returns:
              (list): List of tuple of SID and Instance Number.