November 18

Linux: Pull transever information from fiber/fibre sfp

ethtool -m p2p2


Identifier : 0x03 (SFP)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x07 (LC)
Transceiver codes : 0x10 0x00 0x000x01 0x00 0x00 0x00 0x00
: => 10G Ethernet: 10G Base-SR
: => Ethernet: 1000BASE-SX
Encoding : 0x06 (64B/66B)
BR, Nominal : 10300MBd
Rate identifier : 0x02 (8/4/2G Rx Rate_Select only)
Length (SMF,km) : 0km
Length (SMF) : 0m
Length (50um) : 80m
Length (62.5um) : 30m
Length (Copper) : 0m
Length (OM3) : 300m
Laser wavelength : 850nm
Vendor name : Intel Corp
Vendor OUI : 00:1b:21
Vendor PN : FTLX8571D3BCVIT1
Vendor rev : A

Category: Linux | Comments Off on Linux: Pull transever information from fiber/fibre sfp
November 18

Linux: Disk Info

df -hsystemd-nspawn
blkid
gdisk -l /dev/path
fdisk -l
partprobe /dev/path
parted -l

Show Attached Hardware
lshw -class disk

Category: Linux | Comments Off on Linux: Disk Info
November 18

Linux: Using the at command

example to schedule an update followed up with a reboot:at 7:00 AM/usr/bin/yum update -y ; shutdown -r now^dOutput:job 1 at 2019-01-16 07:00 AM
List jobsatq
Display job commandat -c 1
Remove a jobatrm 1
Scheduling examples:Examples of at Command:Example 1: Schedule task at coming 10:00 AM.
 at 10:00 AM
Example 2: Schedule task at 10:00 AM on coming Sunday.
 at 10:00 AM Sun
Example 3: Schedule task at 10:00 AM on coming 25’th July.
 at 10:00 AM July 25
Example 4: Schedule task at 10:00 AM on coming 22’nd June 2015.
 at 10:00 AM 6/22/2015 at 10:00 AM 6.22.2015
Example 5: Schedule task at 10:00 AM on same date at next month.
 at 10:00 AM next month
Example 6: Schedule task at 10:00 AM tomorrow.
 at 10:00 AM tomorrow
Example 7: Schedule task at 10:00 AM tomorrow.
 at 10:00 AM tomorrow
Example 8: Schedule task to execute just after 1 hour.
 at now + 1 hour
Example 9: Schedule task to execute just after 30 minutes.
 at now + 30 minutes
Example 10: Schedule task to execute just after 1 and 2 weeks.
 at now + 1 week at now + 2 weeks
Example 11: Schedule task to execute just after 1 and 2 years.
 at now + 1 year at now + 2 years
Example 12: Schedule task to execute at mid night.
 at midnight
Example of executing a script fileat -m 01:35 < patching

Category: Linux | Comments Off on Linux: Using the at command