This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Problem: Basically the switch authenticates but doesn't actually put me in edit mode...the error I get with the subsequent 'show' command is the output from typing 'show' in view (non-edit) mode. Thoughts? | |
### bin/swcut.rb | |
require 'net/ssh' | |
Net::SSH.start('172.22.142.1','myuser', password: 'mypass') do |ssh| | |
ssh.exec!('edit') | |
puts ssh.exec!('show') | |
end | |
### output start ### | |
Tylers-MacBook-Pro-3:voip tyler$ ruby bin/swcut.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Problem: Basically the switch authenticates but doesn't actually put me in edit mode...the error I get with the subsequent 'show' command is the output from typing 'show' in view (non-edit) mode. Thoughts? | |
### bin/swcut.rb | |
require 'net/ssh' | |
Net::SSH.start('172.22.142.1','myuser', password: 'mypass') do |ssh| | |
ssh.exec!('edit') | |
puts ssh.exec!('show') | |
end | |
### output start ### | |
Tylers-MacBook-Pro-3:voip tyler$ ruby bin/swcut.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rows = CSV.read(CCM_DUMP) | |
rows.each do |row| | |
next unless row[0] =~ /^SEP/ | |
@p = Cisco::CCM::DB::ParseRow.new(row).get_phone | |
@p.lines.each do |l| | |
next unless @l = l | |
line_erb = File.read(ERB_LINE) | |
eruby = Erubis::Eruby.new | |
erb = eruby.convert(line_erb) | |
puts eval erb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; extensions.conf | |
[oneif_internal] | |
include => oneif_internal | |
include => oneif_emerg | |
include => oneif_local | |
include => oneif_longdist | |
include => oneif_tollfree | |
exten => 120,1,GoSub(sub-oneif-internal,start,1(120,${TMA1})) | |
exten => 121,1,GoSub(sub-oneif-internal,start,1(121,${TMA2})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Phone | |
has_many :line_assignments | |
has_many :lines, through: :line_assignments | |
class Line | |
has_many :line_assigments | |
has_many :phones, through: :line_assignments | |
class LineAssignment | |
belongs_to :phone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Phone | |
has_many :line_assignments | |
has_many :lines, through: :line_assignments | |
class Line | |
has_many :line_assigments | |
has_many :phones, through: :line_assignments | |
class LineAssignment | |
belongs_to :phone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo virt-install -v --connect qemu:///system --vnc --vnclisten localhost --noautoconsole --bridge=br0,model=virtio -n hinds-virt1 --hvm --arch=x86_64 --os-type=windows --os-variant=win2k8 --vcpus=2 -r 2048 -c /opt/vm_os/w2k8r2/w2k8r2_ent.iso --disk /opt/vm_os/virtio-win-1.1.16.vfd,device=floppy --disk /opt/vm_os/hinds-virt1.qcow2,size=25,bus=virtio --accelerate --force -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo virt-install -v --connect qemu:///system --vnc --vnclisten localhost --noautoconsole --bridge=br0,model=virtio -n hinds-virt1 --hvm --arch=x86_64 --os-type=windows --os-variant=win2k8 --vcpus=2 -r 2048 -c /opt/vm_os/w2k8r2/w2k8r2_ent.iso --disk /opt/vm_os/virtio-win-1.1.16.vfd,device=floppy --disk /opt/vm_os/hinds-virt1.qcow2,size=25,bus=virtio --accelerate --force -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#users file | |
oneif Cleartext-Password := "oneif" | |
rad_recv: Access-Request packet from host 172.16.30.240 port 2066, id=3, length=156 | |
User-Name = "b88d123ec628" | |
User-Password = "b88d123ec628" | |
NAS-IP-Address = 172.16.30.240 | |
Called-Station-Id = "64-00-F1-16-18-3D:hinds-wlan1" | |
Calling-Station-Id = "B8-8D-12-3E-C6-28" | |
NAS-Port-Type = Wireless-802.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question 1: Is j-flow ONLY available in flow mode as this doc describes? I believe this is a documentation error? | |
Question 2: MPLS is stated elsewhere to REQUIRE packet mode operation. Below, it says that flow | |
mode is effectively a superset of packet mode. Is this a Juniper documentation error? | |
The following is a snippet from the Juniper doc "APPLICATION NOTE - Branch SrX Series and J Series Selective Packet Services": | |
Traffic is processed by the packet-based forwarding module providing all of the following services: | |
• routing | |
• Quality of service (QoS) |