11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

$ZUTIL(114)When flag = 0When flag= 2name is the name of a specific ethernet device.$ZUTIL(114,0,name) returns the address of the named device.name is an ethernet device names list, enclosed in quotes withindividual device names separated by commas. A name listspecified in $ZUTIL(114,2) cannot contain control characters.ExamplesThe following example returns the address of the first ethernet adaptor found:SET Add=$ZUTIL(114,0)WRITE Addreturns 0000C0A5C222.The following example returns the address of a named ethernet adaptor:SET Add=$ZUTIL(114,0,"\\device\\NBf_SMCISA1")WRITE ADDreturns 0000C0A6C392.The following example returns a $CHAR(1) delimited list of ethernet adaptor names:SET R=$ZUTIL(114,1)FOR I=1:1:$LENGTH(R,$CHAR(1)) {WRITE $PIECE(R,$CHAR(1),I),!}returns:\\Device\\NwlnkNb\\Device\\Nbf_SMCISA1\\Device\\Nbf_NdisWan4The following example first returns a comma-delimited list of ethernet device names andthen replaces that list of names with the list of names specified:ZZDUMP $ZUTIL(114,2)returns: en0,en1,et0,et1WRITE !,$ZUTIL(114,2,"es0,es1"),"add one"WRITE !,$ZUTIL(114,1),"check one"WRITE !,$ZUTIL(114,2,"es2"),"add two"WRITE !,$ZUTIL(114,1),"check two"returns: en0,en1,et0,et1ZZDUMP $ZUTIL(114,2)<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 701

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!