01-24-2007
How to Find AIX system parameters
System Parameters:
maximum number of processes = 2048
Network parameters:
ipqmaxlen - 512
rfc1323 - 1
sb_max - 1310720 (2*655360)
tcp_recvspace - 65536
tcp_sendspace - 65536
Udp_recvspace - 655360
Udp_sendspace 65536
10 More Discussions You Might Find Interesting
1. Cybersecurity
I am working on AIX flavor of Unix and was trying to run a script to obtain default settings of user passwords. The script uses the command to obtain default valid user attributes for:
/etc/security/user
for some reason, the message says-
cat: cannot open /etc/security/user... (1 Reply)
Discussion started by: eysheikah
1 Replies
2. Shell Programming and Scripting
I have a shell script and i pass 3 parameters to it.
Just give you an example
test.sh a=y/n b=y/n c=y/n
Pass y/n to a, b and c then it will decide what to do.
test.sh a=y b=n c=n
What i would like to do is rather then passing 3 parameter just pass a=y (only a is doing something like... (2 Replies)
Discussion started by: J_ang
2 Replies
3. Solaris
Hi Friends,
I am trying to execute rsh commands from Solaris 10 system to AIX system.
When I give;
Solaris10# rsh <hostname> ls -l , it gives me an error
rshd : 0826-826 The host name for your address is not known
At the same time,
Solaris10# rsh <hostname> ---- gives me remote shell of... (25 Replies)
Discussion started by: jumadhiya
25 Replies
4. Programming
Hello,
I 've trie to execute a a program with parameters unsuccessfully and i take the above message :
"The system cannot find the path specified."
I used a variaton of the above command :
system("\"C:\\xxx\\xxx\\xxx.exe -xxx -xxx xxx.xxx xxx.xxx xxx.xxx\"");
Thanks in advance (4 Replies)
Discussion started by: eusta
4 Replies
5. AIX
Hello,
How can I setup the ulimit for memory permanent
ulimit -m unlimited
ulimit -a Output from the ulimit command should be similar to the following:time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2097152
stack(kbytes) 32768... (4 Replies)
Discussion started by: filosophizer
4 Replies
6. AIX
Hi,
Does anyone know what the System Parameter 'SHMSZ' is and how do I find it? I'm looking for the shared memory size of this particular parameter.
Thanks.
---------- Post updated at 11:35 AM ---------- Previous update was at 11:31 AM ----------
Does SHMSZ mean 'Shared Memory SiZe? (2 Replies)
Discussion started by: bbbngowc
2 Replies
7. Solaris
Hello to everyone,
i am new to Sun Solaris. i have Solaris 5.10 installed on the X86 platform.
i am writing a script which gathers some system information. but i can not find some of the parameter from the system
can any one please suggest to way to find these params.
shell command will be... (1 Reply)
Discussion started by: nikhil.sigpro
1 Replies
8. AIX
I am try to tuning a parameter in AIX 5L and 6 (for performance issue.)
I find a link(https://forums.oracle.com/forums/thread.jspa?threadID=886358)
The thread mention two parameter below, I can use "ndd" command to tuning.
tcp_deferred_ack_interval = 2
tcp_deferred_ack_max = 2
but I... (3 Replies)
Discussion started by: nnnnnnine
3 Replies
9. AIX
Hi,
we've a gigabit Ethernet adapter. And we wanted to improve the performance by tuning network parameters. so' as per IBM info center,
http://publib.boulder.ibm.com/infocenter/aix/v7r1/index.jsp?topic=%2Fcom.ibm.aix.prftungd%2Fdoc%2Fprftungd%2Fnetw_opt.htm
we tried changing the tuning... (2 Replies)
Discussion started by: System Admin 77
2 Replies
10. AIX
Hi ,
Could you please tell me how to find the following on AIX?
1.Command to find file system details?
2.What are all the files exist under a specific directory along with their sizes?
In general we use,
du -sh * | grep M under a directory which returns files having size of MB,... (18 Replies)
Discussion started by: Maddy123
18 Replies
LEARN ABOUT PHP
mongodbdrivercommand
MONGODBDRIVERCOMMAND(3) 1 MONGODBDRIVERCOMMAND(3)
The MongoDBDriverCommand class
INTRODUCTION
The MongoDBDriverCommand class is a value object that represents a database command.
To provide Command Helpers the MongoDBDriverCommand object should be composed.
CLASS SYNOPSIS
MongoDB.PP final
MongoDB.PP Methods
o finalpublic MongoDBDriverCommand::__construct (array|object $document)
EXAMPLES
Example #1
Composing MongoDBDriverCommand to provide a helper to create collections
<?php
class CreateCollection {
protected $cmd = array();
function __construct($collectionName) {
$this->cmd["create"] = (string)$collectionName;
}
function setAutoIndexId($bool) {
$this->cmd["autoIndexId"] = (bool)$bool;
}
function setCappedCollection($maxBytes, $maxDocuments = false) {
$this->cmd["capped"] = true;
$this->cmd["size"] = (int)$maxBytes;
if ($maxDocuments) {
$this->cmd["max"] = (int)$maxDocuments;
}
}
function usePowerOf2Sizes($bool) {
if ($bool) {
$this->cmd["flags"] = 1;
} else {
$this->cmd["flags"] = 0;
}
}
function setFlags($flags) {
$this->cmd["flags"] = (int)$flags;
}
function getCommand() {
return new MongoDBDriverCommand($this->cmd);
}
function getCollectionName() {
return $this->cmd["create"];
}
}
$manager = new MongoDBDriverManager("mongodb://localhost:27017");
$createCollection = new CreateCollection("cappedCollection");
$createCollection->setCappedCollection(64 * 1024);
try {
$command = $createCollection->getCommand();
$cursor = $manager->executeCommand("databaseName", $command);
$response = $cursor->toArray()[0];
var_dump($response);
$collstats = ["collstats" => $createCollection->getCollectionName()];
$cursor = $manager->executeCommand("databaseName", new MongoDBDriverCommand($collstats));
$response = $cursor->toArray()[0];
var_dump($response);
} catch(MongoDBDriverException $e) {
echo $e->getMessage(), "
";
exit;
}
?>
The above example will output:
object(MongoDBDriverCommand)#3(1) {
["command"]=>
array(3) {
["create"]=>
string(16) "cappedCollection"
["capped"]=>
bool(true)
["size"]=>
int(65536)
}
}
array(1) {
["ok"]=>
float(1)
}
array(16) {
["ns"]=>
string(29) "databaseName.cappedCollection"
["count"]=>
int(0)
["size"]=>
int(0)
["numExtents"]=>
int(1)
["storageSize"]=>
int(65536)
["nindexes"]=>
int(1)
["lastExtentSize"]=>
float(65536)
["paddingFactor"]=>
float(1)
["paddingFactorNote"]=>
string(101) "paddingFactor is unused and unmaintained in 2.8. It remains hard coded to 1.0 for compatibility only."
["userFlags"]=>
int(0)
["capped"]=>
bool(true)
["max"]=>
int(9223372036854775807)
["maxSize"]=>
int(65536)
["totalIndexSize"]=>
int(8176)
["indexSizes"]=>
object(stdClass)#4(1) {
["_id_"]=>
int(8176)
}
["ok"]=>
float(1)
}
PHP Documentation Group MONGODBDRIVERCOMMAND(3)