X hits on this document

PDF document

February 10, 2006 - page 200 / 238

887 views

0 shares

0 downloads

0 comments

200 / 238

188

APPENDIX I. SAMPLE PROGRAM SHOWING EVENT SETUP

link = link->next; } return NULL;

}

static void use_sdata(sdata_t *sdata) {

sdata->refcount++; }

static void release_sdata(sdata_t *sdata) { sdata->refcount--; if (sdata->refcount == 0) { /* Remove it from the list. */ if (sdata->next) sdata->next->prev = sdata->prev;

if (sdata->prev)

sdata->prev->next = sdata->next; else

sdata_list = sdata->next;

free(sdata->es); free(sdata->th); free(sdata);

}

}

static void usage(void) {

printf("Usage:\n"

" " " "

%s [options] smi <smi #>\n"

Make a connection to a local system management interface.\n" smi # is generally 0.\n" %s [options] lan <host> <port> <authtype> <privilege>"

" <username> <password>\n"

" " " " " "

Make a connection to a IPMI 1.5 LAN interface.\n"

Host and port specify where to connect to (port

generally

623).

authtype

is

none,

md2,

md5,

or

is\n" straight.\n"

privilege is callback, user, operator, username and password must be provided not none.\n", progname, progname);

or if

admin. The\n" the authtype is\n"

Document info
Document views887
Page views887
Page last viewedSat Dec 10 17:10:42 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments