Hi,
I need a script that can reference an excel spread sheet pull an ip address then telnet into that ip address log me on and run a script capture the result and put it back on a excel spread sheet so for i am doing all of this manually i have 500 plus sites that i want to automate.
here is what i have i run these separate
;Recorded script. Editing may be required.
proc main
waitfor "ENTER USERNAME < ^H "
transmit "^M"
waitfor "ENTER PASSWORD < ^H "
transmit "^M"
waitfor "< ^H "
transmit "ZIAG;^M"
waitfor "OLD PASSWORD:"
transmit "^M"
waitfor "NEW PASSWORD:"
transmit "^M"
waitfor "VERIFICATION:"
transmit "^M"
endproc
proc main
string szipaddress
string szusername
string szpassword
sdlginput "IP ADDRESS" "Enter IP Address" szipaddress
connectmanual telnet szipaddress
waitfor "username: "
sdlginput "User Name" "Enter User Name" szusername
transmit szusername
transmit "^m"
waitfor "Password: "
sdlginput "Password" "Enter Password" szpassword
transmit szpassword
transmit "^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_8 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_9 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_10 fui get vswr^m"
waitfor "$"
waitfor "$"
transmit "lhsh 001200/port_2_dev_22 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_6_dev_23 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_10_dev_24 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_3 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_4 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_5 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_6 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_7 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_8 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_9 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_10 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_11 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_3 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_4 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_5 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_6 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_7 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_8 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_9 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_10 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_11 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_3 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_4 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_5 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_6 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_7 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_8 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_9 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_10 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_11 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_2_dev_20 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_6_dev_21 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_10_dev_22 fui get vswr^m"
waitfor "$"
endproc
I need a script that can reference an excel spread sheet pull an ip address then telnet into that ip address log me on and run a script capture the result and put it back on a excel spread sheet so for i am doing all of this manually i have 500 plus sites that i want to automate.
here is what i have i run these separate
;Recorded script. Editing may be required.
proc main
waitfor "ENTER USERNAME < ^H "
transmit "^M"
waitfor "ENTER PASSWORD < ^H "
transmit "^M"
waitfor "< ^H "
transmit "ZIAG;^M"
waitfor "OLD PASSWORD:"
transmit "^M"
waitfor "NEW PASSWORD:"
transmit "^M"
waitfor "VERIFICATION:"
transmit "^M"
endproc
proc main
string szipaddress
string szusername
string szpassword
sdlginput "IP ADDRESS" "Enter IP Address" szipaddress
connectmanual telnet szipaddress
waitfor "username: "
sdlginput "User Name" "Enter User Name" szusername
transmit szusername
transmit "^m"
waitfor "Password: "
sdlginput "Password" "Enter Password" szpassword
transmit szpassword
transmit "^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_8 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_9 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_10 fui get vswr^m"
waitfor "$"
waitfor "$"
transmit "lhsh 001200/port_2_dev_22 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_6_dev_23 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_10_dev_24 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_3 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_4 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_5 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_6 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_7 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_8 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_9 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_10 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_0_dev_11 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_3 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_4 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_5 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_6 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_7 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_8 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_9 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_10 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_4_dev_11 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_3 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_4 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_5 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_6 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_7 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_8 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_9 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_10 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_8_dev_11 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_2_dev_20 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_6_dev_21 fui get vswr^m"
waitfor "$"
transmit "lhsh 001200/port_10_dev_22 fui get vswr^m"
waitfor "$"
endproc