2 Replies Latest reply on May 20, 2019 9:12 AM by Biondi D'Sylva

    mposter not working as expected

    Biondi D'Sylva
      Share This:

      Hi All,

       

      I'm trying to parse the 'hostname' from FQDN. I'm using the below mposter commands to do this. But I'm not getting the required output.

       

      #mposter -n PRO_01 -d  THISFILE

      V_EVTMGMT_CATEGORIZATION;

      mc_udid='Categorization - 277';

      name='Categorization - 277';

      input_match=['<NETCOOL_EV>','<OpsMgr*>','<Application>','<Ecs*>','<A>','*','*','*','*'];

      ref_instances_classes=[NETCOOL_EV];

      output_expressions=['"OPERATIONS_MANAGEMENT"','"APPLICATION"','"BMC_SoftwareServer"','sprintf("%c",[match_regex($1.mc_host,"^(\w+)\.\w+\.\w+\.\w+$","",1)])','sprintf("volvo_group_%c%c",[match_regex($1.v_ci_5,"^(\w+)\.(\w+)\.\w+\.\w+$","",2)])','sprintf("%c",[match_regex($1.v_ci_5,"^\w+\.\w+\.(\w+)\.\w+$","",1)])'];

      END

       

      EXPECTED OUTPUT:-

      mc_host='abc.ds.net';

      v_alias_host='abc';

       

      ACTUAL OUTPUT:-

      mc_host='abc.ds.net';

      v_alias_host='abc.ds.net';