Author Archives: dsg_admin

Obtain and setting the BMC date and time using ipmitool

There are times when viewing the ipmi logs via the following command, the date and time is incorrect. To obtain current BMC time according to the BMC Dynamically change the BMC time Verify the new settings:

Posted in Data Storage, IPMI | Tagged , | Leave a comment

Mapping MAC Numeric Keyboard on VMware Console using Karabiner Elements

I regular problem of mine was launching the VMware remote console on my MAC, and being unable to use the Numeric Keypad. I used Karabiner Elements to create my own custom rules that allow me to do this. First step … Continue reading

Posted in Remote Console, VMWare | Leave a comment

Using AWK to print N lines up until the FIRST MATCH of a string and then exit

Often you are looking for a keyword within a log file but you need to print out X lines BEFORE the first match of a string, THEN exit the search. There are many ways to skin a cat, and here … Continue reading

Posted in Command Line FU | Leave a comment

Ipmitool sel elist error: Timestamp Clock Sync | Asserted

The following error may be seen on a controller when viewing the ‘ipmitool sel elist’ output: 275 | 06/01/2022 | 20:33:53 | Power Unit Pwr Unit Status | AC lost | Asserted 276 | 06/01/2022 | 20:33:54 | Power Unit … Continue reading

Posted in IPMI, Network Attached Storage (NAS) | Tagged , , | Leave a comment

Telnet to a port on a remote machine without ncat or telnet, or nmap

There are situations where you may be working on Linux based system, and telnet, ncat or nmap does not exist. In Linux, you can route a test thru the protocol, destination IP address, and destination  port using the “/dev” linux … Continue reading

Posted in Command Line FU, Networking | Tagged , , , , | Leave a comment

sed print only line AFTER string match

File Example

Posted in Command Line FU | Tagged , , | Leave a comment

Remove Leading and Trailing Whitespace using gsub in AWK

Posted in Command Line FU | Tagged | Leave a comment

Cut all characters after last match using SED

Output

Posted in Command Line FU | Tagged , , | Leave a comment

Increment a variable name within a BASH loop

Example

Posted in Command Line FU | Tagged , , | Leave a comment

Enable CIFS/SMB Debug Logging

The following shows how you may enable additional debug logging on Linux for troubleshooting SMB related issues. Example log output:

Posted in SAMBA/SMB/CIFS | Tagged , , , | Leave a comment