<<

A Sysadmin's Unixersal Translator (ROSETTA STONE) OR What do they call that in this world?

Operating System AIX HP-UX Solaris Task (rh) = Red Hat, Solaris 2.0-2.6, 7, 8, 9 Mandrake, Suse,... OS notes (deb) = Debian, Storm, (SunOS 5.*) Progeny, Corel,... SVR4-based smit solstice linuxconf administrative GUI smitty sam admintool yast2 (Suse) wsm smc (8 01/01+) lsuser mkuser useradd useradd useradd managing users chuser userdel userdel userdel rmuser prtconf -v dmesg (if you're lucky) ioscan /usr/platform/` -i`/ /proc/cpuinfo prtconf dmesg (if you're lucky) sbin/prtdiag -v (sun4u and /proc/pci list hardware lscfg adb /proc/meminfo sun4d only) configuration lsattr model psrinfo -v /proc/interrupts lsdev stm (from the SupportPlus isainfo -v /proc/ioports CDROM) dmesg lspci iostat -En show/set setboot /dev/nvram (if you have EEPROM/NVRAM bootlist -o -m normal bootadmin ( boot PROM) it) eeprom values stm hwclock modprobe devfsadm. pre-Solaris 7, use: add device without ioscan -fnCdevtype; cfgmgr -v kerneld drvconfig; devlinks; {disks, reboot insf -Cdevtype insmod tapes, ports} tape device /dev/rmt0 /dev/rmt/0 /dev/st0 /dev/rmt/0 X kvm config xf86config kdmconfig (x86) diskinfo read a disk lspv -l -l prtvtoc pvdisplay whole disk in N/A 2 partition cfdisk label a disk mkvg pvcreate fdisk e2label lvcreate parted (if you have it) format partition a disk mklv fdisk sam fmthard pdisk (on a MAC) /kernel/genunix /hpux (9) /boot/vmlinuz /platform/`uname -m`/ kernel / kernel/unix /stand/vmunix (10+) /boot/bootlx /platform/`uname -m`/ kernel/sparcv9/unix (7+) /usr/samples/kernel/vmtune sysdef sam (installed with the bos getconf show/set kernel sysdef /proc/* adt.samples fileset) /etc/system parameters kmtune (11+) /proc//* /usr/sbin/no (network- getconf ndd related) adb -k show runlevel -r who -r /sbin/runlevel who -r installboot /usr/platform/ disk bootable bosboot -a mkboot fdisk -A(and lilo to `uname -m` manipulate mbr) /lib/fs/ufs/bootblk raw_device_file /etc/rc* (9) startup scripts /etc/rc* /sbin/rc* (10+) /etc/rc* (but may vary) /etc/rc* /etc/init.d/ /etc/init.d/ /sbin/init.d/ cat /proc/meminfo swap -s check swap space lsps -a swapinfo free swap -l ext2 "normal" jfs hfs ext3 ufs filesystem ReiserFS volume-based Linux Volume Manager Solstice DiskSuite jfs jfs (vxfs) filesystem LVM (LVM) VxVM ($) VxVM ($) /etc/checklist system (9) /etc/filesystems /etc/fstab /etc/vfstab (local) description /etc/fstab (10+) smitty vg /opt/VRTSvxva/bin/vxva smitty lvm e2fsadm vg*; lv*; pv* (Veritas) volume smitty jfs lvcreate extendfs /usr/opt/SUNWmd/ manipulation mkvg; chvg; rmvg lvremove fsadm sbin/metatool mklv; chlv; rmlv lvextend (DiskSuite) mkfs; crfs; rmfs

newfs create filesystem crfs mkfs mke2fs mkfs

if=/dev/zero create non-0-length lmktemp prealloc of=filename mkfile empty file bs=1024k count=desired -v cdrfs -o ro /dev/cd0 /cdrom pfs_mountd /etc/init.d/vold ; volcheck mount CDROM pfsd mount /cdrom or pfs_mount mount -F hsfs /dev/sr0 /cdrom smitty cdrom NFS share /etc/exports /etc/exports /etc/exports /etc/dfs/dfstab definitions /etc/xtab /etc/init.d/nfs-server NFS share share exportfs -a exportfs -a reload command shareall (rh) exportfs -a name resolution /etc/netsvc.conf /etc/nsswitch.conf /etc/nsswitch.conf /etc/nsswitch.conf order /etc/resolv.conf ndd lanadmin ifconfig -a ifconfig -a show network no -a landiag /sbin/ifconfig -in interface info lanscan netstat -i (8+) kstat -n hme0 | egrep netstat -in 'ifspeed|duplex' (rh) edit: /etc/hosts, /etc/sysconfig/network, edit: /etc/{resolv.conf, hosts, /etc/sysconfig/ hostname.*, netmasks, network-scripts/ nodename, change IP smitty chinet /sbin/set_parms initial ifcfg-eth0 dumpadm.conf, /*/hosts} (deb) edit /etc/network/interfaces; /etc/init.d/networking sys-unconfig; reboot restart ping one packet ping -c 1 hostname ping hostname 10 1 (9) ping -c 1 hostname ping hostname packetsize 1 ping hostname -n 1 (10+) iptrace nettl etherfind sniff network snoop ipreport netfmt tcpdump (rh) /etc/sysconfig/network (rh) /etc/sysconfig/static- /etc/defaultrouter netstat -r definitions /etc/rc.config.d/netconf routes smitty route (deb) /etc/init.d/network /etc/notrouter (deb) /etc/network /etc/issue.net (telnet) /etc/default/telnetd telnetd, ftpd banner /etc/security/login.cfg /etc/inetd.conf (telnet) (ftp varies; can use tcp /etc/default/ftpd wrappers) /etc/passwd (not Trusted) /secure/etc/passwd (Trusted encrypted /etc/security/passwd 9) /etc/shadow (may vary) /etc/shadow passwords in /tcb/files/auth/ (10+) allow/deny root /etc/security/user /etc/securetty /etc/securetty /etc/default/login logins (rh) rpm -a -i pkginfo show installed rmfn, what (HP-UX 9) (rh) rpm -qa lslpp -L prodreg software swlist (HP-UX 10+) (deb) dselect admintool (deb) dpkg -l

