Sponsored Content
Operating Systems HP-UX Display SAM user list at the command line Post 303011954 by Celt1977 on Friday 26th of January 2018 01:08:21 PM
Old 01-26-2018
HP Display SAM user list at the command line

Hello,

I've been doing Linux and AIX administration for years, but I'm very new to HPUX. We have an old audit process which involves someone manually using sam to generate user lists. I'd like to kill that old process with fire...

But...

After working a bit in the morning to try and pull that same list from the command line I am coming up empty. I could, I suppose, pull each user from the file one by on in a loop and run queries about them but that is ugly.

I tried listing the SAM commands to a file and using them to the list but that also did nothing.

How do I get this list, at the command line..

Code:
xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
xUsers                                                        0 of 186 selectedx
xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
x  Login                  User ID                                              x
x  Name       Activated     (UID)   Real Name                                  x
xlqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
xx user1    yes            1103   User Name1                      ^ x
xx user2   yes            1155   username2                          x
xx user3   yes            1008   username3r                            x x

Again, I'm sure to some of you this is a total newbie question and I have tried RTFM but I thought maybe you could help me out..

Thank you


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 01-26-2018 at 02:58 PM.. Reason: Added CODE tags.
 

8 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Display Printers via command line

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

Where are SAM user templates stored?

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

Adding user to a group without SAM

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 user with command(no SAM)

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

Getting command (command line) from SAM?

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

Display sorted list using sed command

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

Fc command does not display all commands history of a user

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

To find and display the middle line in a file using single line command.

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
SMPTEFrame(3)							    libltcsmpte 						     SMPTEFrame(3)

NAME
SMPTEFrame - Raw 80 bit SMPTE frame. SYNOPSIS
#include <ltcsmpte.h> Data Fields unsigned int frameUnits:4 unsigned int user1:4 unsigned int frameTens:2 unsigned int dfbit:1 unsigned int colFrm:1 unsigned int user2:4 unsigned int secsUnits:4 unsigned int user3:4 unsigned int secsTens:3 unsigned int biphaseMarkPhaseCorrection:1 unsigned int user4:4 unsigned int minsUnits:4 unsigned int user5:4 unsigned int minsTens:3 unsigned int binaryGroupFlagBit1:1 unsigned int user6:4 unsigned int hoursUnits:4 unsigned int user7:4 unsigned int hoursTens:2 unsigned int reserved:1 unsigned int binaryGroupFlagBit2:1 unsigned int user8:4 unsigned int syncWord:16 Detailed Description Raw 80 bit SMPTE frame. Definition at line 140 of file ltcsmpte.h. Field Documentation unsigned int SMPTEFrame::binaryGroupFlagBit1 Definition at line 160 of file ltcsmpte.h. unsigned int SMPTEFrame::binaryGroupFlagBit2 Definition at line 168 of file ltcsmpte.h. unsigned int SMPTEFrame::biphaseMarkPhaseCorrection Definition at line 153 of file ltcsmpte.h. unsigned int SMPTEFrame::colFrm Definition at line 146 of file ltcsmpte.h. unsigned int SMPTEFrame::dfbit Examples: tests/decoder.c. Definition at line 145 of file ltcsmpte.h. unsigned int SMPTEFrame::frameTens Definition at line 144 of file ltcsmpte.h. unsigned int SMPTEFrame::frameUnits Definition at line 141 of file ltcsmpte.h. unsigned int SMPTEFrame::hoursTens Definition at line 166 of file ltcsmpte.h. unsigned int SMPTEFrame::hoursUnits Definition at line 163 of file ltcsmpte.h. unsigned int SMPTEFrame::minsTens Definition at line 159 of file ltcsmpte.h. unsigned int SMPTEFrame::minsUnits Definition at line 156 of file ltcsmpte.h. unsigned int SMPTEFrame::reserved Definition at line 167 of file ltcsmpte.h. unsigned int SMPTEFrame::secsTens Definition at line 152 of file ltcsmpte.h. unsigned int SMPTEFrame::secsUnits Definition at line 149 of file ltcsmpte.h. unsigned int SMPTEFrame::syncWord Definition at line 171 of file ltcsmpte.h. unsigned int SMPTEFrame::user1 Definition at line 142 of file ltcsmpte.h. unsigned int SMPTEFrame::user2 Definition at line 147 of file ltcsmpte.h. unsigned int SMPTEFrame::user3 Definition at line 150 of file ltcsmpte.h. unsigned int SMPTEFrame::user4 Definition at line 154 of file ltcsmpte.h. unsigned int SMPTEFrame::user5 Definition at line 157 of file ltcsmpte.h. unsigned int SMPTEFrame::user6 Definition at line 161 of file ltcsmpte.h. unsigned int SMPTEFrame::user7 Definition at line 164 of file ltcsmpte.h. unsigned int SMPTEFrame::user8 Definition at line 169 of file ltcsmpte.h. Author Generated automatically by Doxygen for libltcsmpte from the source code. Version 0.4.4 Fri Apr 27 2012 SMPTEFrame(3)
All times are GMT -4. The time now is 12:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy