分类: 系统运维
2007-06-08 05:19:39
|
|
|
|
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 | |
|
|
| |
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 |
rebuild your kernel with these new values NPTY=# NSTRPY=# reboot insf -d ptys -n # | |
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 |
|
|
|
|
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" | |
|
|
|
|
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} halt |
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 |