If not already, go to tek.com and get the User Manual for the 2700. There are SCPI commands illustrated in such as section 7 on scanning.
Also our older forum may have some good posts:
https://forum.tek.com/viewtopic.php?f=62&t=142711
OR
https://forum.tek.com/viewforum.php?f=62