Hi folks,
I wrote a ksh program which run scripts from remote server.
To check the status code I wrote the following function:
check_remote_status()
{
status_code=`tail -1 $installLog`
if ] ; then
echo $errMsg | tee -a $installLog
exit 1
else
echo $validMsg >> $installLog
fi... (9 Replies)
For a few weeks now, on several of our machines, i've been seeing this in /var/log/messages and dmesg:
Nov 14 16:37:48 stg2 kernel: svc: bad direction 256, dropping request
Nov 14 16:37:48 stg2 kernel: svc: short len 4, dropping request
Nov 14 16:38:02 stg2 kernel: svc: bad direction 256,... (2 Replies)
Hi,
I have created a services and method to start the processes.
Method:
#!/sbin/sh
. /lib/svc/share/smf_include.sh
case "$1" in
'start')
/usr/local/proce start
sleep 10
;;
'stop')
/usr/local/proce stop
;;
*)
echo... (5 Replies)
Hi,
I have a perl script which is interacting with Database.
I have following line of code :
=================================================
sub BEGIN
{
#use Getopt::Std;
#getopt ('S');
#($STEAP)=($opt_S);
use lib ("/home/perl_lib");
use... (1 Reply)
Hello All,
Can anybody please tell me what is the maximum limit of Physical IBM Power Machine which can be handled by single HMC at a single point of time?
Thanks,
Jenish (1 Reply)
Hello Friends,
I need to change network filesystem status as online but it always seems in maintenance mode, I appreciate your any suggestion to change its state as online.
shell>svcadm enable svc:/system/filesystem/local
shell>svcs -l svc:/system/filesystem/local
fmri ... (4 Replies)
Hi All,
How to check number of "CPU physical and core" ?
my machine is T5240, T5440
I try to user prtdiag it show 128 CPUs ?? what real number for it? (5 Replies)
I am using telnet instead of ssh because network/physical service is on maintenance mode. I can ping google and other internel machines. I can't ssh to this server because network/physical is dependency of ssh.
How can I fix this service. I can use network service but it is maintenance mode.... (8 Replies)
Hi,
I am running a perl script to automate a process and I keep running into a error can't find the "value"
Can't call method "value" on an undefined value at process_file.pl line 44.
file is CVS
cell is ifdfdxrfmp.ksh
Here is the script I have also attached it as well:
... (2 Replies)
Dear All,
http:apache2 service on my node is continuously in maintenance mode.
I have tried to enable and disable the service but nothing works.
root@ops # svcs -a | grep apache2
maintenance 15:46:37 svc:/network/http:apache2
When I reboot the system, I get the following error:
... (1 Reply)
Discussion started by: Junaid Subhani
1 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)