Restrict User Logins on Ubuntu
Restrict User Logins on Ubuntu 日志文件 /var/run/utmp: 记录当前正在登录系统的用户信息,默认由 who 和 w 记录当前登录用户的信息,uptime 记录系统启动时间; /var/log/wtmp: 记录当前正在登录和历史登录系统的用户信息,默认由 last 命令查看; /var/log/btmp: 记录失败的登录尝试信息,默认由 lastb 命令查看。 登录历史记录 # 查看最新前30条sudo lastb -n 30# 统计登录次数sudo lastb | awk '{print $3}'| sort | uniq -c SSH 限制 IP 登录脚本 # 编写脚本$ sudo bash -c "cat >/home/ubuntu/ssh_deny.sh" <<EOF#!/bin/bash# set -xlist=$(sudo lastb |awk '{print $3}'|sort |uniq -c|awk '{if ($1 > 4) print $2}')for ip in ${list}do...
How to Replace an Exadata X7-2,X8-2 Compute Node Server Motherboard Assembly
How to Replace an Exadata X7-2,X8-2 Compute Node Server Motherboard Assembly Case Fault information. -> show /SP/faultmgmt /SP/faultmgmt Targets: shell 0 (/SYS) 1 (/SYS/MB) Properties: Commands: cd show-> start /SP/faultmgmt/shellAre you sure you want to start /SP/faultmgmt/shell (y/n)? yfaultmgmtsp> fa show fmadm faulty------------------- ------------------------------------ -------------- --------Time UUID ...
Reinstall Node on Windows Server Failover Cluster
Reinstall Node on Windows Server Failover Cluster Windows Server 2025 Core Hyper-V Situation From Core Edition to Desktop GUI Edition. PS C:\> Get-ClusterResourceName State OwnerGroup ResourceType---- ----- ---------- ------------Cluster Disk 1 Online Cluster Group Physical DiskCluster IP Address Online Cluster Group IP AddressCluster Name ...
Installing GUI Feature on Windows Server 2012 Core
Installing GUI Feature on Windows Server 2012 Core Only for Windows Server 2012 Core Confirm windows edition is Standard or Datacenter. PS C:\> Get-ComputerInfo | Select-Object WindowsProductName, WindowsEditionIdWindowsProductName WindowsEditionId------------------ ----------------Windows Server 2012 Datacenter ServerDatacenter Install GUI feature. # OnlinePS C:\> Install-WindowsFeature -Name Server-Gui-Mgmt-Infra, Server-Gui-Shell -Restart# OfflinePS C:\...
How to Replace the Data Hard Drive on H3C UIS
How to Replace the Data Hard Drive on H3C UIS H3C UIS 7.0 E0720 Login cvknode, check ceph cluster status is 'HEALTH_OK'. Lit on the failed hard drive led. Replace hard drive (remove bad disk, wait 30s then insert new disk). Sync hard drive and refresh. Chose the failed hard drive, click replace buttom. If replace failed, maybe need to clear raid controller cache. /opt/MegaRAID/storcli/storcli64 /c0 show preservedCache /opt/MegaRAID/storcli/storcli64 /c0 /vall dele...
The vmware-updatemgr fails to start
The vmware-updatemgr fails to start 6.7.0.53000 Symptoms ~]# service-control --start vmware-updatemgrOperation not cancellable. Please wait for it to finish...Performing start operation on service updatemgr...Error executing start on service updatemgr. Details { "componentKey": null, "resolution": null, "problemId": null, "detail": [ { "translatable": "An error occurred while starting service '%(0)s'", "args": [ "updatemgr" ...
Rebuilding the Recovery Partition on Windows 11
Rebuilding the Recovery Partition on Windows 11 Windows 11 Windows Server 2022,2025 Method 1: Recreate from Existing WinRE Files Disable WinRE. C:\> reagentc /infoWindows Recovery Environment (Windows RE) and system reset configurationInformation: Windows RE status: Enabled Windows RE location: \\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE Boot Configuration Data (BCD) identifier: f958c1ad-98a8-11f0-a658-c3054a2a70e2 Recovery image location: ...
The vpxd-svcs service start failed after reset all certificates
The vpxd-svcs service start failed after reset all certificates VCSA 6.7 Symptoms ~]# service-control --start --allOperation not cancellable. Please wait for it to finish...Performing start operation on service lwsmd...Successfully started service lwsmdPerforming start operation on service vmafdd...Successfully started service vmafddPerforming start operation on service vmdird...Successfully started service vmdirdPerforming start operation on service vmcad...Successfully started service v...
Multitenant Environment (CDB & PDB) on Oracle 12c
Multitenant Environment (CDB & PDB) on Oracle 12c Related commands 查看是否为 CDB 数据库 SQL> select name, cdb, open_mode, con_id from v$database;NAME CDB OPEN_MODE CON_ID--------- --- -------------------- ----------ORCL YES READ WRITE 0 1> 查看当前容器(Container) SQL> show con_nameCON_NAME------------------------------CDB$ROOT 2> 查看 CDB 容器中的 PDBs 信息(在 CDB 模式下) SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED-----...









