That information should be in your instrument's user manual. Look for a chapter that may be called command set, remote operation, or communication. I checked the Agilent website but did not find any references to a 8505 network analyzer.
Ray K
NI Applications Engineer