Smarts SAM: Ping device server tool is not working; Error : ping: unknown host -c
search cancel

Smarts SAM: Ping device server tool is not working; Error : ping: unknown host -c

book

Article ID: 332113

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


Unable to use the Ping device server tool In Smarts SAM console

Receive the following error when trying to use the Ping device server tool In Smarts SAM console:

Error : ping: unknown host -c


Environment

VMware Smart Assurance - SMARTS

Cause

The ping command parameters are not in the correct order in the ics-ping-device.sh script. The Smarts SAM ping utility in /bin/ expects the parameters in a certain order. If they are not in the correct order, the error is reported and the ping device server tool will not work.

Resolution

To address this issue, do the following:
  1. Open the ics-ping-device.sh script using sm_edit.
  2. Find the ping_test() function and ensure the parameters are in the correct order, as shown in the following example:
Correct
${PING_DIRECTORY}ping -c ${COUNT} ${ipaddress}

Incorrect
${PING_DIRECTORY}pingĀ  ${ipaddress} -c ${COUNT}

  1. Save and close the ics-ping-device.sh script.
  2. Use the ping device server tool again and confirm that it is now working.