Sponsored Content
Full Discussion: Port num incrementing
Top Forums Shell Programming and Scripting Port num incrementing Post 302200178 by coolkid on Wednesday 28th of May 2008 04:19:00 PM
Old 05-28-2008
Thank You so much Jean for the help.
Iam kinda novice in scripting..so the get_default_port() checks for whether the port is already assigned or not? .Please let me know.


Thanks a lot--CK
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

setting num lock on at boot up

Once I knew how to set up a unix file so that the num lock would automatically be on after booting up. How exactly is that done? Unix has final control on the setting of the num lock from off or on to on at the end of the boot up process. Any help will be appreciated, especially if detailed. Oh... (0 Replies)
Discussion started by: jddxxx
0 Replies

2. Shell Programming and Scripting

how to convert char to num

how to convert char to num or visa versa i am a beginner how to do it can someone guide me please (2 Replies)
Discussion started by: guhas
2 Replies

3. Shell Programming and Scripting

tracking sequence num

I have files coming to an input directory every few mins...eg test_00012.txt test_00013.txt test_00014.txt I need to write a script to monitor these and if a file is missing from the sequence I need my script to spot this so I can alert someone... ie... if I got the following:... (1 Reply)
Discussion started by: frustrated1
1 Replies

4. Shell Programming and Scripting

Port incrementing using one file

Hi I wrote this script with the help of you guyz.My next challenge is to increment the port using single file.So far iam using this code to increment hp1 and hp2 .To increment port numbers, iam using two different files (.default_port_hp1 and .default_port_hp2).The challenge for me is to use... (0 Replies)
Discussion started by: coolkid
0 Replies

5. UNIX for Dummies Questions & Answers

X num of lines before and after

I have a slew of files for historical reference. Each file has a unique line in the file, such as "Today's datetime is:" Each file also contains a unique set of characters on line X, such as "DMX Info." This line number will be different each time a new file is generated. So, for one... (7 Replies)
Discussion started by: jjp
7 Replies

6. UNIX for Advanced & Expert Users

Set Caps and Num lock from within X?

Hello, Not sure if this is the right place to post it but.. I have a requirement to set Caps lock and/or Num lock on and off via a Cron job. Now I have working scripts that do the job, but as soon as X starts up the jobs no longer run (well they appear to, but Caps lock and Num lock do not... (0 Replies)
Discussion started by: autotuner
0 Replies

7. Shell Programming and Scripting

Simple question on $VAR = num

Hello, I am a begginer on shell scripting and I need a simple advice. I have the following script. The output of DATE is gathered from Oracle and it will be 101115 (for todays date) Therefore the DAY will be sed-ed , and it contains 15 #!/bin/sh DATE=`${LIB}/dt_YYMMDD 0` DAY=`echo $DATE| sed... (5 Replies)
Discussion started by: drbiloukos
5 Replies

8. Hardware

About the max num of physical memory

Can anyone tell me what the max num of physical memery depends? It's the bit number of the data bus? How about the max number of the virtual memory? (1 Reply)
Discussion started by: cateran
1 Replies

9. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
IBADDR(8)							OpenIB Diagnostics							 IBADDR(8)

NAME
IBADDR - query InfiniBand address(es) SYNOPSIS
ibaddr [options] DESCRIPTION
Display the lid (and range) as well as the GID address of the port specified (by DR path, lid, or GUID) or the local port by default. Note: this utility can be used as simple address resolver. OPTIONS
--gid_show, -g show gid address only --lid_show, -l show lid range only --Lid_show, -L show lid range (in decimal) only Addressing Flags -D, --Direct The address specified is a directed route Examples: [options] -D [options] "0" # self port [options] -D [options] "0,1,2,1,4" # out via port 1, then 2, ... (Note the second number in the path specified must match the port being used. This can be specified using the port selection flag '-P' or the port found through the automatic selection process.) -G, --Guid The address specified is a Port GUID -s, --sm_port <smlid> use 'smlid' as the target lid for SA queries. Debugging flags -d raise the IB debugging level. May be used several times (-ddd or -d -d -d). -e show send and receive errors (timeouts and others) -h, --help show the usage message -v, --verbose increase the application verbosity level. May be used several times (-vv or -v -v -v) -V, --version show the version info. Port Selection flags -C, --Ca <ca_name> use the specified ca_name. -P, --Port <ca_port> use the specified ca_port. Local port Selection Multiple port/Multiple CA support: when no IB device or port is specified (see the "local umad parameters" below), the libibumad library selects the port to use by the following criteria: 1. the first port that is ACTIVE. 2. if not found, the first port that is UP (physical link up). If a port and/or CA name is specified, the libibumad library attempts to fulfill the user request, and will fail if it is not possible. For example: ibaddr # use the first port (criteria #1 above) ibaddr -C mthca1 # pick the best port from "mthca1" only. ibaddr -P 2 # use the second (active/up) port from the first available IB device. ibaddr -C mthca0 -P 2 # use the specified port only. Configuration flags -y, --m_key <key> use the specified M_key for requests. If non-numeric value (like 'x') is specified then a value will be prompted for. --config, -z <config_file> Specify alternate config file. Default: /etc/infiniband-diags/ibdiag.conf FILES
CONFIG FILE /etc/infiniband-diags/ibdiag.conf A global config file is provided to set some of the common options for all tools. See supplied config file for details. EXAMPLES
ibaddr # local port's address ibaddr 32 # show lid range and gid of lid 32 ibaddr -G 0x8f1040023 # same but using guid address ibaddr -l 32 # show lid range only ibaddr -L 32 # show decimal lid range only ibaddr -g 32 # show gid address only SEE ALSO
ibroute (8), ibtracert (8) AUTHOR
Hal Rosenstock < halr@voltaire.com > IBADDR(8)
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy