Hi. i am testing the API interface i have developed through java API.
what i need is to send a command to change the ip address of a user.
actually i have to acomplish this work , sending to separate commands:
1) I send this command first to get the user id :
/ppp/secret/print
?name=smith
=.proplist=.id
it returnrs :
!re
=.id=*7
!done
2) next i have to send a command to change the ip to the returned id:
/ppp/secret/set
=.id=*7
=remote-address=10.12.10.50
so i want to know if there is a way to get this result in a single script ??
i tryed to change the ip using the name instead of the id but it din't work/
thanks regards !