1.0

Table Of Contents
CHAPTER 14 Understanding Policies
255
*
* Setting the NQ descriptor:
* To set the NQ descriptor from the guest os you must run the
* following command (without the brackets around the new
* descriptor):
*
* On a Linux guest:
* (Binary located at /src/sbin)
* vmware-guestd --cmd "nq-set [new descriptor]"
*
* On a Windows guest:
* (Binary located at C:\Program Files\VMware\VMware Tools)
* vmwareservice -cmd "nq-set [new descriptor]"
*
* (without the brackets around the new descriptor)
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
char *descriptor;
char *uptodate;
} DescriptorListType;
static DescriptorListType descriptorList[] = {
{"os=winxp-sp2,ie=6.0,virusdefs=4.0,office=2003-sp1", "YES"},
{"os=winxp-sp1,ie=6.0,virusdefs=4.0,office=2003-sp1", "NO"},
{"uptodate", "YES"},
{"notuptodate", "NO"},
{"rejectme", "REJECT"}
NULL
};
int
main(int argc,
char *argv[])
{
char *descriptor;
int counter;
int result = 1;
/* Get the current descriptor from the env. var
* VMWARE_NQ_DESCRIPTOR
*/