QNOS operation
17 Feb 2020Reinstall QNOS
- 讓service port連得到LAB 2網段
- 透過console port (minicom),重開機進入ONIE,砍掉舊的QNOS
- 在ONIE中,透過service port把ONIE Installer傳進去並安裝
1 2 3 4 5 6 7(Switch) #reload Hit any key to stop autoboot: 0 => run onie_uninstall ONIE:/ # onie-discovery-stop ONIE:/ # ip addr ONIE:/ # ip addr add 10.103.15.170/24 dev eth0 ONIE:/ # route add default gw 10.103.15.1
1
# scp <your folder>/onie-installer-x86_64-quanta_ix2_rangeley root@<ONIE IP address>:/
1 2 3ONIE:/ # onie-nos-install onie-installer-x86_64-quanta_ix2_rangeley (Switch) #dev sysapiDebugAdvanceLicenseKeyGenerate (Switch) #reload
- Set service port (Telnet)
1 2 3 4 5(Switch) #configure (Switch) (Config)#serviceport protocol none (Switch) (Config)#serviceport ip 10.103.15.169 255.255.255.0 10.103.15.1 (Switch) (Config)#exit (Switch) #copy running-config startup-config
- Auto start the Restful API
1 2(Switch) #configure (Switch) (Config)#application install orig_restful_api auto-restart start-on-boot
- Add scripts
1 2(Switch) #copy scp://shihta@192.168.1.112/Users/shihta/workspace/goenv-vscode-telegraf/switch_script/common/showtransceiver.scr script showtransceiver.scr (Switch) #copy scp://shihta@192.168.1.112/Users/shihta/workspace/goenv-vscode-telegraf/switch_script/common/showifstatus.scr script showifstatus.scr
- Set lldp
1 2 3#configure (Config)#interface range 0/1-0/224 (Interface 0/1-0/224)#lldp portid-subtype mac-address
- edit
/etc/sudoers.d/nfvd
1
admin ALL=(ALL) NOPASSWD: /usr/sbin/dmidecode,/usr/sbin/qnos-show
- export logging
10-a. X86 datetime:
add OS dns server by edit
/etc/resolv.conf
10-b: non-x86 datetime
add OS dns server by CLI
minicom
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21minicom -s # select "Serial port setup" +-----------------------------------------------------------------------+ | A - Serial Device : /dev/ttyS0 | | B - Lockfile Location : /var/lock | | C - Callin Program : | | D - Callout Program : | | E - Bps/Par/Bits : 115200 8N1 | | F - Hardware Flow Control : No | | G - Software Flow Control : No | | | | Change which setting? | +-----------------------------------------------------------------------+ | Screen and keyboard | | Save setup as dfl | | Save setup as.. | | Exit | | Exit from Minicom | +--------------------------+
IX8D
- Ports:
- ssh:
22
- qnos-cli:
22
- Restful API:
8080
- ssh:
fluentd
From Rynn
1 2 3 4 5 6 7 8 9 10 11 12 13
config fluentd entry1 sourcetag 222.1 type localsyslog ==> 設定 fluentd source type severitylevel 5 ==> 設定你所需要的 level enable exit matchpattern 222.** type forward ==> 設定 fluentd 行為 server ipv4 1.2.3.4 24224 ==> 設定 fluentd output server address and port advance buffer flush-interval 10s exit enable exit fluentd ==> 啟動 fluentd
My elasticsearch
1 2 3 4 5 6
fluentd entry1 no matchpattern # remove all matchpattern matchpattern 222.** type elasticsearch host ipv4 10.103.3.74 9200 advance buffer flush-interval 10s
Switch config
fluentd docker image
- docker image:
gcr.io/google-containers/fluentd-elasticsearch:v2.3.2
- config file:
/etc/fluent/fluent.conf
- start container:
docker run -tid -v $PWD/fluent.conf:/etc/fluent/fluent.conf -p 6553:6553/tcp -p 6553:6553/udp gcr.io/google-containers/fluentd-elasticsearch:v2.3.2
Cell 1
- Rack #4: port 13 & 14.
ssh -i ./.ssh/cell1/id_rsa root@10.102.33.112
: