excel生成随机12位密码

分类
故障描述

  无

故障分析

  无

处理过程

在Excel下用下面公式自动生成12位加密密码

=TEXTJOIN("", TRUE, CHAR(RANDBETWEEN(65,90)), CHAR(RANDBETWEEN(97,122)), CHAR(RANDBETWEEN(48,57)), CHAR(CHOOSE(RANDBETWEEN(1,4),64,35,36,38)), CHAR(RANDBETWEEN(65,90)), CHAR(RANDBETWEEN(97,122)), CHAR(RANDBETWEEN(48,57)), CHAR(CHOOSE(RANDBETWEEN(1,4),64,35,36,38)), CHAR(RANDBETWEEN(65,90)), CHAR(RANDBETWEEN(97,122)), CHAR(RANDBETWEEN(48,57)), CHAR(CHOOSE(RANDBETWEEN(1,4),64,35,36,38)))

建议/总结

  无

Rocky 9安装Zabbix 7中文字符乱码

分类
故障描述

  无

故障分析

  无

处理过程

1、安装中文支持

dnf install langpacks-zh_CN.noarch

2、配置连接字体

ln -fs /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc /etc/alternatives/zabbix-web-font	
建议/总结

  图表乱码如下方法:

1、上传msyh.ttc到服务器,位于c:\windows\fonts\目录下。

2、登陆Zabbix服务

cd /usr/share/zabbix/assets/fonts/
#备份原有图形字体
mv graphfont.ttf graphfont.ttf-b
#用微软黑雅字体。
cp /home/omuser/msyh.ttc graphfont.ttf

 

3、Zabbix 7.2

yum install -y fontconfig langpacks-zh_CN.noarch
yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm
yum install google-roboto-fonts
#
ln -fs /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc /etc/alternatives/zabbix-web-font
#7.2 字体名zabbix-web-font变成zabbix-web-ui-font
ln -fs /usr/share/fonts/google-noto-cjk/NotoSansCJK-DemiLight.ttc /etc/alternatives/zabbix-web-ui-font

通过IPMITOOL批量修改服务器密码

分类
故障描述

  无

故障分析

  无

处理过程

1、查看用户ID:ipmitool.exe -I lanplus -H 10.48.2.1 -U Administrator -P Admin@9000 user list

ipmitool.exe -I lanplus -H 10.48.2.1 -U Administrator -P Admin@9000 user list
ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
1                    true    true       true       NO ACCESS
2   Administrator    true    true       true       ADMINISTRATOR
3                    true    true       true       NO ACCESS
4                    true    true       true       NO ACCESS
5                    true    true       true       NO ACCESS
6                    true    true       true       NO ACCESS
7                    true    true       true       NO ACCESS
8                    true    true       true       NO ACCESS
9                    true    true       true       NO ACCESS
10                   true    true       true       NO ACCESS
11                   true    true       true       NO ACCESS
12                   true    true       true       NO ACCESS
13                   true    true       true       NO ACCESS
14                   true    true       true       NO ACCESS
15                   true    true       true       NO ACCESS
16                   true    true       true       NO ACCESS
17                   true    true       true       NO ACCESS

2、设置密码ipmitool -I lanplus -H 10.48.2.1 -U Administrator -P Admin@9000 user set password 2 Xfusion@2023

返回值

Set User Password command successful (user 2)
建议/总结

  无

飞塔防火墙Debug常用命令

分类
故障描述

  无

故障分析

  无

处理过程

Debug Flow命令解析:
diagnose debug flow filter addr x.x.x.x                //过滤某个IP
diagnose debug flow show function-name enable          //显示功能模块名称
diagnose debug console timestamp enable                //显示时间戳
diagnose debug flow trace start 10                    //开启debug flow trace并显示10条debug信息
diagnose debug enable                                  //开启debug命令

diagnose debug flow trace stop                         //关闭debug flow trace
diagnose debug flow filter clear                       //清除过滤条件
diagnose debug disable                                 //关闭debug命令
diagnose debug reset                                   //重置所有的debug命令

建议/总结

  无

mvn代理设置

分类
故障描述

  mvn编译时,使用外网环境下载,需代理。

故障分析

  无

处理过程

/opt/apache-maven/conf/settings.xml

   <proxy>
     <active>true</active>
     <protocol>http</protocol>
     <host>x.x.x.x</host>
     <port>8088</port>
     <nonProxyHosts>*.aliyun.com|huaweicloud.com </nonProxyHosts>
   </proxy>
 </proxies>

建议/总结

  无

SecureCRT默认会话标准配置

分类
故障描述

  无

故障分析

  无

处理过程

    SecureCRT是我们常用的远程工具,为规范配置,默认会话标准配置规范如下:

     1.创建SecureCRT日志目录;例如d:\crtlog\

     2.选项>编辑默认会话

     3.日志文件处配置为:D:\crtlog\%S\%Y%M%D%h%m.txt,并选中在连接上开始记录日志、半夜时启用新日志。

如下图所示

crt.session.config
建议/总结

  无