Module: Junos::Ez::RE

Defined in:
lib/junos-ez/utils/re.rb

Overview


This file contains routing-engine utility methods. These are a misc. collection of methods that perform basic automation tasks like upgrading software or getting process information. The following lists the methods and the equivalent Junos CLI commands

  • status: show chassis routing-engine

  • uptime: show system uptime

  • system_alarms: show system alarms

  • chassis_alarms: show chassis alarms

  • memory: show system memeory

  • users: show system users

  • validate_software?: request system software validate

  • install_software!: request system software add

  • rollback_software!: request system software rollback

  • reboot!: request system reboot (no confirm!!)

  • shutdown!: request system power-off (no confirm!!)


Defined Under Namespace

Classes: Provider

Class Method Summary collapse

Class Method Details

.Utils(ndev, varsym) ⇒ Object



25
26
27
28
# File 'lib/junos-ez/utils/re.rb', line 25

def self.Utils( ndev, varsym )            
  newbie = Junos::Ez::RE::Provider.new( ndev )      
  Junos::Ez::Provider.attach_instance_variable( ndev, varsym, newbie )    
end