smitty install_all smitty installp (rh) rpm -hiv /usr/lib/instl/sm_inst (deb) dselect add software installp_cmd -a swinstall (deb) apt-get install pkg pkgadd -d 'device' '-c' '-N' '-g' '-X' (deb) dpkg -i precompiled aixpdslib.seas.ucla.edu/ hpux.cs.utah.edu binaries of aixpdslib.html www.linux.org www.sunfreeware.com GPLware and www-frec.bull.com/ linux.tucows.com freeware docs/download.htm hpux.connect.org.uk /opt/softbench/bin/cc ($) /bin/cc (9) /opt/SUNWspro/ C compiler /usr/ibmcxx/bin/cc gcc /usr/bin/cc (10+; not ANSI; bin/cc ($) kernel builder only) showrev -p show level instfix -ivq swlist -l product | (rh) rpm -q prodreg (2.6+) and/or patches someString (deb) dpkg -s patchadd -p installpatch (2.5.1-) patch tool installp update (9) (deb) apt-get update patchadd (2.6+) smitty update_all swinstall (10+) (deb) apt-get upgrade pkgadd /usr/sadm/bin/smpatch (9+) crle configure/show chatr ldconfig ldd runtime linking ldd pldd link library $LIBPATH $SHLIB_PATH $LD_LIBRARY_PATH $LD_LIBRARY_PATH trace tracing utility syscalls trace (freeware) strace truss tusc (11+, freeware) ltrace sotruss truss /etc/profile /etc/default/login define user defaults /etc/security/ /etc/profile /etc/security/ csh global .login /etc/csh.login /etc/.login /var/log/syslog default syslog /var/adm/syslog /var/adm/syslog/syslog.log /var/log/messages /var/log/syslog dmesg system error sysdiag (9 and early10) reporting tool stm/cstm/mstm/xstm errpt dmesg prtdiag (10.20+) sar; iostat; kstat; performance ftp://ftp.software.ibm.com/ vmstat mpstat; netstat; nfsstat; monitoring aix/tools/perftools/perfpmr prstat; trapstat; vmstat www.faqs.org/faqs/ www.faqs.org/faqs/Solaris2/ FAQs (see also www.faqs.org/faqs/ www.linuxdoc.org/ FAQ/ aix-faq/part1/ faqs.org) hp/hpux-faq/preamble.html FAQ/Linux-FAQ www.faqs.org/faqs/Solaris2/ preamble.html x86/FAQ/ www.linumanagers AIX-L@pucc. hpux-admin@ .org sun-managers@sunmanagers mailing list princeton.edu dutchworks.nl .org (majordomo) (LISTSERV) (majordomo) www.linux.org/ /lists.html www.marist. http://www.sunmanagers.org/ edu/htbin/wlvindex? archives.html ADSM-L www.dutch mailing list works./ www.linuxmanagers.org/ archives pipermail/linuxmanagers htbin/hpsysadmin www.latech. marc.theaimsgroup.com/ edu/sunman.html ?l=aix-l&r=1&w=2 comp.unix.aix newsgroup(s) comp.os.linux.* comp.sys.sun. www.thp.uni-duisburg.de/ comp.sys.hp.hpux groups.google (esp .answers) admin, comp.unix.solaris cuaix/cuaix.html user groups www.userblue.org www.interex.org www.hpchronicle.com www.developer. www.linuxjournal.com magazines www.interex.org/hpuxusr www.sunworld.com/ ibm.com/library/aixpert www.hppro.com www.linux-mag.com www.developer.ibm.com/ www.unixsolutions.hp.com/ www.linux.org vendor home page www.sun.com/solaris/ tech/map/aixrm.html products/hpux www.redhat.com www.redbooks.ibm.com vendor docs and docs.hp.com www.linuxdoc.org/ docs.sun.com patches techsupport.services. itrc.hp.com rpmfind.net/linux/RPM sunsolve.sun.com ibm.com/ server/support? view=pSeries AIX: 800-237-5511 vendor phone (US) IBM hardware: 800-633-3600 800-USA-4SUN 800-426-7378

Generated from http://bhami.com/rosetta.html This compilation Copyright © 2000-2002 Bruce Hamilton [email protected]. Reproduce freely for personal use. Do not reproduce for commercial purposes. LINK don't , or you will miss updates!