Debugging a Bash Script
Debugging a Bash Script Enabling verbose Mode ~]$ bash -v demo.sh Syntax Checking Using noexec Mode ~]$ bash -n demo.sh Debugging Using xtrace Mode ~]$ bash -x demo.sh Identifying Unset Variables ~]$ bash -u demo.sh Debugging Specific Parts of the Script #!/usr/bin/env bashset -xecho "Debugging"set +xecho "Script Ended" Bash Special Variables #!/usr/bin/env bash# Debug output script filename, line number, function namePS4='+ ${BASH_SOURCE}:${LINENO}:${FUNCNAME[0]:+${FUNCNAME[0]}()} ' Redirec...
Silent installation of Oracle Database 11g
Silent installation of Oracle Database 11g # Install database software./runInstaller -silent -force -responseFile /home/oracle/db_install.rsp# Install grid software./runInstaller -responseFile /home/grid/grid_install.rsp -silent -ignorePrereq -ignoreSysPrereqs -showProgress# Create listenernetca -silent -responsefile /home/oracle/netca.rsp# Create instancedbca -silent -responseFile /home/oracle/dbca.rsp db_install.rsp oracle.install.option=INSTALL_DB_SWONLYORACLE_HOSTNAME=oracleUNIX_GROUP_N...
Archive Disk Exhaustion on VCSA
Archive Disk Exhaustion on VCSA VCSA 7.0.3 20051473 Symptoms The /storage/archive is being used at 95% capacity. root@vc [ ~ ]# df -h /storage/archiveFilesystem Size Used Avail Use% Mounted on/dev/mapper/archive_vg-archive 49G 45G 2.4G 95% /storage/archive Solution root@vc [ ~ ]# find /storage/archive/vpostgres -type f -mtime +30 -exec rm -f {} \;root@vc [ ~ ]# df -h /storage/archive/Filesystem Size Used Avail Use% Mou...
Log Disk Exhaustion on VCSA
Log Disk Exhaustion on VCSA VCSA 7.0.3 20051473 Symptoms Log Disk Exhaustion on 10. Cause The /storage/log is being used at 96% capacity. root@vc [ ~ ]# df -h /storage/logFilesystem Size Used Avail Use% Mounted on/dev/mapper/log_vg-log 10G 9.5G 0.4G 96% /storage/log Solution 1: Expand the file system Login VCSM(:5480) and confirm the disk number corresponding to /storage/log, such as Hard Disk 5. Remove all snapshot of vCenter...
vCLS VMs Unable to Power On with No Host Compatible Error
vCLS VMs Unable to Power On with No Host Compatible Error VMware vSphere vSAN 7.0.3 Symptoms vCLS VMs Unable to Power On with "No Host Compatible" Error Due to MWAIT CPU Feature Requirement. Cause The "monitor/mwait" CPU feature is disabled in the server BIOS settings. Solution Enable the MONITOR/MWAIT feature on BIOS. Reference ・ vCLS VMs Unable to Power On with "No Host Compatible" Error Due to MWAIT CPU Feature Requirement ・ VxRail: vSphere DRS Functionality is Impacted Due to Un...
python-docx
python-docx Hearding Style (标题) docx.styles['Heading 1'].font.name = 'Arial'docx.styles['Heading 1']._element.rPr.rFonts.set(qn('w:eastAsia'), '微软雅黑') Paragraph Style (段落) for para in docx.paragraphs: para.alignment = WD_ALIGN_PARAGRAPH.LEFT para.paragraph_format.line_spacing_rule = WD_LINE_SPACING.EXACTLY para.paragraph_format.line_spacing = Pt(14) para.paragraph_format.space_before = Pt(14) para.paragraph_format.space_after = Pt(14) Normal Style (正文) docx.styles['Normal'...
IBM Storwize V7000 Gen1,2 Service Manual
IBM Storwize V7000 Gen1,2 Service Manual IBM Storwize V7000 Gen1,2 Canister and port IPv4 address IPV4 subnet mask User/Password Canister 1 (left) port 1 (left) 192.168.70.121 255.255.255.0 superuser/passw0rd Canister 2 (right) port 1 (left) 192.168.70.122 255.255.255.0 superuser/passw0rd Hard Drive Replacement Hard Drive LEDs ・ Drive indicators for control enclosures | Run Fix Procedures 磁盘显示脱机 显示无从属卷 查看事件信息 运行修订步骤 核对坏件信息,点下一步 选择【继续更换驱动器】,点下一步 先更换驱动器后,再点下一步 修订步骤完...
Unary DRS for Dameng Database
Unary DRS for Dameng Database Prepare create user unasync identified by Unasync123;GRANT "PUBLIC","RESOURCE" to "unasync";GRANT SELECT ON DBA_TABLES to unasync;GRANT SELECT ON DBA_TAB_COMMENTS to unasync;GRANT SELECT ON DBA_TAB_COLUMNS to unasync;GRANT SELECT ON DBA_CONSTRAINTS to unasync;GRANT SELECT ON DBA_CONS_COLUMNS to unasync;GRANT SELECT ON DBA_PART_KEY_COLUMNS to unasync;GRANT SELECT ON DBA_OBJECTS to unasync;GRANT SELECT ON DBA_CONSTRAINTS to unasync;GRANT SELECT ON DBA_IND_COLUMNS...
How to Transfer or seize Operation Master roles in Active Directory Domain Services
How to Transfer or seize Operation Master roles in Active Directory Domain Services Transfer Operation Master roles C:\Users\Administrator.SJ> netdom query dc帐户在域中的域控制器列表:MSAD01MSAD02命令成功完成。C:\Users\Administrator.SJ> netdom query fsmo架构主机 MSAD02.sj.com域命名主机 MSAD02.sj.comPDC MSAD02.sj.comRID 池管理器 MSAD02.sj.com结构主机 MSAD02.sj.com命令成功完成。C:\Users\Administrator.SJ> ntdsutilntdsutil: rolesfsmo maintenance: connectionsserver con...
Seize schema master fails with insufficient rights
Seize schema master fails with insufficient rights Windows Server 2019 Symptoms fsmo maintenance: seize schema masterAttempting safe transfer of schema FSMO before seizure.ldap_modify_sW error 0x32(50 (Insufficient Rights).Ldap extended error message is 00002098: SecErr: DSID-03152832, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0Win32 error returned is 0x2098(Insufficient access rights to perform the operation.))Depending on the error code this may indicate a connection,ldap, or role trans...














