i just want to write a script for the follwing command "display status" and the normal output is...
AN100> display status
12.13.2006 12:03:25 AN-2000-1 CC NOT PRESENT 16.50.80.49
status: Status for PACKET GLI A in the TOP / LEFT shelf of frame 0:
status: The current active LAN is A.
status: SCAP Address: 82 067C 80 31 FF
status: DNC number: 1
status: Logical number: 0
AN100>
but i need the output in the format....
frame 0
SCAP Address : 82 067C 80 31 FF
and also if the value of frame is "0" and SCAP Address is "82 067C 80 31 FF" then i need to proceed with the command "reset all"
otherwise echo " DONT PROCEED WITH RESET"