@IPSTATUS[adapter] : Returns the current status of the specified network adapter.

 

adapter - the index of the adapter

 

Possible return values are:

 

Up

Down

Testing

Unknown

Dormant

NotPresent

LowerLayerDown

 

Examples:

 

echo %@ipstatus[0]

down

 

echo %@ipstatus[3]

up