Search Results

Search: Posts Made By: kaf3773
2,719
Posted By kaf3773
Python-rrdtool try except rrdtool.error module object has no attribute error
I have this code that gives this error on Linux and will be grateful if you can help

import rrdtool

try:
ret_asd = rrdtool.update(myfile.rrd,'N:%s:%s' %(metric1, metric2)); ...
1,191
Posted By kaf3773
Using awk to match strings and outputing their corresponding values
Hi

I will appreciate it if you can help me out. I have a file that contains this data

System Load: 3244 card: 1903 CPU: 6% card: 1904 CPU: 6% card: 1905 CPU: 28% card: 1906 CPU: 28% card: 1907...
853
Posted By kaf3773
Migurus, This worked and i really appreciate...
Migurus,

This worked and i really appreciate your time !!!

Thanks
853
Posted By kaf3773
Combining the contents of two files
Hi,
I have a file a.csv on a Solaris 10 with the following content
you,me,them,us
us,them,you,me
them,you,meand i have a second file b.csv with only a date and time stamp as
2013-08-14 00:00:00...
2,353
Posted By kaf3773
Spawn snmptrap from python
Hi
I am trying to spawn an snmptrap from python but i keep getting the following error

Invalid version specified after -v flag: 2c -c public 192.168.2.162 SNMPv2-SMI::enterprises.3.1.1

here...
1,589
Posted By kaf3773
Python rrdtool try catch statement
I have a Python script that updates an rrd file with data it pulls from a database. Here is a snippet of the Python code

for i in range(numrowed):
row = curred.fetchone()
...
Forum: Ubuntu 03-15-2013
5,071
Posted By kaf3773
Ubuntu Install on Sun Fire X4100 network issues
Hi

I have two Sun Fire X4100 machines with Ubuntu 12.04 installed on them.
I am able to configure the Net Mgt port with an IP address and access the ILOM from the browser. I can also boot the...
Forum: Programming 02-04-2013
4,378
Posted By kaf3773
Pexpect telnet into one device and then from there to another
I am trying to use pexpect to telnet to a device and then subsequently
telnet from that device to another device but i am unable to. Here is the
script i wrote and the error i am getting

I will...
1,289
Posted By kaf3773
Python regular expression screen scrub
Hi

I am trying to write a python script that executes a command to screen scrub results below
I will appreciate it very much if you can help me with a python script that can
pick the percentage...
Forum: Programming 01-31-2013
1,355
Posted By kaf3773
I am a complete newbie when it comes to Python....
I am a complete newbie when it comes to Python. But i did it in php using

preg_match_all('/^(\d+)\s+(\d+)%/m', $content, $match, PREG_PATTERN_ORDER);
print_r($match[2][0]);

thats where i am...
Forum: Programming 01-30-2013
1,355
Posted By kaf3773
Python:Picking values from a table
Hi

I trying to write a python script that executes a command to screen scrub results below
I will appreciate it very much if you can help me with a python script that can
pick the percentage...
Forum: Solaris 01-28-2013
2,694
Posted By kaf3773
When i run the below script from a command line...
When i run the below script from a command line it works fine but i guess the next step is integrating it into php.

#!/opt/csw/bin/expect -f
spawn ssh me@localhost
expect -exact...
Forum: Solaris 01-28-2013
2,694
Posted By kaf3773
Well this is the script i was trying to run to...
Well this is the script i was trying to run to test if i could use expect. Can you suggest how i can export these environment variables. Thanks

<?php
ini_set("expect.loguser", "Off");
...
Forum: Solaris 01-27-2013
2,694
Posted By kaf3773
Solaris,PHP,Expect support
Hello All,

I installed php5 from OpenCSW but i believe it does not support the expect module.
I tried to run a php script to call expect to do a telnet to a device but i got this error

PHP ...
Forum: Ubuntu 01-22-2013
2,672
Posted By kaf3773
I do not get anything for 'subsystem request for...
I do not get anything for 'subsystem request for sftp' when i check for it in the auth.log file
Forum: Ubuntu 01-22-2013
2,672
Posted By kaf3773
I checked ~/.bash_history but no commands there...
I checked ~/.bash_history but no commands there show any transfer of files.

I can see from auth.log what user he logs in as and the opening of ssh sessions and from which IP he is connecting from.
Forum: Ubuntu 01-22-2013
2,672
Posted By kaf3773
How to know what app is being used for file transfer?
Hi

I have a Ubuntu box that one of our system admins transfers log files to.
I want to find out how the transfer of the file is done. That is whether he is pushing the
files with an app such...
5,270
Posted By kaf3773
Awesome thanks very much i really appreciate....
Awesome thanks very much i really appreciate. Thanks to Corona688 as well for your code.
5,270
Posted By kaf3773
I just tried this and it worked thanks a lot. I...
I just tried this and it worked thanks a lot.
I mentioned sed because i have been trying to use sed to do that so i understand a little bit of sed.

If you can kindly explain the code to me a...
5,270
Posted By kaf3773
Transposing lines in a csv file with sed
Hi
I have a large csv file with lines like below

Date,Status,orig,dest,in,out,when,where
2012-01-01 00:30:37,I,48,56,23,98,83,34
2012-06-17 15:00:38,I,72,43,12,65,34,12I will really appreciate...
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 07:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy