I'm really not clear what you're trying to achieve here - and I'm no expert in the script, but you appear to be trying to get status info from an MX on its warm spare 'brother' (New_spare_status) - but that MX has no warm spare (Unreachable device). Please bear in mind this forum is not a substitute for Meraki Support. you should probably contact them for any further assistance.
... View more