AUTOMATE THE ADDING OF SEVERAL PRINTER
ITEM: RTA000021061
QUESTION:
I am trying to automate the addition of a printer (give user options
which one to choose)by using either a program or script. Can you please
tell me the procedures and which files(or ODM Data base) I have to
change before I can use the printer. Please tell me which files
are needed to define a printer just like the other UNIX systems.
---------- ---------- ---------- --------- ---------- ----------
A.
AIX Version 3 in *not* exactly like other UNIX systems, including
AIX Version 2, therefore you cannot add, change, or delete printers
as in other UNIX systems.
B.
SMIT has a "-s" flag that allows the user to specify a file in which
SMIT is to log all commands executed while the user is in SMIT. This
file will be an executable shell script which anyone can use to
recreate the SMIT command sequence *without* using SMIT. You can use
the script on other systems or to recreate long, systematic tasks on a
local system.
SMIT is just a user interface to operating system commands. When one
uses SMIT to get to a point in the SMIT menus where, if one presses
the "enter" key, work will be performed, one can instead press PF6 to
see which operating system command will actually be executed. All
SMIT does is ask the user to make a series of choices until SMIT has
enough information to execute an operating system command. One can
either use SMIT to see which commands perform which tasks, or one can
peruse the commands reference.
AIX Version 3 uses a fairly standard and repetitive set of command
prefixes that perform a wide range of system tasks. Examples of the
prefixes include but are not limited to: rm (remove); mk (make);
ch (change); and ls (list). A suffix is added to the prefix to make
an operating system command. Examples are: mkdev (make a device);
chdev (change a device); and lsdev (list a device).
SMIT is just a friendly way to get to these commands. All of these
commands have a lot of options (flags) that control their behavior
and what files/objects they operate on. All of these commands can be
used in either shell scripts or a C program if you really want to
write some code. Your code would just be duplicating the function
performed by SMIT, which is to gather enough information from the user
to be able to determine which command (with the associated flags) the
user really wants executed.
If you don't want to use either SMIT scripts or the commands them-
selves, you will need to do a lot of research in the documentation.
All of the information you need is in the documentation. Just read
the entries for the commands and see what files are referenced. You
will also need to study the documentation for the ODM.
---------- ---------- ---------- --------- ---------- ----------
This item was created from library item Q562273 UFBG7
Additional search words:
ADDING AUTOMATE HARDWARE IX JAN92 PRINTER RISCOHW RISCSYSTEM
SERVERAL UFBG7
WWQA: ITEM: RTA000021061 ITEM: RTA000021061
Dated: 03/1996 Category: RISCPRT
This HTML file was generated 99/06/24~12:43:08
Comments or suggestions?
Contact us