#собственно думаю понятно, что я хотел сделать
DES-1210-10:5# cable diagnostic port 9
Command: cable diagnostic port 9
Perform Cable Diagnostics ...
Port Type Link Status Test Result Fault Distance (meters) Length(M)
---- ----- ----------- ------------ ----------------------- ---------
9 GE Link Down Pair1:OPEN Pair1:10 N/A
Pair2:OPEN Pair2:10
Pair3:OPEN Pair3:10
Pair4:OPEN Pair4:10
admin@SW03_TEST> request diagnostics tdr start interface ge-0/0/1
Interface TDR detail:
Test status : Test successfully executed ge-0/0/1
{master:0}
admin@SW03_TEST> show diagnostics tdr interface ge-0/0/1
Interface TDR detail:
Interface name : ge-0/0/1
Test status : Passed
Link status : Down
MDI pair : 1-2
Cable status : Normal
Distance fault : 0 Meters
Polartiy swap : N/A
Skew time : N/A
MDI pair : 3-6
Cable status : Normal
Distance fault : 0 Meters
Polartiy swap : N/A
Skew time : N/A
MDI pair : 4-5
Cable status : Impedance Mismatch
Distance fault : 19 Meters
Polartiy swap : N/A
Skew time : N/A
MDI pair : 7-8
Cable status : Impedance Mismatch
Distance fault : 20 Meters
Polartiy swap : N/A
Skew time : N/A
Channel pair : 1
Pair swap : N/A
Channel pair : 2
Pair swap : N/A
Downshift : N/A
{master:0}
sshpass - noninteractive ssh password provider
sshpass is a utility designed for running ssh using the mode referred to as "keyboard-interactive" password authentica‐
tion, but in non-interactive mode.
ssh uses direct TTY access to make sure that the password is indeed issued by an interactive keyboard user. Sshpass runs
ssh in a dedicated tty, fooling it into thinking it is getting the password from an interactive user.
The command to run is specified after sshpass' own options. Typically it will be "ssh" with arguments, but it can just
as well be any other command. The password prompt used by ssh is, however, currently hardcoded into sshpass.
$ snmpwalk -v2c -c public 10.0.10.1 ifName
IF-MIB::ifName.1 = STRING: lo
IF-MIB::ifName.2 = STRING: eth0
IF-MIB::ifName.3 = STRING: eth1
IF-MIB::ifName.4 = STRING: eth2
IF-MIB::ifName.5 = STRING: eth3
IF-MIB::ifName.6 = STRING: ifb0
# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 38:2c:4a:bf:18:41 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 00:15:17:0e:24:42 brd ff:ff:ff:ff:ff:ff
# ip route
default via 192.168.0.1 dev eth0
169.254.0.0/16 dev eth0 scope link metric 1000
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.12
# ip netns add TEST
# ip netns exec TEST bash #все последующее выполняется уже "внутри" неймспейса:
# ip route
# ip link
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00