我改aixaix修改系统时间命令怎么改

1393人阅读
UNIX系统命令(76)
linux下用date -s &:30:25&把时间设为日21点30分25秒。
而aix呢?它不认-s这个参数,上网查了一下,原来是:
date -n mmddHHMMYY,mm表示月分,dd表示日期,HH表示小时,MM表示分钟,YY表示年份。
如:date -n 表示把当前时间设为日21点30分。
Unix真是有自己的性格
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:1794090次
积分:17078
积分:17078
排名:第480名
原创:155篇
转载:609篇
评论:41条
(1)(2)(1)(4)(2)(5)(7)(1)(2)(8)(9)(6)(6)(33)(19)(6)(14)(16)(5)(7)(8)(3)(1)(2)(1)(1)(3)(4)(6)(13)(10)(1)(3)(1)(2)(1)(7)(5)(7)(4)(15)(20)(17)(12)(5)(10)(17)(11)(43)(38)(16)(13)(20)(18)(28)(33)(23)(14)(64)(44)(13)(9)(38)(5)(2)查看: 14492|回复: 3
请教:AIX系统下如何更改系统时间
论坛徽章:1
请教:AIX系统下如何更改系统时间
我用的AIX4.3.3系统时间比实际时间快了近一小时,CDE桌面环境上的时间实在无法改变。不知该用什么命令修改时间。另外,系统
上运行着Oracle&&Application 和Oracle数据库,改变时间会不会有不良影响。请指教。
论坛徽章:29
The following is a list of commands that are used specifically for administering AIX:
bosboot&&Initializes a boot device.&&
bootlist&&Alters the list of boot devices (or the ordering of these devices in the list) available to the system.&&
cfgmgr&&Configures devices by running the programs in /etc/methods directory.&&
chcons&&Redirects the system console to device or file, effective next startup&&
chdev&&Changes a device's characteristics.&&
chdisp&&Changes the display used by the low-function terminal (LFT) subsystem.&&
checkcw&&Prepares constant-width text for the troff command.&&
checkeq or checkmm&&Checks documents formatted with memorandum macros.&&
checknr&&Checks nroff and troff files.&&
chfont&&Changes the default font selected at boot time.&&
chfs&&Changes attributes of a file system.&&
chgroup&&Changes attributes for groups.&&
chgrpmem&&Changes the administrators or members of a group.&&
chhwkbd&&Changes the low-function terminal (LFT) keyboard attributes stored in the Object Data Manager (ODM) database.&&
chitab&&Changes records in the /etc/inittab file.&&
chkbd&&Changes the default keyboard map used by the low-function terminal (LFT) at system startup.&&
chkey&&Changes your encryption key.&&
chlang&&Sets LANG environment variable in /etc/environment file for next login.&&
chlicense&&There are two types of user licensing, fixed and floating. Fixed licensing is always enabled, and the number of licenses can be changed through the -u option. Floating licensing can be enabled or disabled (on or off) through the -f option.&&
chlv&&Changes the characteristics of a logical volume.&&
chnamsv&&Changes TCP/IP-based name service configuration on a host.&&
chprtsv&&Changes a print service configuration on a client or server machine.&&
chps&&Changes attributes of a paging space.&&
chpv&&Changes the characteristics of a physical volume in a volume group.&&
chque&&Changes the queue name.&&
chquedev&&Changes the printer or plotter queue device names.&&
chssys&&Changes a subsystem definition in the subsystem object class.&&
chtcb&&Changes or queries the trusted computing base attribute of a file.&&
chtz&&Changes the system time zone information.&&
chuser&&Changes attributes for the specified user.&&
chvfs&&Changes entries in the /etc/vfs file.&&
chvg&&Sets the characteristics of a volume group.&&
chvirprt&&Changes the attribute values of a virtual printer.&&
crfs&&Adds a file system.&&
crvfs&&Creates entries in the /etc/vfs file.&&
exportvg&&Exports the definition of a volume group from a set of physical volumes.&&
extendvg&&Adds physical volumes to a volume group.&&
grpck&&Verifies the correctness of a group definition.&&
importvg&&Imports a new volume group definition from a set of physical volumes.&&
lsallq&&Lists the names of all configured queues.&&
lsallqdev&&Lists all configured printer and plotter queue device names within a specified queue.&&
lsattr&&Displays attribute characteristics and possible values of attributes for devices in the system.&&
lsdev&&Displays devices in the system and their characteristics.&&
lsdisp&&Lists the displays currently available on the system.&&
lsfont&&Lists the fonts available for use by the display.&&
lsfs&&Displays the characteristics of file systems.&&
lsgroup&&Displays the attributes of groups.&&
lsitab&&Lists the records in the /etc/inittab file.&&
lskbd&&Lists the keyboard maps currently available to the low-function terminal (LFT) subsystem.&&
lslicense&&Displays the number of fixed licenses and the status of floating licensing.&&
lslpp&&Lists optional program products.&&
lsnamsv&&Shows name service information stored in the database.&&
lsprtsv&&Shows print service information stored in the database.&&
lsps&&Lists paging space and attributes.&&
lsque&&Displays the queue stanza name.&&
lsquedev&&Displays the device stanza name.&&
lssrc&&Gets the status of a subsystem, a group of subsystems, or a subserver.&&
lsuser&&Displays attributes of user accounts.&&
lsvfs&&Lists entries in the /etc/vfs file.&&
mkcatdefs&&Preprocesses a message source file.&&
runcat&&Pipes the output data from the mkcatdefs command to the gencat command.&&
mkdev&&Adds a device to the system.&&
mkfont&&Adds the font code associated with a display to the system.&&
mkfontdir&&Creates a fonts.dir file from a directory of font files.&&
mkgroup&&Creates a new group.&&
mkitab&&Makes records in the /etc/inittab file.&&
mklv&&Creates a logical volume.&&
mklvcopy&&Adds copies to a logical volume.&&
mknamsv&&Configures TCP/IP-based name service on a host for a client.&&
mknotify&&Adds a notify-method definition to the notify-object class.&&
mkprtsv&&Configures TCP/IP-based print service on a host.&&
mkps&&Adds an additional paging space to the system.&&
mkque&&Adds a printer queue to the system.&&
mkquedev&&Adds a printer queue device to the system.&&
mkserver&&Adds a subserver definition to the subserver object class.&&
mkssys&&Adds a subsystem definition to the subsystem object class.&&
mksysb&&Backs up mounted file systems in the rootvg volume group for subsequent reinstallation.&&
mkszfile&&Records size of mounted file systems in the rootvg volume group for reinstallation.&&
mktcpip&&Sets the required values for starting TCP/IP on a host.&&
mkuser&&Creates a new user account.&&
mkuser.sys&&Customizes a new user account.&&
mkvg&&Creates a volume group.&&
mkvirprt&&Makes a virtual printer.&&
odmadd&&Adds objects to created object classes.&&
odmchange&&Changes the contents of a selected object in the specified object class.&&
odmcreate&&Produces the .c (source) and .h (include) files necessary for ODM application development and creates empty object classes.&&
odmdelete&&Deletes selected objects from a specified object class.&&
odmdrop&&Removes an object class.&&
odmget&&Retrieves objects from the specified object classes and places them into an odmadd input file.&&
odmshow&&Displays an object class definition on the screen.&&
pwdck&&Verifies the correctness of local authentication information.&&
redefinevg&&Redefines the set of physical volumes of the given volume group in the device configuration database.&&
reducevg&&Removes physical volumes from a volume group. When all physical volumes are removed from the volume group, the volume group is deleted.&&
reorgvg&&Reorganizes the physical partition allocation for a volume group.&&
restbase&&Restores customized information from the boot image.&&
rmdel&&Removes a delta from a Source Code Control System (SCCS) file.&&
rmdev&&Removes a device from the system.&&
rmf&&Removes folders and the messages they contain.&&
rmfs&&Removes a file system.&&
rmgroup&&Removes a group.&&
rmitab&&Removes records in the /etc/inittab file.&&
rmlv&&Removes logical volumes from a volume group.&&
rmlvcopy&&Removes copies from a logical volume.&&
rmm&&Removes messages.&&
rmnamsv&&Unconfigures TCP/IP-based name service on a host.&&
rmnotify&&Removes a notify-method definition from the notify-object class.&&
rmprtsv&&Unconfigures a print service on a client or server machine.&&
rmps&&Removes a paging space from the system.&&
rmque&&Removes a printer queue from the system.&&
rmquedev&&Removes a printer or plotter queue device from the system.&&
rmserver&&Removes a subserver definition from the subserver object class.&&
rmssys&&Removes a subsystem definition from the subsystem object class.&&
rmuser&&Removes a user account.&&
rmvfs&&Removes entries in the /etc/vfsfile.&&
rmvirprt&&Removes a virtual printer.&&
savebase&&Saves base customized device data in the ODM onto the boot device.&&
swapoff&&Deactivates one or more paging space.&&
swapon&&Specifies additional devices for paging and swapping.&&
syncvg&&Synchronizes logical volume copies that are not current.&&
usrck&&Verifies the correctness of a user definition.&&
varyoffvg&&Deactivates a volume group.&&
varyonvg&&Activates a volume group.
论坛徽章:21
最好先关闭应用,然后用date命令来改变时间.
确切语法也忘了,man一下吧,很容易的.
论坛徽章:1
多谢指教。我发现了,用smitty工具可以很方便的修改。
itpub.net All Right Reserved. 北京皓辰网域网络信息技术有限公司版权所有    
 北京市公安局海淀分局网监中心备案编号: 广播电视节目制作经营许可证:编号(京)字第1149号AIX用chsec命令修改快捷修改配置文件 - DieAngel - 博客园
