01-26-2018
I'm sorry for not being clear...
That text sample is the output of sam when listing users. I'm trying to script something that generates that same output.
8 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
Is there an easy way to view all printers on a local
machine via command line or a script?
I'm looking for the equivalent of clicking on
"START, CONTROL PANEL, PRINTERS AND FAXES"
to view the devices.
I then want to cat it to a file where I would use
it later.
Thanks (3 Replies)
Discussion started by: gseyforth
3 Replies
2. HP-UX
Hey, new here, so be nice! I'm trying to write a little script to automate the user creation process on one of our boxes. But I would like to be able to use the templates that we have set up in SAM. Is the information in these templates stored in a file somewhere, that I can reference in my... (5 Replies)
Discussion started by: paqman
5 Replies
3. HP-UX
How can I add a user to a specific group without using SAM? I know I can user modprpw -G, but that will overwrite any groups the user is in with the ones I specify.
I need to assume that I do not know what groups the user is already in, so I can't put them in the modprpw command. I just need... (2 Replies)
Discussion started by: paqman
2 Replies
4. HP-UX
How to reactivate any users (root or non root) by command(no SAM)
HP-UX 11.11 (7 Replies)
Discussion started by: arm_naja
7 Replies
5. HP-UX
Hi I hope this is easy and sorry if I am using the wrong HP terms.
I am looking for a way to glean the command line information from a process I run in SAM?
In AIX I can just select any options I want for particular process and hit F6 and the command line is shown on the screen for use in... (3 Replies)
Discussion started by: KmJohnson
3 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a command line that will display a sorted list of logged in users. Just display the username and no other... (5 Replies)
Discussion started by: kofine05
5 Replies
7. UNIX for Advanced & Expert Users
hi, i have an AIX6.1 machine and i modified a user's profile so that it creates history file for each ip address that connects with this user. the reason i did this is because more than 1 person connects with the same user so i want to keep track of command run by all of them. therefore, in the... (5 Replies)
Discussion started by: omonoiatis9
5 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
LEARN ABOUT SUNOS
list-audit-modules
asadmin-list-audit-modules(1AS) User Commands asadmin-list-audit-modules(1AS)
NAME
asadmin-list-audit-modules, list-audit-modules - lists all the audit-modules
SYNOPSIS
list-audit-modules --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile filename]
[--terse=false] [--echo=false] [--interactive=true]
Lists all the audit modules. This command is supported in remote mode only.
OPTIONS
--user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
--interactive if set to true (default), only the required password options are prompted.
Example 1: Using list-audit-modules
asadmin> list-audit-modules --user admin1
--password adminadmin1 --host pigeon --port 5001
Command list-audit-modules executed successfully
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-audit-module(1AS), asadmin-delete-audit-module(1AS)
J2EE 1.4 SDK March 2004 asadmin-list-audit-modules(1AS)