AIX - System V R4 Print Subsystem
lp
Sends print requests.
cancel
Cancels print requests previously sent with the lp command.
lpstat
Displays the status of all print requests made by the user.
accept
Allows the queuing of print requests.
reject
Prevents queuing of print requests.
enable
Activates the named printers, enabling them to print requests.
disable
Deactivates the named printers, disabling them to print requests.
lpadmin
Configures the lp print service by defining printers and devices.
lpfilter
Administers filters used.
lpforms
Administers the use of preprinted forms.
lpmove
Moves print requests between destinations.
lpsched
Starts the print service.
lpshut
Stuts down the print service.
lpsystem
Registers remote systems with the print service.
lpusers
Set printing queue priorities.
Saturday, May 16, 2009
AIX - Print Subsystem
AIX - Print Subsystem
qprt
Starts a print job.
lpr
Enqueues print jobs.
lp
Sends requests to a line printer.
enq
Enqueues a file.
chprtsv
Changes a print service configuration on a client or server machine.
lsque
Displays the queue stanza name.
lsque -q ps
Displays the name of queue stanza ps.
mkque
Adds a printer queue to the system.
mkquedev
Adds a printer queue device to the system.
rmque
Removes a printer queue from the system.
rmquedev
Removes a printer or plotter queue device from the system.
chque
Changes the queue name.
chvirprt
Changes the attribute values of a virtual printer.
lsallq
Lists the names of all configured queues.
lsallqdev
Lists all configured printer and plotter queue device names within a specified queue.
lsprtsv
Shows print service information stored in the database.
lsquedev
Displays the device stanza name.
chquedev
Changes the printer or plotter queue device names.
mkvirprt
Makes a virtual printer.
rmvirprt
Removes a virtual printer.
mkprtsv
Configures TCP/IP-based print service on a host.
rmprtsv
Unconfigures a print service on a client or server machine.
qprt
Starts a print job.
lpr
Enqueues print jobs.
lp
Sends requests to a line printer.
enq
Enqueues a file.
chprtsv
Changes a print service configuration on a client or server machine.
lsque
Displays the queue stanza name.
lsque -q ps
Displays the name of queue stanza ps.
mkque
Adds a printer queue to the system.
mkquedev
Adds a printer queue device to the system.
rmque
Removes a printer queue from the system.
rmquedev
Removes a printer or plotter queue device from the system.
chque
Changes the queue name.
chvirprt
Changes the attribute values of a virtual printer.
lsallq
Lists the names of all configured queues.
lsallqdev
Lists all configured printer and plotter queue device names within a specified queue.
lsprtsv
Shows print service information stored in the database.
lsquedev
Displays the device stanza name.
chquedev
Changes the printer or plotter queue device names.
mkvirprt
Makes a virtual printer.
rmvirprt
Removes a virtual printer.
mkprtsv
Configures TCP/IP-based print service on a host.
rmprtsv
Unconfigures a print service on a client or server machine.
AIX - Print Management - switch.prt
AIX - Print Management - switch.prt
switch.prt
Displays the current active print subsystem, or switch between the active and inactive print subsystem. Read also AIX System V Printing.
switch.prt -d : displays the current print subsystem that is active.
switch.prt
Displays the current active print subsystem, or switch between the active and inactive print subsystem. Read also AIX System V Printing.
switch.prt -d : displays the current print subsystem that is active.
AIX - Print Management
AIX - Print Management
The AIX print subsystem (default), a combination of the System V and Berkeley Software Distribution (BSD) printing standard, and the System V R4 print subsystem are available. Both print subsystems cannot be set to the active state at the same time using the normal procedures.
System file /etc/qconfig (stanzas that describe the printqueues and devices). Spooling uses the /var/spool/qdaemon directory. Daemon: qdaemon.
The AIX print subsystem (default), a combination of the System V and Berkeley Software Distribution (BSD) printing standard, and the System V R4 print subsystem are available. Both print subsystems cannot be set to the active state at the same time using the normal procedures.
System file /etc/qconfig (stanzas that describe the printqueues and devices). Spooling uses the /var/spool/qdaemon directory. Daemon: qdaemon.
AIX - ODM Management
AIX - ODM Management
ODM information is stored in the directories /etc/objrepos (default ODM directory, $ODMDIR env variable), /usr/lib/objrepos and /usr/share/lib/objrepos.
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.
odmshow CuDv : displays the object class definition for the Customized Device Database.
ODM information is stored in the directories /etc/objrepos (default ODM directory, $ODMDIR env variable), /usr/lib/objrepos and /usr/share/lib/objrepos.
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.
odmshow CuDv : displays the object class definition for the Customized Device Database.
AIX - System Resource Controller
AIX - System Resource Controller
lssrc
Gets the status of a subsystem, a group of subsystems, or a subserver.
lssrc -a : displays the status of all subsystems.
lssrc -g tcpip : display the status of the tcpip subsystem group.
startsrc
Starts a subsystem, a group of subsystems, or a subserver.
stopsrc
Stops a subsystem, a group of subsystems, or a subserver.
refresh
Requests a refresh of a subsystem or group of subsystems.
refresh -g tcpip : refresh the group tcpip.
refresh -s inetd : refresh the inetd subsystem (re-reads /etc/inetd.conf).
chssys
Changes a subsystem definition in the subsystem object class.
mkssys
Adds a subsystem definition to the subsystem object class.
rmssys
Removes a subsystem definition from the subsystem object class.
mkserver
Adds a subserver definition to the subserver object class.
rmserver
Removes a subserver definition from the subserver object class.
lssrc
Gets the status of a subsystem, a group of subsystems, or a subserver.
lssrc -a : displays the status of all subsystems.
lssrc -g tcpip : display the status of the tcpip subsystem group.
startsrc
Starts a subsystem, a group of subsystems, or a subserver.
stopsrc
Stops a subsystem, a group of subsystems, or a subserver.
refresh
Requests a refresh of a subsystem or group of subsystems.
refresh -g tcpip : refresh the group tcpip.
refresh -s inetd : refresh the inetd subsystem (re-reads /etc/inetd.conf).
chssys
Changes a subsystem definition in the subsystem object class.
mkssys
Adds a subsystem definition to the subsystem object class.
rmssys
Removes a subsystem definition from the subsystem object class.
mkserver
Adds a subserver definition to the subserver object class.
rmserver
Removes a subserver definition from the subserver object class.
AIX - Process Management
AIX - Process Management
utmpd
The utmpd daemon monitors /etc/utmp for validity of the user process entries every 300 seconds (default). Default there is no entry in /etc/inittab for utmpd.
utmpd 500 : runs utmpd every 500 seconds.
whodo
Reports the list of processes and their child processes belonging to users.
who -l : summarises the current activity on the system.
procwdx
Prints the current working directory of a process.
procwdx 21318 : displays the current working directory of process 21318.
truss
Traces system calls executed by a process as, records the received signals and the occurrence of machine faults. The output of truss can become very large.
truss -e -o truss.out whoo : runs the who command under truss including the environment content (-e) and redirects the output to truss.out.
utmpd
The utmpd daemon monitors /etc/utmp for validity of the user process entries every 300 seconds (default). Default there is no entry in /etc/inittab for utmpd.
utmpd 500 : runs utmpd every 500 seconds.
whodo
Reports the list of processes and their child processes belonging to users.
who -l : summarises the current activity on the system.
procwdx
Prints the current working directory of a process.
procwdx 21318 : displays the current working directory of process 21318.
truss
Traces system calls executed by a process as, records the received signals and the occurrence of machine faults. The output of truss can become very large.
truss -e -o truss.out whoo : runs the who command under truss including the environment content (-e) and redirects the output to truss.out.
Thursday, May 14, 2009
AIX - Scheduling - Commands
AIX - Scheduling - Commands
crontab
Submits, edits, lists, or removes cron jobs for the cron daemon. The cron daemon logs its activities in /var/adm/cron/log.
Each crontab file entry contains six fields: minute hour day_of_month month weekday command
crontab -l : lists the user's crontab file.
crontab -e : edit the crontab file using an intermediate copy.
at
Runs commands at a later time.
at -l : reports the current user's scheduled jobs.
batch
Runs jobs when the system load level permits.
skulker
Cleans up file systems by removing unwanted files. Remove the comment from the skulker entry of the root crontab to enable operation.
crontab
Submits, edits, lists, or removes cron jobs for the cron daemon. The cron daemon logs its activities in /var/adm/cron/log.
Each crontab file entry contains six fields: minute hour day_of_month month weekday command
crontab -l : lists the user's crontab file.
crontab -e : edit the crontab file using an intermediate copy.
at
Runs commands at a later time.
at -l : reports the current user's scheduled jobs.
batch
Runs jobs when the system load level permits.
skulker
Cleans up file systems by removing unwanted files. Remove the comment from the skulker entry of the root crontab to enable operation.
AIX - Common Desktop Environment
AIX - Common Desktop Environment
dtconfig
/usr/dt/bin/dtconfig -d : disables desktop logins (-e enables desktop logins).
dtlogin
/usr/dt/bin/dtlogin -daemon : starts the desktop login manager manually.
xinit
Initializes the X Window System.
xinit /etc/dt/Xsession : starts the CDE desktop from command line interface (customized version, if present).
xinit /usr/dt/bin/Xsession : starts the CDE desktop from command line interface (default version).
dtconfig
/usr/dt/bin/dtconfig -d : disables desktop logins (-e enables desktop logins).
dtlogin
/usr/dt/bin/dtlogin -daemon : starts the desktop login manager manually.
xinit
Initializes the X Window System.
xinit /etc/dt/Xsession : starts the CDE desktop from command line interface (customized version, if present).
xinit /usr/dt/bin/Xsession : starts the CDE desktop from command line interface (default version).
AIX - DOS Files Management
AIX - DOS Files Management
Install the bos.dosutils fileset for the DOS-commands or install mtools (AIX Toolbox for Linux Applications).
dosdir
Lists the directory for DOS files (default device is /dev/fd0).
dosread
Copies DOS files to AIX files.
dosread -a yourfile.txt yourfile : copies a text file from a DOS diskette and replaces each carriage return, line-feed sequence with a new-line character and interprets a Ctrl-Z as the end-of-line character.
dosdir | awk '!/There are/ {print $1}'|xargs -t -i dosread {} {} : copies every DOS file from a DOS diskette.
doswrite
Copies AIX files to DOS files.
doswrite -a myfile myfile.txt : copies file myfile to a DOS diskette and replaces new-line characters with carriage return, line-feed sequences (-a). Ctrl-Z is added at the end of file.
for i in *;do;doswrite $i $i;done : copies every file in the current directory to a DOS diskette.
dosdel
Deletes DOS files.
dosformat
Formats a DOS diskette.
Mtools is a public domain collection of tools to allow Unix systems to manipulate MS-DOS files
Documentation: Mtools (HTML) or Mtools (PDF).
floppyd --> floppy daemon to run on your X server box
floppyd_installtest --> small utility to check for the presence of floppyd
mattrib --> change MS-DOS file attribute flags
mbadblocks --> tests a floppy disk, and marks the bad blocks in the FAT
mcat --> same as cat. Only usefull with floppyd.
mcd --> change MS-DOS directory
mcopy --> copy MS-DOS files to/from Unix
mdel --> delete an MS-DOS file
mdeltree --> recursively delete an MS-DOS directory
mdir--> display an MS-DOS directory
mdu--> list space occupied by directory and its contents
mformat--> add an MS-DOS filesystem to a low-level formatted floppy disk
minfo--> get information about an MS-DOS filesystem.
mlabel--> make an MS-DOS volume label
mkmanifest--> makes a list of short name equivalents
mmd--> make an MS-DOS subdirectory
mmount--> mount an MS-DOS disk
mpartition--> create an MS-DOS as a partition
mrd--> remove an MS-DOS subdirectory
mmove--> move or rename an MS-DOS file or subdirectory
mren--> rename an existing MS-DOS file
mshowfat--> shows the FAT map of a file
mtoolstest--> tests and displays the configuration
mtype--> display contents of an MS-DOS file
mzip--> zip disk specific commands
Install the bos.dosutils fileset for the DOS-commands or install mtools (AIX Toolbox for Linux Applications).
dosdir
Lists the directory for DOS files (default device is /dev/fd0).
dosread
Copies DOS files to AIX files.
dosread -a yourfile.txt yourfile : copies a text file from a DOS diskette and replaces each carriage return, line-feed sequence with a new-line character and interprets a Ctrl-Z as the end-of-line character.
dosdir | awk '!/There are/ {print $1}'|xargs -t -i dosread {} {} : copies every DOS file from a DOS diskette.
doswrite
Copies AIX files to DOS files.
doswrite -a myfile myfile.txt : copies file myfile to a DOS diskette and replaces new-line characters with carriage return, line-feed sequences (-a). Ctrl-Z is added at the end of file.
for i in *;do;doswrite $i $i;done : copies every file in the current directory to a DOS diskette.
dosdel
Deletes DOS files.
dosformat
Formats a DOS diskette.
Mtools is a public domain collection of tools to allow Unix systems to manipulate MS-DOS files
Documentation: Mtools (HTML) or Mtools (PDF).
floppyd --> floppy daemon to run on your X server box
floppyd_installtest --> small utility to check for the presence of floppyd
mattrib --> change MS-DOS file attribute flags
mbadblocks --> tests a floppy disk, and marks the bad blocks in the FAT
mcat --> same as cat. Only usefull with floppyd.
mcd --> change MS-DOS directory
mcopy --> copy MS-DOS files to/from Unix
mdel --> delete an MS-DOS file
mdeltree --> recursively delete an MS-DOS directory
mdir--> display an MS-DOS directory
mdu--> list space occupied by directory and its contents
mformat--> add an MS-DOS filesystem to a low-level formatted floppy disk
minfo--> get information about an MS-DOS filesystem.
mlabel--> make an MS-DOS volume label
mkmanifest--> makes a list of short name equivalents
mmd--> make an MS-DOS subdirectory
mmount--> mount an MS-DOS disk
mpartition--> create an MS-DOS as a partition
mrd--> remove an MS-DOS subdirectory
mmove--> move or rename an MS-DOS file or subdirectory
mren--> rename an existing MS-DOS file
mshowfat--> shows the FAT map of a file
mtoolstest--> tests and displays the configuration
mtype--> display contents of an MS-DOS file
mzip--> zip disk specific commands
Subscribe to:
Posts (Atom)