AIX的所有配置设置通过一个命令来进行更改配置文件中的键-值对,以达到修改配置的目的。如:group/user/limits/passwd等等
chsec [-f file] [-s Stanza] [-a attribute = value ...]
可以进行修改的配置文件
/etc/security/environ
/etc/security/group
/etc/security/audit/hosts
/etc/security/lastlog
/etc/security/limits
/etc/security/login.cfg
/usr/lib/security/mkuser.default
/etc/nscontrol.conf
/etc/security/passwd
/etc/security/portlog
/etc/security/pwdalg.cfg
/etc/security/roles
/etc/security/rtc/rtcd_policy.conf
/etc/security/smitacl.user
/etc/security/smitacl.group
/etc/security/user
/etc/security/user.roles
/etc/secvars.cfg
补充说明Stanza参数限制
1.修改/etc/security下的environ、last、limists、passwd、user,必须是有效的用户名或default。
2.修改groups时必须是有效的组名或者default。
3.修改portlog时必须是有效的端口名。
4.修改login.cfg时必须是有效的端口名、方法名或usw属性。
5.修改portlog、login.cfg中不存在的节属性时,自动创建该节。
6.passwd文件中的passwd节不能用chsec修改,只能用passwd命令修改
7.修改/usr/lib/security/mkuser.default时必须是admin或user。
1.修改默认密码策略
chsec -f /etc/security/user -s default -a minlen=8 -a histexpire=12 -a umask=077 -a loginretries=6 -a histsize=5
2.禁止root直接登录
chsec -f /etc/security/user -s root -a rlogin=false
3.允许所有用户登录时间
chsec -f /etc/security/user -s defalut -a logintimes=:博客访问: 454892
博文数量: 109
博客积分: 2023
博客等级: 上尉
技术积分: 1717
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: 系统运维
首先需要确保你有足够的权限修改当前的语言环境,如果无法确定,先按照以下步骤进行,如果不能保存的话,就是木有权限了。
先使用命令locale -a看你的系统有没有中文支持
如果没有中文支持,那么
smitty system
==>Manage Language Environment==>Add Additional Language Environments这样你就可以从CD-ROM上导入中文了
smitty system
==>Manage Language Environment& ==>Change/Show Primary Language Environment
&&& ==> Change/Show Cultural Convention, Language, or Keyboard 在随后显示的菜单中,将光标分别移动到一下字段:
Primary CULTURAL Convention Primary LANGUAGE translation Primary KEYBOARD&&使用Esc+4或者是F4键可以显示语言列表,按下,从弹出的菜单中选择“IBM-eucCN”将上述字段改为简体中文,按下回车键。(<FONT color=#键用来返回上一级操作,在操作界面下方有相应的提示)
此外,AIX还包含另外两种中文环境,即“UTF8”和“GBK”,它们与“IBM-eucCN”之区别在于包含了繁体汉字的使用。
切换输入法:
AIX 4.3.3 以前的版本:& & + F1 ---&&+ F4 切换到各种中文输入方法; 右 --- 切换到英文输入;&&AIX 4.3.3:&&&
CTRL + [F2] : 智能 ABC ;&&CTRL + [F4] : 拼音输入;&&CTRL + [F5] : 五笔输入;&&CTRL + [F6] : 郑码输入 ;&&CTRL + [F7] : 表形码输入;&&CTRL + [F9] : 内码输入;&&CTRL + [F10] :英文半角;&
阅读(7336) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。

我要回帖

更多关于 aix 更改时间 的文章

 

随机推荐