Chinaunix首页 | 论坛 | 博客
  • 博客访问: 678861
  • 博文数量: 156
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1201
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-05 20:08
文章分类

全部博文(156)

文章存档

2010年(13)

2008年(39)

2007年(104)

我的朋友

分类: 系统运维

2007-06-08 05:19:39

Printers
AIX
FreeBSD
HP-UX
Printer Queues /etc/qconfig /var/spool/print /etc/lp/interface/*
Stop LP  stopsrc -s lpd   lpshut
Start LP startsrc -s lpd lpd lpsched
Submit print jobs enq
lp
lpr
qprt
lp lp
LP statistics enq -A
lpq
lpstat
qchk
lpq lpstat
Remove print jobs cancel
lprm
qcan
enq -x
cancel
lprm
cancel
Add printer queue smit mkpq   lpadmin -p pq
Remove Printer queue smit rmpq   lpadmin -x pq
Make default printer export LPDEST="pq"   lpadmin -d pq
TCP/IP
AIX
 
HP-UX
Network IP configuration lsattr -E -l inet0 /etc/rc.conf /etc/rc.config.d/netconf
Hosts IP addresses /etc/hosts /etc/hosts /etc/hosts
Name service switch /etc/netsvc.conf /etc/host.conf /etc/nsswitch.conf
Network parameters no -a sysctl ndd -h
Routing daemon gated routed gated
NIC Configurations ifconfig -a ifconfig -a lanscan -v
Secondary IP Address ifconfig en0 alias IP  ifconfig xl0 alias IP ifconfig lan0:1 IP 
Login prompt HERALD @
/etc/security/login.cfg 
  telnetd -b /etc/issue 
Increase the # of pseudo-terminals odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" |
odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt

chdev -l pty0 -anum=256 -P
reboot

  rebuild your kernel with these new values NPTY=# 
NSTRPY=#

reboot

insf -d ptys -n #
insf -d ptym -n #
insf -d pts -s # -e -v
 

Maximum # of ptys 512   {MAXUSERS}
Remote Shell remsh
rsh
rsh remsh
YP/NIS service binder /usr/lib/netsvc/yp/ypbind  /usr/sbin/ypbind /usr/lib/netsvc/yp/ypbind 

Printers
LINUX
Solaris
Tru64
Printer Queues /var/spool/lpd/lp/* /etc/lp/interfaces/* /usr/spool/lpd
Stop LP  /etc/init.d/lpd stop /usr/lib/lp/lpshut /sbin/init.d/lpd stop
Start LP /etc/init.d/lpd start /usr/lib/lp/lpsched /sbin/init.d/lpd start
Submit print jobs lpr lp
lpr
lp
lpr
LP statistics lpq lpstat lpstat
Remove print jobs lprm cancel
lprm
cancel
lprm
Add printer queue printtool lpadmin -p pq lprsetup
Remove Printer queue   lpadmin -x pq lprsetup
Make default printer   lpadmin -d pq export PRINTER="lp"
TCP/IP
LINUX(RedHat)
Solaris
Tru64
Network IP configuration /etc/sysconfig/network-scripts/  /etc/hostname.*
/etc/inet/*
/etc/defaultrouter
/etc/rc.config
Hosts IP addresses /etc/hosts /etc/inet/hosts /etc/hosts
Name service switch /etc/nsswitch.conf /etc/nsswitch.conf /etc/svc.conf
Network parameters sysctl -a | grep net ndd /dev/[tcp|ip] ?  
Routing daemon routed in.routed routed
NIC Configurations ifconfig -a ifconfig -a ifconfig -a
Secondary IP Address modprobe ip_alias
ifconfig eth0:1 IP
ifconfig hme0:1 IP up ifconfig ln0 alias
Login prompt /etc/issue BANNER @
/etc/default/telnetd
/etc/issue
Increase the # of pseudo-terminals cd /dev
./MAKEDEV -v pty
{/etc/system}
set pt_cnt = #   {SYSV}
set npty = #      {BSD}

{/etc/iu.ap}
ptsl 0 # ldterm ttcompat

halt
boot -r

cd /dev
./MAKEDEV PTY_1
Maximum # of ptys 256 176                {BSD}
3000              {SYSV}
8192
Remote Shell rsh rsh rsh
YP/NIS service binder /sbin/ypbind /usr/lib/netsvc/yp/ypbind /usr/sbin/ypbind

阅读(1887) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~