3 Replies Latest reply on Feb 25, 2016 7:43 AM by Bill Robinson

    `hostname` command not working for few servers when command is placed in a shell script

      Share This:


      echo $HstName


      This above command is running fine in following cases



      >As a part of post command in file deploy job when executed against target server

      >In a separate NSH Script job


      But when same is executed as a part of Inventory script which is capturing data for target server ,this command is not providing any output.

      However all the other inventory is being fetched successfully.

      In the output the column which should ideally contain Hostname is coming as blank.