02-15-2008
From the Solaris man page:
Quote:
plumb Open the device associated with the physical interface
name and set up the streams needed for IP to use the
device. When used with a logical interface name, this
command is used to create a specific named logical
interface. An interface must be separately plumbed for
use by IPv4 and IPv6. The address_family parameter
controls whether the ifconfig command applies to IPv4
or IPv6.
Quote:
unplumb
Close the device associated with this physical inter-
face name and any streams that ifconfig set up for IP
to use the device. When used with a logical interface
name, the logical interface is removed from the sys-
tem. After this command is executed, the device name
will no longer appear in the output of ifconfig -a.
The same would hold true for HP-UX as well (allowing for differences in implementation, and such).
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
3. Shell Programming and Scripting
Hi all,
can any one suggest me the script to grep multiple strings from ps -ef
pls correct the below script . its not working/
i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK.
bash-3.00$ ps -ef | grep blu
lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
6. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT SUNOS
sppptun
sppptun(1M) System Administration Commands sppptun(1M)
NAME
sppptun - PPP tunneling driver utility
SYNOPSIS
sppptun plumb
sppptun plumb protocol device
sppptun unplumb interface
sppptun query
DESCRIPTION
The sppptun utility is used to configure and query the Solaris PPP tunneling device driver, /dev/sppptun. Currently, only PPP over Ether-
net (PPPoE) is supported, so the plumb and unplumb arguments are used to specify Ethernet interfaces that are to be used for PPPoE, and the
query option lists the plumbed interfaces.
The use of sppptun to add interfaces is similar to the use of ifconfig(1M) to add interfaces to IP. The plumbing is done once for each
interface, preferably at system start-up time, and is not normally manipulated on a running system. If multiple instances of PPP are run
over a single interface, they share the plumbing to that interface. Plumbing for each session is not required (and not possible for PPPoE).
The proper way to plumb interfaces for PPPoE is to list the interfaces, one per line, in the /etc/ppp/pppoe.if file.
USAGE
sppptun plumb
When specified with no additional arguments, the plumb argument lists the protocols that are supported by the utility. These are the
strings that are used as the protocol argument below.
sppptun plumb protocol device
This plumbs a new interface into the driver. The protocol parameter is pppoe for the PPP-carrying "Session Stage" connection or pppoed
for the PPPoE "Discovery Stage" connection. Both connections must be present for each Ethernet interface that is to be used for PPPoE.
The device parameter is the path name of the Ethernet interface to use (use ifconfig(1M) to list available devices). If the path begins
with /dev/, then this portion may be omitted.
sppptun unplumb interface
This removes an existing interface from the driver and terminates any PPP sessions that were using the interface. The interface parame-
ter is the name of the interface as reported when the interface was plumbed.
sppptun query
Displays the canonical names of all interfaces plumbed into the /dev/sppptun device driver.
EXAMPLES
Example 1: Setting up to Use PPPoE on hme0
Plumb the hme0 interface.
# sppptun plumb pppoed hme0
hme0:pppoed
# sppptun plumb pppoe hme0
hme0:pppoe
Remove the hme0 interface.
# sppptun unplumb hme0:pppoed
# sppptun unplumb hme0:pppoe
Example 2: Script to Remove All Plumbed Interfaces
#!/bin/sh
for intf in `sppptun query`
do
sppptun unplumb $intf
done
EXIT STATUS
The following exit values are returned:
0 Successful completion.
1 One or more errors occurred.
FILES
/etc/ppp/pppoe.if list of Ethernet interfaces to be plumbed at boot time
/usr/sbin/sppptun executable command
/dev/sppptun Solaris PPP tunneling device driver
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpppdt |
+-----------------------------+-----------------------------+
SEE ALSO
pppd(1M), pppoec(1M), pppoed(1M), sppptun(7M)
RFC 2516, Method for Transmitting PPP Over Ethernet (PPPoE), Mamakos et al, February 1999
SunOS 5.10 19 Mar 2001 sppptun(1M)