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
[net_config (Story21505641)]$ cat autotest/discover.rb | |
Autotest.add_discovery { "rspec2" } | |
#Autotest.add_discovery { "cucumber" } | |
[net_config (Story21505641)]$ gem list | grep autotest | |
autotest (4.4.6) | |
autotest-fsevent (0.2.7) | |
autotest-growl (0.2.16) | |
autotest-rails-pure (4.1.2) | |
autotest-standalone (4.5.8) |
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
begin | |
raise if RUBY_VERSION.to_f < 1.9 | |
rescue Exception | |
errmsg =<<-ERRMSG | |
NetConfig requires ruby 1.9 or greater to run. Please upgrade your ruby | |
installation. | |
ERRMSG | |
exit 1 | |
end |
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
tyler@oneif-nepho1:~$ virt-viewer -c qemu:///system oneif-dav1 | |
(virt-viewer:21422): Gtk-WARNING **: cannot open display: |
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
vlans { | |
pvlan { | |
vlan-id 1000; | |
## | |
## Warning: statement ignored: unsupported platform (srx240b) | |
## | |
no-local-switching; |
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
== Using SIP RTP CoS mark 5 | |
-- Executing [7998@hq_oneif_net_priv:1] Goto("SIP/oneif-tma-bria1-00000288", "oneif_net_confbridge,start,1") in new stack | |
-- Goto (oneif_net_confbridge,start,1) | |
-- Executing [start@oneif_net_confbridge:1] Answer("SIP/oneif-tma-bria1-00000288", "") in new stack | |
-- Executing [start@oneif_net_confbridge:2] Wait("SIP/oneif-tma-bria1-00000288", "0.5") in new stack | |
-- Executing [start@oneif_net_confbridge:3] SayText("SIP/oneif-tma-bria1-00000288", "Conference bridge administrator login") in new stack | |
-- <SIP/oneif-tma-bria1-00000288> Playing 'cepstral-cache/7ebcbb8a16762babf62613d36028c206.slin' (language 'SIP/oneif-tma-bria1-00000288') | |
-- Executing [start@oneif_net_confbridge:4] SayText("SIP/oneif-tma-bria1-00000288", "After the beep. Please enter your administrator PIN followed by the pound sign)") in new stack | |
-- <SIP/oneif-tma-bria1-00000288> Playing 'cepstral-cache/ff310c1c62741c0c034434c5e26732a6.slin' (language 'SIP/oneif-tma-bria1-00000288') | |
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
[oneif_net_confbridge] | |
exten => start,1,Answer() | |
same => n,Wait(0.5) | |
; same => n,SayText(Conference bridge administrator login) | |
; same => n,SayText(After the beep. Please enter your administrator PIN followed by the pound sign)) | |
same => n,Playback(beep) | |
same => n,Read(ADMINPIN,,,,3,5) | |
same => n,Verbose(ADMINPIN => ${ADMINPIN}) | |
same => n,Verbose(${DB(ONEIF_NET/CONF_ADMIN_PIN/${ADMINPIN})}) | |
same => n,GotoIf($[${DB(ONEIF_NET/CONF_ADMIN_PIN)}=${ADMINPIN}]?valid:invalid) |
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
exten => 7998,1,Answer() | |
same => n,Wait(0.5) | |
same => n,Read(ROOM,conf-getconfno,,,3,10) | |
same => n,GotoIf(${DB_EXISTS(ONEIF_NET_CONFROOM/${ROOM})}?yes:no) | |
same => n(no),Playback(conf-errormenu) | |
same => n,SayText(Dial star 7 9 9 8 to set up a new conference room) | |
same => n,Playback(vm-goodbye) | |
same => n,Hangup() | |
same => n(yes),Read(CONFPIN,conf-getpin,,,3,10) | |
same => n,GotoIf($[${DB(ONEIF_NET_CONFROOM/${ROOM})}=${CONFPIN}]?match:nomatch) |
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
def self.passwd(login,passwd) | |
outputs = Hash.new | |
#$expect_verbose = true | |
PTY.spawn("/usr/bin/passwd #{login}") do |gdb_out,gdb_in,pid| | |
gdb_out.expect(/^Enter new UNIX password: /,1) do |r| | |
gdb_in.printf("#{passwd}\n") | |
end | |
gdb_out.expect(/^Retype new UNIX password: /,1) do |r| | |
gdb_in.printf("#{passwd}\n") |
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
def self.passwd(login,passwd) | |
outputs = Hash.new | |
#$expect_verbose = true | |
PTY.spawn("/usr/bin/passwd #{login}") do |gdb_out,gdb_in,pid| | |
gdb_out.expect(/^Enter new UNIX password: /,1) do |r| | |
gdb_in.printf("#{passwd}\n") | |
end | |
gdb_out.expect(/^Retype new UNIX password: /,1) do |r| | |
gdb_in.printf("#{passwd}\n") |
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
def self.change_passwd(login,passwd) | |
outputs = Hash.new | |
#$expect_verbose = true | |
PTY.spawn("/usr/bin/passwd #{login}") do |gdb_out,gdb_in,pid| | |
gdb_out.expect(/^Enter new UNIX password: /,1) do |r| | |
gdb_in.printf("#{passwd}\n") | |
end | |
gdb_out.expect(/^Retype new UNIX password: /,1) do |r| | |
gdb_in.printf("#{passwd}\n") |