What can I do about Shell Scrip function?

CHS
CHS Posts: 86  Ally Member
edited April 14 in Security
In maintenance > File manager > Shell Scrip.
What can I do in this function?

Comments

  • Zyxel_Charlie
    Zyxel_Charlie Posts: 1,033  Zyxel Employee
    Hello CHS,
    G'day
    On the Shell Scrip this feature, 
    user can enter the command in order to let device follow instruction and process automatically.
    e.g. The device will backup the configuration before reboot

    You can use schedule run by the following steps:

    (1) Upload a shell script to the device.

    a. The contents of .zysh are:

    copy /conf/startup-config.conf /conf/back-config.conf


    b. save this file as "backupconf.zysh"

    c. upload this file to shell scrip page. (Maintenance > File Manager > Shell Scrip)

    (2) Use CLI command to run the schedule everyday:

    Router(config)# schedule-run 1 backupconf.zysh daily 03:00

    Thanks
    BR,
    Charlie
  • Mark_Zyxel
    Mark_Zyxel Posts: 112  Zyxel Employee
    Hey there CHS

    I added a link with some scripts you can use for different things

    https://webstore.zyxel.eu/public.php?service=files&t=85ca4cdf10de6545fa58f536fa005f4d

    Kind regards
    Mark

    👾

  • PeterUK
    PeterUK Posts: 1,040  Guru Member

    Here a script I made for changing the DHCP Bootp flags to Unicast on OPT port


Security Highlight