What can I do about Shell Scrip function?

Options
CHS
CHS Posts: 177  Master Member
First Anniversary 10 Comments Friend Collector First Answer
edited April 2021 in Security
In maintenance > File manager > Shell Scrip.
What can I do in this function?

Comments

  • Zyxel_Charlie
    Zyxel_Charlie Posts: 1,034  Zyxel Employee
    First Anniversary Friend Collector First Answer First Comment
    Options
    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
  • [Deleted User]
    [Deleted User] Posts: 118  Zyxel Employee
    First Anniversary Friend Collector First Answer First Comment
    Options
    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: 2,709  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

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


Security Highlight