Sponsored Content
Full Discussion: sereial number
Operating Systems HP-UX sereial number Post 302181104 by puneet on Wednesday 2nd of April 2008 05:29:44 AM
Old 04-02-2008
echo "selclass qualifier system;info;wait;infolog" | /usr/sbin/cstm | grep "System Serial Number"

Above command will work Smilie
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Number lines of file and assign variable to each number

I have a file with a list of config files numbered on the lefthand side 1-300. I need to have bash read each lines number and assign it to a variable so it can be chosen by the user called by the script later. Ex. 1 some data 2 something else 3 more stuff which number do you... (1 Reply)
Discussion started by: glev2005
1 Replies

2. Shell Programming and Scripting

how to add the number of row and count number of rows

Hi experts a have a very large file and I need to add two columns: the first one numbering the incidence of records and the another with the total count The input file: 21 2341 A 21 2341 A 21 2341 A 21 2341 C 21 2341 C 21 2341 C 21 2341 C 21 4567 A 21 4567 A 21 4567 C ... (6 Replies)
Discussion started by: juelillo
6 Replies

3. Shell Programming and Scripting

changing number in bash (number is in form of string)

I have a txt file as database. when i run my program what it does is it ask me for 3 name and stored in the file as name1:name2:name3:1 when u enter 3 name it add those in file as above format and add 1 at the end. I what i want is if i enter same names again it changes that 1 to 2 and so... (3 Replies)
Discussion started by: Learnerabc
3 Replies

4. Shell Programming and Scripting

Perl : print the sequence number without missing number

Dear Perl users, I need your help to solve my problem below. I want to print the sequence number without missing number within the range. E.g. my sequence number : 1 2 3 4 5 6 7 8 11 12 13 14 my desired output: 1 -8 , 11-14 my code below but still problem with the result: 1 - 14 1 -... (2 Replies)
Discussion started by: mandai
2 Replies

5. Shell Programming and Scripting

AWK print number of records, divide this number

I would like to print the number of records of 2 files, and divide the two numbers awk '{print NR}' file1 > output1 awk '{print NR}' file2 > output2 paste output1 output2 > output awl '{print $1/$2}' output > output_2 is there a faster way? (8 Replies)
Discussion started by: programmerc
8 Replies

6. Shell Programming and Scripting

The difference between end number in the early row and the start number in the next

Hi Power User, I'm trying to compute this kind of text file format: file1: jakarta 100 150 jakarta 170 210 beijing 220 250 beijing 260 280 beijing 290 320 new_york 330 350 new_york 370 420 tokyo 430 470 tokyo 480 ... (2 Replies)
Discussion started by: anjas
2 Replies

7. Shell Programming and Scripting

Help with sort word followed by exponential number and numeric number at the same time

Input file: ID_34 2E-69 2324 ID_1 0E0 3254 ID_1 0E0 5434 ID_5 0E0 436 ID_1 1E-14 2524 ID_1 5E-52 46437 ID_3 65E-20 45467 ID_1 0E0 6578 ... Desired output file: ID_1 0E0 6578 ID_1 0E0 5434 ID_1 0E0 3254 ID_1 5E-52 46437 ID_1 1E-14 2524 ID_3 65E-20 45467 (5 Replies)
Discussion started by: cpp_beginner
5 Replies

8. Shell Programming and Scripting

awk to find number in a field then print the line and the number

Hi I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field. The source file is pipe delimited and looks something like 1|net|ABC Letr1|1530||| 1|net|EXP_1040 ABC|1121||| 1|net|EXP_TG1224|1122||| 1|net|R_North|1123|||... (5 Replies)
Discussion started by: Mudshark
5 Replies

9. Shell Programming and Scripting

List files with number to select based on number

Hi experts, I am using KSH and I am need to display file with number in front of file names and user can select it by entering the number. I am trying to use following command to display list with numbers. but I do not know how to capture number and identify what file it is to be used for... (5 Replies)
Discussion started by: mysocks
5 Replies
STM(1M) 																   STM(1M)

