常用的系统状态查询命令:
# lsdev –C –s scsi
列出各个SCSI设备的所有相关信息:如逻辑单元号,硬件地址及设备文件名等。
# ps -ef
列出正在运行的所有进程的各种信息:如进程号及进程名等。
# netstat -rn
列出网卡状态及路由信息等。
# netstat -in
列出网卡状态及网络配置信息。
# df -k
列出已加载的逻辑卷及其大小信息。
# mount
列出已加载的逻辑卷及其加载位置。
# uname -a
列出系统ID号,系统名称,OS版本等信息。
# hostname
列出系统网络名称。
# lsvg –l rootvg,lsvg –p rootvg
显示逻辑卷组信息,如包含哪些物理盘及逻辑卷等。
# lslv –l datalv,lslv –p datalv
显示逻辑卷各种信息,如包含哪些盘,是否有镜像等。
八网络故障定位方法
网络不通的诊断过程:
ifconfig查看网卡是否启动(up)
netstat–i查看网卡状态
Ierrs/Ipkts和Oerrs/Opkts是否>1%
ping自己网卡地址(ip地址)
ping其它机器地址,如不通,在其机器上用diag检测网卡是否有问题。
在同一网中,subnetmask应一致。
网络配置的基本方法:
(1)如需修改网络地址、主机名等,一定要用chdev命令
# chdev –l inet0 –a hostname=myhost
# chdev -l en0 -a netaddr='9.3.240.58' -a netmask=255.255.255.0’
(2)查看网卡状态:# lsdev–Cc if
(3)确认网络地址:# ifconfig en0
(4)启动网卡:# ifconfig en0 up
(5)配置路由
有两种方式加入路由:
永久路由
# chdev -l inet0 -a route=’10.47.0.0’,’9.3.240.59’
临时路由
# route add10.47.1.2 9.3.240.59
用命令netstat -rn查看路由表
附:常用命令列表:
Any XXXX, ####, ****, or X is to be substituted by a name, resource name or #,
fn = filename
DIR = Directory
| = pipe symbol
bosboot -a -d /dev/hdiskx -rebuilds boot record/image on boot device(hdiskx)
cat -view contents of a file
cat /tmp/****.1 -view a file, look at output
cat fn fn > newfile -combines two files to a single file
cd -will return you to default DIR
cd / -will put in root DIR
cd /xxxx -change you to a DIR anywhere is system
cd .. -will drop you out of 1 DIR at a time
cd xxxxx -will change you to a DIR in current dir
cfgmgr -will auto config devices
cfgmgr -v & -(-v) shows processes (&) puts in background
chps -s xx hd# -increase paging space (xx=# of addt'l PPs)
cp oldfn newfn -copy a file
cp oldfn Dirn -copy a file to another directory
crontab -l -list crontab entries for the current user
ctrl + v -will page down 1 page
ctrl + 6 -will page up 1 page
delfn -same as rm -i,promts to remove fn
df -I -shows status of file systems (no inodes)
df -Ik -(k) show status in 1024 bites(1mb)(only AIX 4
diag -a -updates changes in hardware configuration
diag ***** -****= a device type(as tape,disk....Fastpath)
diag -cd rmtX -resets tape drive
dosformat -formats a diskette to DOS
dosdir -list files on dos formated diskette
dosread XX YY -copies dos file XX to aix file YY
doswrite YY XX -copies aix file YY to dos file XX
errpt -generates a one line synopsis of logged errors
errpt | pg -list errorlog 1 page @ a time(1st column is ID)
errpt -a -displays detailed information of logged errors
errpt -s Mmddhhmmyy -select entries posted later than date
errpt -aj XXXXXXX -list detail error by ID number.(XXX=1st column)
errpt -d S -list software errors
errpt -j XXXXXXX -list summary report by ID number.
errpt -aN XXXXXX -list detailed report by resource name column
errpt -N XXXXXXX-list summary report by resource name column
errclear 0 -clears errorlog
errclear -N XXXXX0 -clears errorlog by resource name, 0=all enter
errclear -j XXXXX 0 -clears errorlog by ID number.
finger -same as who but with more details
flcopy -copies a diskette to another diskette
format -formats a diskette in default diskette drive
format -l -formats in lower denity: 1.44 on 2.44 / 720 on 1.44
hostname -responds with host system name
host (hostname) -responds with internet address
instfix -ik IPAR# -lists ipar fix was completely installed
lppchk -v -checks install status of LPPs
lppchk -v 2> /dev/lpX -sends output of lppchk to printer lpx
lpstat -a all -view all printer queues
lptest 80 5 > /dev/lp0 -send test pattern to lp0
ls -list names of files & directories in current dir
ls -lia -list details of files, current dir & subdir
ls -al -list details of files or dir in current dir
lsattr -El xxxxxx -list specific settings on a device
lsdev -C | sort -d -f -list system hardware (devices)
lsdev -C | grep 00-0X -list resourses for a adapter
lsdev -Cc xxxxx -H -list devices(xxx=tty,printer,disk,memory,adpt
lsdev -Cs scsi -list scsi devices(not serial or raid)
lsdev -Cc tape -list tape devices
lsdev -Cs pci -list pci devices
lsdev -Cs isa -list isa devices
lscons -lists the assigned console
lscfg -list hardware list (same as diags list)
lscfg -rl mem* |pg -lists the memory on PCI bus machines
lscfg -vl XXXXX -list config info from a device.(rmt0,hdisk,etc)
lscfg -vl sysplanar0 -lists the machine type, model, s/n on SMP
lsfs -list all filesystems + data from "df" cmd
lslpp -l | grep BROKEN -lists incomplete ptfs
lslv -m hd5 -finds boot drive under pv1 column
lsps -a -checks available paging space
lsps -s -checks available paging space
lspv -lists information about the physical volumes
lspv hdisk# -list drive info
lspv -l hdisk# -lists logical volume group disk in
lsuser -f ALL -lists all attributes for all users
lsvg -lists volume groups
lsvg -p XXXXXX -lists disks in volume group (xxxxx= volume name)
more -reads files and displays the text one screen at a time.
mpcfg -df -list all setting the machine is set to (smp)
mpcfg -cf 11 1 -changes to fast IPL on SMP machines (smp)
mv fn (path fn) -move and rename a file
oslevel -shows AIX version (3.2.4 and above)
pg -reads and displays text one screen at a time.
pdisable -makes unavailable or shows all disabled tty's
pdisable tty# -disables a tty
penable -makes available or shows all enabled tty's
penable tty# -enables a tty
ps -el |pg -look at process running on system
pwd -list what DIR you are currently in
r -repeats last command
rm -i ******* -remove a file & will prompt you if you are sure
rmdev -l XXXXX -removes a device and defines it to data base
rmdev -l XXXXX -d -removes a device and deletes it from data base
set -o vi -sets up to veiw cammands that have been run
:wq -write(save) and quit file
Esc + k -used with SET command to list last command
k,l -k=list next command ran, l=steps you thru command
I -use with SET command inserts characters
j -steps you backwards
cw -cw=removes a word,just type in new word
(use with Esc)
a,x,r -a=added text, x=delete text, r=replace text(r+letter)
R -lets you type over letters or words
smit ***** -(*****= tape,disk,tty,etc.fastpath)
su -stands for switch user,(NOT super user)
su -switches to root id or prompts you for password
su XXXXXX -switches to XXXXXX's id
tar -cvf /dev/rmtX /etc -will copy /etc to a tape drive
tar -tvf /dev/rmtX -will read a tape drive
tctl -f /dev/rmtX rewoffl -rewind & eject tape
tctl -f /dev/rmtX.1 fsf 3 -forward advances a tape to be read by TAR
tctl -F -list avail commands(-F flag is not correct)
tctl retension -retensions tape in tape drive
& -put any command in background with process ID
uptime -how long since last IPL and how many users on system
vmstat # # -reports virtual memory statistics and more
iostat # # -reports CPU,disk & cdrom statistics
use with vm & iostat -1st #(how many sec to repeat), 2nd #(how many times)
who -shows users on system
who am i -shows user id on your terminal & tty number
USE the following with other commands.
---------------------------------------------------
>/tmp/****.1 -creates a file (used with lsXXX command)
>/dev/lp# -redirectes output to a printer(use with a comd)
|grep -is useful to search for text in a file.
|pg -use after any command to view one page at a time
| -pipe sign - Takes the output of one command and
feeds it to the input of another.
> -redirect sign or greater than sign
/ -slash sign
/ -back slash sign
>> -double redirect will add text to end of file
& -put any command in background with process ID
MUST unmount file system 1st to run fsck & dfsck/only use with a problem
----------------------------------------------------------------------------------------------
fsck XXXXXXX -will check a file system for errors & prompt
dfsck /XXXX /XXXX -will check 2 different file sys at the same time
FOLLOWING command lines will delete a group of devices as a group, the #,
sign is the hdisk#'s that you want to delete.(this is an exampe.)
--------------------------------------------------------------------------------------------------
for disk in # # # # -this line and the next 3 line work together
do -the prompt will be > (REMEMBER to hit enter)
rmdev -l hdisk# {disk} -d -the prompt will be > (brackets around disk change)
done -the prompt will be > (on a printout. change to -)
SSA RELATED COMMANDS
-----------------------------------------
lsattr -El ssaX -list attributes of SSA adapters
lscfg -vl ssaX -list VPD of SSA adapters
lsdev -C | grep SSA -list all SSA devices
lslpp -L | grep SSA -list SSA device drivers
maymap -ap -maymap display of SSA loop
maymap -alph -maymap display of SSA loop
lscfg -vl pdisk* -list VPD of pdisks
ssaxlate -l hdiskX -list hdisk to pdisk assignment
ssaxlate -l pdiskX -list pdisk to hdisk assignment
ssa_rescheck -l hdiskX -show hdisk reservation status
FOLLOWING CMDS LIST, COPY, AND RESTORE FOR cpio,tar,dd,backup,dos:
NOTE: The fd0 is just a dev. so you may use any media you desire.
-----------------------------------------------------------------------------------
LIST COPY
------ --------
cpio -itv < /dev/fd0 ls /tmp/fn | cpio -ov > /dev/fd0
tar -tvf /dev/fd0 tar -cvf /dev/fd0 fn
dd li -l | dd dd if=fn f=/dev/fd0
restore -Tf /dev/fd0 backup -0 -uf /dev/fd0 fn By INODE
restore -Tf /dev/fd0 find / -print | backup -i -f/dev/fd0 By NAME
dosdir doswrite -a (AIX fn) (fn.ext)
TO RESTORE
-------------------
cpio -iv fn < /dev/fd0
tar -xvf /dev/fd0
dd f=/dev/fd0 if=fn
restore -xvf /dev/fd0 fn BY NAME/INODE, restore understands unless special
flags were used.
dosread -a (fn.ext) (AIX fn)
TO DOCUMENT THE SYSTEM
-------------------------------------------
lscfg -v > /dev/lpx -to list sys config/VPD
lsuser -f ALL > /dev/lpX -to list users
lsdev -Cc tty -H -to list all tty's
lsdev -Cc lp -H -to list all lp's
lsattr -El ttyX > /dev/lpX -to list ttyX parameters (do for each tty)
lsattr -El lpX > /dev/lpX -to list lpX parameters (do for each lp)
lpstat > /dev/lpX -to list queues
lsfs > /dev/lpx -to list filesystems
lspv > /dev/lpx -to list hard drives
lspv hdiskx -to list hard drive config (do for each drive)
lspv -l hdiskx -to list files on drive
lsvg rootvg -to list rootvg data
plus printout of or save to diskette:
------------------------------------------
/etc/inittab
/etc/objrepos/Cu*
/etc/passwd
/etc/filesystems
/etc/security/passwd
/etc/hosts
/sbin/rc.boot
--------------------------------------------------------------------------------
查看交换区信息:
lsps -a显示交换区的分布信息
lsps -s显示交换区的使用信息
slibclean清除处理程序遗留的旧分页信息
smit mkps建立交换区空间信息
swapon -a启动所有的分页空间
/etc/swapspaces存放分页空间表格信息
显示卷信息:
lsvg显示卷的名称
lsvg -l rootvg显示rootvg卷的详细信息
mount卷的方法:
varyonvg datavg加载datavg卷
mount /dev/data1加载datavg下的一个data1卷
裸设备类型:raw,jfs jfs可以转变成文件系统,而raw则不行
在裸设备上安装oracle系统:
修改裸设备的权限,如裸设备名为system01,安装数据库用户为oracle
chown oracle:dba /dev/system01
chown oracle:dba /dev/rsystem01
在使用文件时必须用rsystem01
smit快速路径名称:(smit:图形方式,smitty:字符方式)
dev设备管理
diag诊断
jfs定期档案管理系统
lvm逻辑卷册系统管理员管理
nfs NFS管理
sinstallp软件安装及维护
spooler列印队列管理
system系统管理
tcpip TCP/IP管理
USER使用者管理
clstart,clstop:启动和停止cluster
lssrc -g cluser:查看cluser的状态
查看已安装的软件信息:
ls -aF /usr/lpp (lppicensed Program Products)
查看安装媒体内容:
installp -q -d /dev/cdrom -l
启动时自动加载文件系统信息:
需要加载的信息存放在/etc/filesystems
mount -t nf加载所有在/ect/filesystems中定义type=nfs的文件系统
显示已加载的文件系统及状态:df -v,mount
查看错误日志信息:
errpt -a
有关TCP/IP的命令
网路卡:
smit chgenet,chgtok,chgfddi,opschange,mktty:adptr架构快速路径
smit mkinet,ppp:slip与ppp快速路径
ifconfig:config界面
位址:
/etc/hosts静态主机表
/etc/resolv.conf位址解析的名称服务器
/etc/named.boot名称服务器架构
/etc/named.ca根名称服务器快取
/etc/named.data位址列表
/etc/named.rev反转指标列表
nslookup查询名称服务器资讯
网络路由:
route管理路由
netstat -rn列出定义的路由
routed路由(daekmin rip)
gated路由(daekmin rip、egp、hello)
/etc/gateways已知网关
/etc/networks
相关推荐
从ARCore到AICore:揭秘Google如何通过系统级服务推动Android生态创新
本文深入探讨了Google如何通过AICore等系统级服务推动Android生态创新。从ARCore到AICore,Google通过分层解耦策略将AI能力下沉至系统层,实现端侧大模型推理,如Gemini Nano在Pixel 8 Pro中的应用。文章剖析了AICore的技术架构、开发者赋能路径及场景化实践,展示了其在通信、内容创作和生产力工具中的卓越表现。
AIX 添加路由
AIX 添加路由:oute add -net 192.168.1.0 -netmask 255.255.255.0 127.0.0.1AIX 查看路由信息:netstat -rn查看包的路由具体信息:traceroute www.baidu.comtraceroute 命令用途打印 IP 信息包至某个网络主机的路由。语法tracerou
LaTeX双栏浮动结构实战:用dblfloatfix解决跨栏图表排版难题
本文深入探讨了LaTeX双栏浮动结构在学术论文排版中的常见问题,特别是IEEE会议论文中的跨栏图表定位难题。通过介绍dblfloatfix包的整合解决方案,帮助用户实现精准的底部定位和浮动顺序保持,提升排版效率与质量。
aix 路由配置
查看、配置路由列表,如查询命令为:#netstat -rnRouting tables Destination Gateway Flags Refs Use If PMTU Exp Groups Route Tree for Protocol Family 2 (Internet): default 10.0
V-rep机器人仿真(Win10):UR5+RG2+Kinect+YOLOV3+DDPG+Pytorch(第四部分:YOLOV3图像识别)
这是一个V-rep机器人仿真实验,较为简单,适合初学者在入门图像识别、机器学习、机器人学的内容时进行学习与训练。 实验涉及的内容有:V-rep机器人仿真,YOLOV3图像识别,强化学习DDPG,UR5机械臂及RG2机械手,Kinect摄像头。 使用环境:Win10,Pytorch0.4,V-rep 整个实验一共由多篇文章组成,本文是第四部分。 第四部分:YOLOV3图像识别 文章目录第四部分:YO...
欧姆龙PLC的FinsTCP协议
三个流行的PLC: PLC 通讯协议 默认IP和端口 区别 西门子S7-1200 S7 192.168.1.201 :102 2次验证(正常连接后,第一次发不断开,第二次发断开) 三菱Q系列 MC 192.168.1.250 :4096 不验证(正常连接后,怎么发都不断开) 欧姆龙CJ-2M系列 FinsTCP 192.168.1.14 :9600 1次验证(正常连接后,第一次发断开) ...
网络之静态路由的配置
静态路由的原理
iOS马甲包过审实战:如何用5天时间搞定4.3审核(附完整代码混淆方案)
本文提供了一套为期五天的高效实战方案,专门解决iOS应用因重复或抄袭问题而被App Store的4.3条款拒绝的难题。方案涵盖深度分析、代码混淆、资源翻新及环境隔离等系统性步骤,并附有完整的代码混淆示例,旨在帮助开发者在合规框架内重塑应用,显著提升过审成功率。
LINUX常用的系统状态查询命令
http://blog.chinaitlab.com/user1/817882/archives/2006/121194.html# lsdev –C –s scsi 列出各个SCSI设备的所有相关信息:如逻辑单元号,硬件地址及设备文件名等。 # ps -ef 列出正在运行的所有进程的各种信息:如进程号及进程名等。 # netstat -rn 列出网卡状态及路由信息等。 # n
使用ClickHouse JDBC官方驱动,踩坑无数
这个问题我在网上查原因说是由于Zookeeper压力过大,表变成只读状态,导致ClickHouse插入数据失败。写入数据频率过高。Zookeeper中的集群节点挂掉。而我们项目出现这个问题的原因是第一个:写入数据频率过高。但是在网上搜资料的过程中,我又发现了另外一个问题:我们项目用了JDBC驱动,但ClickHouse官方并不推荐。。证实了官网确实不建议使用驱动:而应该改成驱动,并且推荐使用0.3.2以上的版本:于是,后面几天开始了ClickHouse的JDBC驱动升级之旅。
《Python基础教程》专栏总结篇
今天给大家带来的文章是《Python基础教程》专栏总结篇,希望能对同学们有所帮助。 文章目录 1. 背景 2. 专栏亮点 3. 你的收获 4. 详细目录
AIX常用命令汇总(zt)
AIX常用命令汇总(zt)http://blog.youkuaiyun.com/mustbelove/archive/2006/12/13/1441156.aspx1. AIX系统查看操作系统版本#bootinfo -y 可以查看操作系统的位数#oslevel 可以查看操作系统版本#oslevel -r 可以查看操作系统小版本号 2. IBM pSeries服务器AIX系统的
万字详解YOLOv8网络结构Backbone/neck/head以及Conv、Bottleneck、C2f、SPPF、Detect等模块
YOLOv8是由Ultralytics开发的最先进的目标检测模型,推升了速度、准确性和用户友好性的界限。YOLO这一缩写代表“你只看一次”(You Only Look Once),通过在一次网络传递中同时预测所有边界框,提升了算法的效率和实时处理能力。相比之下,其他一些目标检测技术需要经过多个阶段或过程来完成检测。YOLOv8在流行的YOLOv5架构上进行了扩展,在多个方面提供了改进。
AIX常用命令汇总
1. AIX系统查看操作系统版本#bootinfo -y 可以查看操作系统的位数#oslevel 可以查看操作系统版本#oslevel -r 可以查看操作系统小版本号 2. IBM pSeries服务器AIX系统的常用命令IBM pSeries服务器AIX系统的常用命令,包括如何移动与重命名文件、如何在系统中移动或者重命名目录、如何删除目录、如何为文本文件排序
TMS_WebGMaps_1.9.8.0_Full_Source
TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder
汉书HE8,好用的汇编代码编写工具
汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大
AIX 常用命令汇总
AIX 常用命令汇总 在使用 AIX® 和 System p™ 服务器遇到问题时,您是否希望能够自己找到答案呢?您是否希望不必总是求助于专业支持人员,从而节省一些时间呢?好,本文的作者将讨论一些能够回答这些问题的 AIX 命令,并告诉您如何进一步寻找其他问题的答案。 3 评论: Shiv Dutta, 技术顾问, IBM 2006 年 12 月 07 日
最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版
Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。
UNIX(AIX)系统常用命令
UNIX(AIX)系统常用命令 AIX的命令格式: $command option(s) argument(s) command:命令 option(s):命令选项,均以-号开始 argument(s):参数 命令 用途 ------------------------------------------------------- prtconf 显示系统的各项主要配置 s
jre9下载 jdk9
(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】
AIX常用命令集锦
AIX常用命令集锦 命令: 1 telnet ip 连接到小型机 2 login: team08 password: 登陆 3 passwd 更改口令 4 logout 退出(直接退出系统) 5 exit
AIX 常用命令及功能一览表
AIX 常用命令及功能一览表 下面是常用的一些命令的语法以及功能描述: oslevel Returns operating system level whence (program) Returns full path of program whereis (program) Returms full path of program lslpp -L all list all in
AIX 常用命令 -- 备忘录
AIX常用命令 目录操作 命令名 功能描述 使用举例 mkdir 创建一个目录 mkdir dirname "mkdir yaohc/test" rmdir 删除一个目录 rmdir dirname "rmdir yaohc/test" mvdir 移动或重命名一个目录 mvdir dir1 dir2 "mvdir test tes
基于AIX VIOS常用命令整理
1. 创建 VIO virtual disk 可以切换到AIX shell命令模式 oem_setup_env 1.1建立新的VG,划分LV划出虚拟磁盘 $...
IBM AIX 平台下常用命令
本文介绍了,如何查看aix系统os version,IBM pSwries服务器常用命令及注意事项。 1.AIX系统查看操作系统版本 #bootinfo -y 可以查看操作系统的位数 #oslevel 可以查看操作系统版本 #oslevel -r 可以查看操作系统小版本号 2.IBM pSeries服务器AIX系统的常用命令 IBM pSeries服务器AIX系统的常用命令,包括
545



被折叠的 条评论
为什么被折叠?



