Code Monkey home page Code Monkey logo

stellar-remove-expired-dspsk's Introduction

stellar-remove-expired-dspsk

A small helper script meant to run on an Alcatel-Lucent Enterprise OmniSwitch with AOS Release 8

Usage

  • git clone the respository
  • Modify the settings_template.json and save it as settings.json
    • Note that some entries are not needed, but the settings.json shall largely stay compatible to my other scripts (this is probably in your interest ;))
  • Follow instructions to deploy "requests" to OmniSwitch AOS R8 (Alcatel-Lucent Enterprise can help you via our Professional Service team)
  • Create a CRON job for the script on OmniSwitch AOS R8 (This was tested on AOS 8.8R2 GA on OS6465T-P12)
    • Edit this file: /flash/working/pkg/ams/cron.cfg
    • The following entry would be executed every five minutes:
      • */5 * * * * /bin/python3 /flash/python/stellar-remove-expired-dspsk.py
    • The following entry would be executed every Wednesday at 06:00 in the morning:
      • 0 6 * * WED /bin/python3 /flash/python/stellar-remove-expired-dspsk.py
(admin@router) Password: 
 ________  ________  ________           ________  ________     
|\   __  \|\   __  \|\   ____\         |\   __  \|\   __  \    
\ \  \|\  \ \  \|\  \ \  \___|_        \ \  \|\  \ \  \|\  \   
 \ \   __  \ \  \\\  \ \_____  \        \ \   _  _\ \   __  \  
  \ \  \ \  \ \  \\\  \|____|\  \        \ \  \\  \\ \  \|\  \ 
   \ \__\ \__\ \_______\____\_\  \        \ \__\\ _\\ \_______\
    \|__|\|__|\|_______|\_________\        \|__|\|__|\|_______|
                       \|_________|                            
					       OmniSwitch 6465T
Router-> cat /flash/working/pkg/ams/cron.cfg 
0 6 * * WED /bin/python3 /flash/python/stellar-remove-expired-dspsk.py
Router-> show appmgr  
Legend: (+) indicates application is not saved across reboot
  Application    Status    Package Name        User                  Status Time Stamp
---------------+---------+-------------------+---------------------+---------------------
  cron-app      restarted ams                 admin                 Tue Aug  9 16:11:10 2022

Router-> appmgr restart ams cron-app
Please wait...

Router-> show appmgr                
Legend: (+) indicates application is not saved across reboot
  Application    Status    Package Name        User                  Status Time Stamp
---------------+---------+-------------------+---------------------+---------------------
+ cron-app      restarted ams                 admin                 Tue Aug  9 17:14:09 2022
Router-> write memory flash-synchro 

File /flash/working/vcsetup.cfg replaced.
Please wait...

File /flash/working/vcboot.cfg replaced.

Notification emails

English ("language": "en"):

dspsk-english

Deutsch ("language": "de"):

dspsk-german

stellar-remove-expired-dspsk's People

Contributors

bennye avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.