NAME
stm, xstm, mstm, cstm - Support Tools Manager SYNOPSIS
/usr/bin/stm [-x|-m|-c] [-f command_file] /usr/sbin/xstm [-f command_file] /usr/sbin/mstm [-f command_file] /usr/sbin/cstm [-f command_file] DESCRIPTION
The Support Tools Manager (STM) provides three interfaces that allow a user access to an underlying toolset, consisting of information mod- ules, firmware update tools, verifiers, diagnostics, exercisers, expert tools, and utilities: XSTM - the graphical interface (for X11-based graphics terminals) MSTM - the menu-based interface (for non-X11-based, non-graphics terminals) CSTM - the command line interface (for running scripts) Which interface you choose will depend upon your needs, preferences, and resources as a user. If STM is run and [-x|-m|-c] is not specified, then: If the "DISPLAY" environment variable is set, XSTM is run. If the "DISPLAY" environment variable is not set, MSTM is run. Application Usage This tool will be deprecated on new server models. Please use System Management Homepage (see hpsmh(1M)). OPTIONS
-x The XSTM program is the X-Windows interface for the Support Tools Manager (STM). It allows you to access and run various support tools (information modules, firmware update tools, verifiers, diagnostics, exercisers, and utilities, depending upon your level of licensing privilege) on one or more PA-RISC machines. You can run XSTM on one machine, and use it to run support tools on one or more remote machines (Units Under Test, or UUTs). Alterna- tively, you can run XSTM on one machine, and use it to run support tools on the same machine (i.e., the machine running XSTM and the UUT are one and the same). The basic principle of XSTM usage is that you see a display of the legacy devices configured on the UUT (the legacy system map, or legacy device map) when you first run the interface. Alternatively, display of the agile devices configured on the UUT (the agile system map, or agile device map) can be seen by selecting the "View Agile Map" option in the "System" menu. For information about legacy devices and agile devices see intro(7) manpage. By clicking on one or more icons representing the device(s) you want to test, or whose logs you want to view, and using the appropriate pulldown and popup menus, you can test your system to see if it is functioning properly. Any problems with your system will be reflected by color changes to the icons in the device map (e.g., red for "Failure"), in its legacy view or agile view or both the views (if a device is represented in both the views, the color change will be reflected in both of them). By viewing the corresponding log (e.g. the Failure Log), you can then determine the appropriate corrective action to take. Use the Help pulldown menu to access the online help system. -m The MSTM program is the menu interface for the Support Tools Manager (STM). It provides the same functionality as XSTM described above. The device map is a list of devices on the Unit Under Test (UUT). You select devices by moving the cursor with the up and down arrow keys to the line entry for the desired device(s). You issue commands by means of function keys. Any problems with your system will be reflected by changes in the "Last Op Status" column of the device map. By viewing the corresponding log (e.g. the Failure Log), you can then determine the appropriate corrective action to take. Press the help function key to access the online help system. -c The CSTM program is the command line interface for the Support Tools Manager (STM). It provides the same functionality as XSTM described above. Entering the command "map" displays a list of legacy devices (the legacy device map) on the Unit Under Test (UUT). Entering the command "amap" displays a list of agile devices (the aglie device map) on the Unit Under Test (UUT). You select devices by entering the hardware path or device number for the desired device(s); use the command "select path" or "select device". Any problems with your system will be reflected by error, warning, or caution messages displayed by the system. By viewing the corresponding log (e.g. the Failure Log), you can then determine the appropriate corrective action to take. Entering the command "help" displays a summary of the cstm commands; the command "help all" gives you full access to the online help system. -f command_file The "-f" option allows the user to specify a CSTM command file to run prior to bringing up the selected User Interface. Multiple "-f com- mand_file" options can be provided and the command files will be processed from left to right. HELP
Topics available are: On Item has context-sensitive information on specific help topics (XSTM only). On Tasks has cookbook procedures for performing common system tasks using STM. On Application has general information about the Support Tool Manager. On Help has information about the HPHelp product. On Version displays a banner with copyright, version, and legal information about STM. OTHER FILES
/usr/sbin/stm/ui/config/.stmrc - stm startup script. /usr/sbin/stm/ui/config/saveconfig.cmd - stm config save command file. ENVIRONMENT
DISPLAY If you are using X Windows, you must be set to the desired X Windows display ID (e.g., local:0.0). COPYRIGHT
(c) Copyright 1995-6, Hewlett-Packard Company ORIGIN
STM was developed by Hewlett-Packard Company. SEE ALSO
intro(7), diagmond(1M) STM(1M)
All times are GMT -4. The time now is 10:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy