open-vm-tools icon indicating copy to clipboard operation
open-vm-tools copied to clipboard

"vmware-toolbox-cmd -v" is extracting OS version information (lsb_release,os-release,other-release files)

Open PeterPitterling opened this issue 2 years ago • 1 comments

Describe the bug

just running "vmware-toolbox-cmd -v" should provide only the Tools version. This command line is typically used by monitoring tools like saposcol and others very frequently.

Running strace shows all OS informations are extracted (maybe for logging to logfile?) .. in that case, I would not understand why logging is required for getting the tool version information

Reproduction steps

  1. strace vmware-toolbox-cmd -v

Expected behavior

just provide version, no need to read other OS related information. Keep this as simple / cheap as possible.

Additional context

No response

PeterPitterling avatar Mar 13 '23 08:03 PeterPitterling

vmware-toolbox-cmd needs to handle various functions such as config, send rpc command, timesync etc, which needs to be adapted for different distros. However, for the simple version(-v) and help( -h) we could just print some message and exit earlier.

pengzhencao avatar Mar 14 '23 01:03 pengzhencao