What can I do about Shell Scrip function?

CHS
CHS Posts: 181  Master Member
5 Answers First Comment Friend Collector Sixth Anniversary
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
    50 Answers 500 Comments Friend Collector Fourth Anniversary
    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  Ally Member
    5 Answers First Comment Friend Collector Fifth Anniversary
    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: 3,387  Guru Member
    100 Answers 2500 Comments Friend Collector Seventh Anniversary

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


Security Highlight