I can connect to Lexmark printers via telnet to access the configuration menu and I'm trying to find a way to configure them scripting the commands (there is more than 200 printers). After successful connection here is the menu in the telnet window :
MAIN MENU
  1. Set IP address Options
  2. Set IPv6 address Options
  3. Set IP Protocol enables
  4. Set MTU.........................................   ( 1500 )
  5. Set restricted server list
  6. Set lpd options
  7. Set SNMP community name.........................   ( public )
  A. Save Changes
  X. Exit current menu
Selection: 1
Is there a way I can select for example the option 1 via a batch or shell script even if this is a telnet connection ?
 
     
    