操作系统
dba某人
从删库到跑路!!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python 模式ssh登录执行命令
# --*-- coding: UTF-8 -*-import paramikoSSH_HOST = 'xx.xx.xx.xx'SSH_PORT = '22'SSH_USER = 'xx'SSH_PASS = 'xx'def ssh_client(remote_cmd): client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.c...原创 2020-12-01 10:54:39 · 819 阅读 · 0 评论 -
linux硬件信息查询
linux物理cpu个数:cat /proc/cpuinfo |grep "physical id" |sort |uniq|wc -llinux每个物理cpu核数:cat /proc/cpuinfo |grep "cpu cores"|uniqlinux逻辑核数:cat /proc/cpuinfo |grep "processor"|wc -llinux系统版本:lsb_release -alinux系统位数:file /sbin/init...原创 2020-11-02 16:56:08 · 144 阅读 · 0 评论 -
AIXbootinfo详解
bootinfo详解bootinfo -s hdisk 返回磁盘大小,单位是mb bootinfo -k(小写)bootinfo -m返回机器类型码 bootinfo -K(大写)返回当前系统运行的内核为32位还是64位 bootinfo -c-c Displays bootp daemon reply packet information stored with IP...原创 2018-07-18 09:33:25 · 3212 阅读 · 0 评论 -
AIX通过端口查进程
第一步:xxx:root:/> netstat -Aan | grep 8080 | grep LISTENf10006000a7b6398 tcp 0 0 *.8080 *.* LISTEN 第二步:xxx:root:/> rmsock f1000e0000ec63b8 tcpcbThe so...原创 2018-07-18 09:46:26 · 1946 阅读 · 0 评论 -
linux新增磁盘后找不到解决方法
存储正常分配到主机后做以下操作:# ls /sys/class/fc_host (会看到host1,host2...hostN,对每个host进行如下操作)# echo "- - -" > /sys/class/scsi_host/host1/scan (中间是有空格的)!!# echo "- - -" > /sys/class/scsi_host/host2/scan....原创 2018-07-18 10:07:22 · 16362 阅读 · 0 评论
分享