Bitcoin Forum
April 26, 2024, 05:32:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 [208] 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 ... 417 »
  Print  
Author Topic: [OS] nvOC easy-to-use Linux Nvidia Mining  (Read 417953 times)
Razvan17
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
October 03, 2017, 01:00:00 PM
 #4141

Ok, I'll do so.

Thank you!
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
NvidiaMining
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
October 03, 2017, 02:29:40 PM
 #4142

Hey guys, got two more questions:

1. On windows i was able to turn off the LEDs on my cards using either the terrible MSI Gaming App or the MSI LED tool. Is there some way to turn off the GPUs' lights using nvOC?

2. The telegram notifications do not work at all, i have created a bot, got the API, figured out the Chat-ID and can see the conversations with the bot on a webbrowser. Yet nvOC never sends anything. Guake has the AUTO_GRAM tab and announces "New telegram in 1800 seconds" but has not been sending anything so far

Thank you for your help!
kk003
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
October 03, 2017, 02:50:02 PM
 #4143

Guys help plz.
I want see how my rig ZEC farming via web browser.
How i can configure that? i didnt see in bash where i can add --api 127.0.0.1:42000 or 0.0.0.0:42000
When i add that in Miner.cfg it didnt work. i trying from another computer (rig ip):42000 and got nothing.
I'm writing the web stats for nvOC, its almost ready.
Hopefully will be pushed to next update
In the mean time, open 3main, find EWBF line for your coin and add the api args

Code:
screen -dmS miner $HCD --server $ZEC_POOL --user $ZECADDR --pass z --port $ZEC_PORT --api 0.0.0.0:42000;

Gonna be some thing like this :



Looks great!!!
papampi
Full Member
***
Offline Offline

Activity: 686
Merit: 140


Linux FOREVER! Resistance is futile!!!


View Profile WWW
October 03, 2017, 02:56:12 PM
 #4144

Any way to get the applied MC and CC over clock values from command line ?

azsh07
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
October 03, 2017, 02:57:34 PM
 #4145

hey guys, can someone point me how to mine zec in nicehash? I tried edit 1bash but no luck. Currently I using v019.

Thanks

edit*** - its okay now. I just reduce the MC to default setting and it running
kk003
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
October 03, 2017, 03:02:03 PM
 #4146

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 
papampi
Full Member
***
Offline Offline

Activity: 686
Merit: 140


Linux FOREVER! Resistance is futile!!!


View Profile WWW
October 03, 2017, 03:11:56 PM
 #4147

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

kk003
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
October 03, 2017, 03:19:02 PM
 #4148

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

EDIT: Not sure but some times ps may not work. Try to run ewbf, make it get the data from its config file (not from command line) and see if ps works. Hope helps.
papampi
Full Member
***
Offline Offline

Activity: 686
Merit: 140


Linux FOREVER! Resistance is futile!!!


View Profile WWW
October 03, 2017, 03:26:29 PM
 #4149

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

damNmad
Full Member
***
Offline Offline

Activity: 378
Merit: 104


nvOC forever


View Profile
October 03, 2017, 03:34:25 PM
 #4150

Guys help plz.
I want see how my rig ZEC farming via web browser.
How i can configure that? i didnt see in bash where i can add --api 127.0.0.1:42000 or 0.0.0.0:42000
When i add that in Miner.cfg it didnt work. i trying from another computer (rig ip):42000 and got nothing.
I'm writing the web stats for nvOC, its almost ready.
Hopefully will be pushed to next update
In the mean time, open 3main, find EWBF line for your coin and add the api args

Code:
screen -dmS miner $HCD --server $ZEC_POOL --user $ZECADDR --pass z --port $ZEC_PORT --api 0.0.0.0:42000;

Gonna be some thing like this :



Great work Papampi, it would be very useful for many fellow users a lot. I wish you all the luck with it Smiley

DeepOnion    ▬▬  Anonymous and Untraceable  ▬▬    ENJOY YOUR PRIVACY  •  JOIN DEEPONION
▐▐▐▐▐▐▐▐   ANN  Whitepaper  Facebook  Twitter  Telegram  Discord    ▌▌▌▌▌▌▌▌
Get $ONION  (✔Cryptopia  ✔KuCoin)  |  VoteCentral  Register NOW!  |  Download DeepOnion
kk003
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
October 03, 2017, 03:34:58 PM
 #4151

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

It is certainly more coherent to use 1bash vars.
If they are called ccminer to get the  directory name's identifier:
ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 2 | rev

We assume that the exec is in the first level of directory name wich identifies the miner.
damNmad
Full Member
***
Offline Offline

Activity: 378
Merit: 104


nvOC forever


View Profile
October 03, 2017, 03:43:01 PM
 #4152

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

It is certainly more coherent to use 1bash vars.
If they are called ccminer to get the  directory name's identifier:
ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 2 | rev

We assume that the exec is in the first level of directory name wich identifies the miner.

Just like to add my thoughts to it, can't we use COIN variable from 1 bash and

if COIN='MPH' ? get this result

Code:
CURRENT_COIN=$(head -n 1 /home/m1/current-profit)

and trim it

similarly do the same if its using COIN='NICE_HASH_PROFIT_SWITCHING'

DeepOnion    ▬▬  Anonymous and Untraceable  ▬▬    ENJOY YOUR PRIVACY  •  JOIN DEEPONION
▐▐▐▐▐▐▐▐   ANN  Whitepaper  Facebook  Twitter  Telegram  Discord    ▌▌▌▌▌▌▌▌
Get $ONION  (✔Cryptopia  ✔KuCoin)  |  VoteCentral  Register NOW!  |  Download DeepOnion
leenoox
Full Member
***
Offline Offline

Activity: 200
Merit: 101



View Profile
October 03, 2017, 03:47:33 PM
 #4153

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

Why don't you use source 1bash in your script then read any variable from 1bash to what is set instead of using ps and grep... eg. if $COIN="ZEC" then...

I had an idea to create REPORT script in similar manner so that people can run bash REPORT then post their problem with the report attached to the message in the forum. It will make troubleshooting and answering questions much easier than asking them did you set this, did you set that, what's your OC value... I was thinkering about how to execute it and it seems pulling variable settings from 1bash and supplementing with nvidia-smi/nvidia-settings is the best approach. With all the values on hand it's easy to either create report output or create web stats. We can work together on this... I think next week my schedule is more relaxed and i can work a bit on this

leenoox
Full Member
***
Offline Offline

Activity: 200
Merit: 101



View Profile
October 03, 2017, 03:49:37 PM
 #4154

hah... damNmad had the same idea... we posted at the same time lol... good thinkink

kk003
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
October 03, 2017, 03:51:22 PM
 #4155

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

It is certainly more coherent to use 1bash vars.
If they are called ccminer to get the  directory name's identifier:
ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 2 | rev

We assume that the exec is in the first level of directory name wich identifies the miner.

Just like to add my thoughts to it, can't we use COIN variable from 1 bash and

if COIN='MPH' ? get this result

Code:
CURRENT_COIN=$(head -n 1 /home/m1/current-profit)

and trim it

similarly do the same if its using COIN='NICE_HASH_PROFIT_SWITCHING'

Ok, I am going to stick here the beta code for my function system portion so may be usefull:

Code:
function system_info ()
{

# Clear the file's content if exists and is not empty
if [[ -s ~/kk003_telegram_data/system_data.txt ]]; then
    > ~/kk003_telegram_data/system_data.txt
fi

# Title for system information
echo "** System information **" >> ~/kk003_telegram_data/system_data.txt

# Hostname
if [[ "$SEND_RIG_HOSTNAME" == "YES" ]]; then
    echo -n "Hostname : " >> ~/kk003_telegram_data/system_data.txt
    hostname >> ~/kk003_telegram_data/system_data.txt
fi

# Worker name
if [[ "$SEND_WORKERNAME" == "YES" ]]; then
    echo -n "Worker   : " >> ~/kk003_telegram_data/system_data.txt
    echo "$WORKERNAME" >> ~/kk003_telegram_data/system_data.txt
fi

# Mining coin
if [[ "$SEND_MINING_COIN" == "YES" ]]; then
    echo -n "Coin     : " >> ~/kk003_telegram_data/system_data.txt
    echo "$COIN" >> ~/kk003_telegram_data/system_data.txt
fi

# Mining address
# Ok, here I take my chances and I'll try to get the mining address directly from the process list.
# The address field should be the larger string so that is what I will go for.
# What I do is replace spaces for new lines (\n) so I split the hole thing in lines.
# Then remove the line that contains "\home\m1" cos is/may be a large one and I know for sure this is not the mining address.
# Note that I scape the "\" with "/" on front.
# I get the larger line with the help of "awk"
# If there is a dot I remove all chars from it to the end of line cos as long as I know address don't have a dot (remove the worker name)
if [[ "$SEND_MINING_ADDRESS" == "YES" ]]; then
    MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')
    echo -n "Address  : " >> ~/kk003_telegram_data/system_data.txt
    if [[ "$MASK_MINING_ADDRESS" == "YES" ]]; then
ADDRESS_HEAD=$(echo "$MINING_ADDRESS" | cut -c1-5) # Get the first 5 chars
ADDRESS_TAIL=$(echo -n "$MINING_ADDRESS" | tail -c 5) # Get the last 5 chars
MASKED_ADDRESS=$ADDRESS_HEAD"*****"$ADDRESS_TAIL # Paste the hole thing
echo "$MASKED_ADDRESS" >> ~/kk003_telegram_data/system_data.txt
    else
echo "$MINING_ADDRESS" >> ~/kk003_telegram_data/system_data.txt
    fi
fi

# Miner exec name
if [[ "$SEND_MINER_EXEC_NAME" == "YES" && "$SEND_MINER_EXEC_PATH" == "YES" ]]; then
    MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")
    echo -n "Exec     : " >> ~/kk003_telegram_data/system_data.txt
    echo "$MINER_NAME" >> ~/kk003_telegram_data/system_data.txt
elif [[ "$SEND_MINER_EXEC_NAME" == "YES" ]]; then
    MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | grep -oE "[^/]+$")
    echo -n "Exec : " >> ~/kk003_telegram_data/system_data.txt
    echo "$MINER_NAME" >> ~/kk003_telegram_data/system_data.txt
fi

# Ips
if [[ "$SEND_PRIVATE_IP" == "YES" ]]; then
    echo -n "Private Ip : " >> ~/kk003_telegram_data/system_data.txt
    hostname -I >> ~/kk003_telegram_data/system_data.txt
fi

if [[ "$SEND_PUBLIC_IP" == "YES" ]]; then
    echo -n "Public Ip  : " >> ~/kk003_telegram_data/system_data.txt
    PUBLIC_IP=$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')
    if [[ "$MASK_PUBLIC_IP" == "YES" ]]; then
IP_ADDRESS_HEAD=$(echo "$PUBLIC_IP" | cut -c1-3) # Get the first 3 chars
IP_ADDRESS_TAIL=$(echo -n "$PUBLIC_IP" | tail -c 3) # Get the last 3 chars
IP_MASKED_ADDRESS=$IP_ADDRESS_HEAD"*****"$IP_ADDRESS_TAIL # Paste the hole thing
echo $IP_MASKED_ADDRESS >> ~/kk003_telegram_data/system_data.txt
    else
echo $PUBLIC_IP >> ~/kk003_telegram_data/system_data.txt
    fi
fi

# Up since
echo -n "Up since   : " >> ~/kk003_telegram_data/system_data.txt
uptime -s >> ~/kk003_telegram_data/system_data.txt

# Up time
echo -n "Time up    : " >> ~/kk003_telegram_data/system_data.txt
uptime -p | sed 's/up //' >> ~/kk003_telegram_data/system_data.txt

# Ram
if [[ "$SEND_RAM" == "YES" ]]; then
    echo -n "Ram : " >> ~/kk003_telegram_data/system_data.txt
    RAM=$(grep MemTotal /proc/meminfo | awk '{print $2}' | xargs -I {} echo "scale=4; {}/1024^2" | bc)
    echo "$RAM Gb"  >> ~/kk003_telegram_data/system_data.txt
fi

# Cpu model
echo -n "Cpu : " >> ~/kk003_telegram_data/system_data.txt
CPU_MODEL=$(cat /proc/cpuinfo | grep 'model name' | uniq | cut -d":" -f2)
NUMBER_OF_CORES=$(nproc) # Number of cores
CPU_SPECS="$CPU_MODEL (cores = $NUMBER_OF_CORES)"
echo $CPU_SPECS >> ~/kk003_telegram_data/system_data.txt

# Load average
echo "Load average : " >> ~/kk003_telegram_data/system_data.txt
# Get cpu load average for 1, 5 and 15 minutes in a single string and remove spaces
AVERAGES=$(uptime | sed 's/.*: //g; s/ //g')
 
AVERAGE_1=$(echo $AVERAGES | cut -d"," -f1)
AVERAGE_5=$(echo $AVERAGES | cut -d"," -f2)
AVERAGE_15=$(echo $AVERAGES | cut -d"," -f3)

# Returns "1" when the load average is equal or greater than number of cpu cores
# else returns "0"
AVERAGE_1_HIGH=$(echo "$AVERAGE_1 >= $NUMBER_OF_CORES" | bc -l )
AVERAGE_5_HIGH=$(echo "$AVERAGE_5 >= $NUMBER_OF_CORES" | bc -l )
AVERAGE_15_HIGH=$(echo "$AVERAGE_15 >= $NUMBER_OF_CORES" | bc -l )

# Check if load average is to high
if [[ $AVERAGE_1_HIGH -eq 1 ]]; then
    echo "$AVERAGE_1 (last minute) WARNING: cpu load average too high" >> ~/kk003_telegram_data/system_data.txt
    WARNING_CPU_LOAD_AVERAGE="WARNING: Cpu load average too high!!!"
    WARNING=1
else
    echo "$AVERAGE_1 (last minute)" >> ~/kk003_telegram_data/system_data.txt
fi

if [[ $AVERAGE_5_HIGH -eq 1 ]]; then
    echo "$AVERAGE_5 (last 5 minutes) WARNING: cpu load average too high" >> ~/kk003_telegram_data/system_data.txt
    WARNING_CPU_LOAD_AVERAGE="WARNING: Cpu load average too high!!!"
    WARNING=1
else
    echo "$AVERAGE_5 (last 5 minutes)" >> ~/kk003_telegram_data/system_data.txt
fi

if [[ $AVERAGE_15_HIGH -eq 1 ]]; then
    echo "$AVERAGE_15 (last 15 minutes) WARNING: cpu load average too high" >> ~/kk003_telegram_data/system_data.txt
    WARNING_CPU_LOAD_AVERAGE="WARNING: Cpu load average too high!!!"
    WARNING=1
else
    echo "$AVERAGE_15 (last 15 minutes)" >> ~/kk003_telegram_data/system_data.txt
fi

if [[ $AVERAGE_1_HIGH -eq 1 || $AVERAGE_5_HIGH -eq 1 || $AVERAGE_15_HIGH -eq 1 ]]; then
    echo $WARNING_CPU_LOAD_AVERAGE >> ~/kk003_telegram_data/system_data.txt
fi

# who is logged in the system
if [[ "$SEND_LOGGED_USERS" == "YES" ]]; then
    echo "Logged in users : " >> ~/kk003_telegram_data/system_data.txt
    who >> ~/kk003_telegram_data/system_data.txt

    # Here I check if there is an open sesion on any display (like display 0). If not may be the x server is down
    DISPLAY=$(who | grep "(:")

    if [[ -z "$DISPLAY" ]]; then
WARNING_DISPLAY="WARNING: Not a user logged in any Display. May be X server is NOT running"
echo $WARNING_DISPLAY >> ~/kk003_telegram_data/system_data.txt
WARNING=1
    fi

    echo "" >> ~/kk003_telegram_data/system_data.txt
fi

# Ensure system has all gpus
echo "System is reporting : $GPU_COUNT Gpus" >> ~/kk003_telegram_data/system_data.txt
echo "System should have  : $NUMBER_GPUS_FOR_SURE Gpus" >> ~/kk003_telegram_data/system_data.txt

if [[ $GPU_COUNT -ne $NUMBER_GPUS_FOR_SURE ]]; then
    echo "WARNING: THERE MAY BE A PROBLEM; we should have $NUMBER_GPUS_FOR_SURE GPUs but nvidia-smi reports $GPU_COUNT" >> ~/kk003_telegram_data/system_data.txt
fi

echo "" >> ~/kk003_telegram_data/system_data.txt

}

damNmad
Full Member
***
Offline Offline

Activity: 378
Merit: 104


nvOC forever


View Profile
October 03, 2017, 03:52:26 PM
 #4156

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

Why don't you use source 1bash in your script then read any variable from 1bash to what is set instead of using ps and grep... eg. if $COIN="ZEC" then...

I had an idea to create REPORT script in similar manner so that people can run bash REPORT then post their problem with the report attached to the message in the forum. It will make troubleshooting and answering questions much easier than asking them did you set this, did you set that, what's your OC value... I was thinkering about how to execute it and it seems pulling variable settings from 1bash and supplementing with nvidia-smi/nvidia-settings is the best approach. With all the values on hand it's easy to either create report output or create web stats. We can work together on this... I think next week my schedule is more relaxed and i can work a bit on this

Great idea, it would help us to find and fix the problems for all newbies very quickly and easily. Looking forward for it, I may add bits and bobs once I see your initial version. Good Luck Smiley

DeepOnion    ▬▬  Anonymous and Untraceable  ▬▬    ENJOY YOUR PRIVACY  •  JOIN DEEPONION
▐▐▐▐▐▐▐▐   ANN  Whitepaper  Facebook  Twitter  Telegram  Discord    ▌▌▌▌▌▌▌▌
Get $ONION  (✔Cryptopia  ✔KuCoin)  |  VoteCentral  Register NOW!  |  Download DeepOnion
Razvan17
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
October 03, 2017, 04:31:50 PM
 #4157

The rig restart the miner each 11-12 hours, only the miner without to restart the OS. I am curently mining ETH+DCR on suprnova. On nicehash (ETH+DCR) it didnt happent with the same configuration. Is it normal?

Thx!
Not normal,
Set telegram alert so it notify you if gpu lost, low utilization , ....

I just did it. Thx for advice. Let's see if it will restart again and what would be there about temps, gpu's.....

Can you please explain what is the difference between the 3 types of telegrams? papampi, baliminer and kk003.
Razvan17
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
October 03, 2017, 04:55:57 PM
 #4158

The rig restart the miner each 11-12 hours, only the miner without to restart the OS. I am curently mining ETH+DCR on suprnova. On nicehash (ETH+DCR) it didnt happent with the same configuration. Is it normal?

Thx!
Not normal,
Set telegram alert so it notify you if gpu lost, low utilization , ....

I just did it. Thx for advice. Let's see if it will restart again and what would be there about temps, gpu's.....

Can you please explain what is the difference between the 3 types of telegrams? papampi, baliminer and kk003.

And searching the sys log file I found this:


Oct  3 10:33:56 m1-desktop org.gtk.vfs.Daemon[1267]: ** (process:2863): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: The specified location is not mounted
Oct  3 10:52:00 m1-desktop org.gtk.vfs.Daemon[1267]: message repeated 4 times: [ ** (process:2863): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: The specified location is not mounted]
Oct  3 11:17:01 m1-desktop CRON[26725]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct  3 12:17:01 m1-desktop CRON[28669]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct  3 12:44:01 m1-desktop CRON[29560]: (root) CMD (   test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond)
Oct  3 13:17:01 m1-desktop CRON[30928]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct  3 13:43:05 m1-desktop systemd[1]: Started Session c2 of user m1.


I see a warning 10:33 and arround 13:00, I guess 13:43:05 the miner restarted.
Can someone explain it a lil?

Thx!
joshuajones02
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile
October 03, 2017, 05:23:53 PM
 #4159

I'm trying to learn how to properly use the 1Bash file.. I have it currently up and running and is stable so far and very impressed but I would like assistance with reducing power and overclocking the GPU's core (1080ti's).. My questions are probably extremely "newbie-like" so if someone can PM me I would appreciate it.

| World Fintech Startups | Microsoft Azure Partner | $1,5 M Raised During pre-ICO |
     BANKEX - Proof-of-Asset Protocol     
| WHITE PAPER | BLOGSLACKTELEGRAMBITCOINTALKGITHUBTWITTERYOUTUBEFACEBOOK |☰
papampi
Full Member
***
Offline Offline

Activity: 686
Merit: 140


Linux FOREVER! Resistance is futile!!!


View Profile WWW
October 03, 2017, 05:39:16 PM
 #4160

To all those bash experts...
Need an script to give me what miner is running so I can make the Miner Output tailored for each miner


I have this code that I am using in my beta telegram script I'll post some day to this forum:

Minig address:
MINING_ADDRESS=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | sed '/\home\/m1/d' | awk ' { if ( length > x ) { x = length; y = $0 } }END{ print y }' | sed 's/\..*//')

Exec:
MINER_NAME=$(ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/")

Not sure is good for what you need. Not sure yet if I will get these vars from system or Nvoc vars.
 

Thanks,
but I need some thing to only give miner name,
so if I'm mining zec with zm dstm ,
it gives me zm not home/m1/zec/zm/zm

May be easier that I strip variables from 1bash.

ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 1 | rev

Nice,
Now another problem all ccminers are ccminer and directory name is identifier.
I should go with 1bash variables, much easier for sure.
Thanks any way.

It is certainly more coherent to use 1bash vars.
If they are called ccminer to get the  directory name's identifier:
ps aux | grep -v grep | grep " miner " | sed 's/ /\n/g' | grep "/home/m1/" | rev | cut -d'/' -f 2 | rev

We assume that the exec is in the first level of directory name wich identifies the miner.

Just like to add my thoughts to it, can't we use COIN variable from 1 bash and

if COIN='MPH' ? get this result

Code:
CURRENT_COIN=$(head -n 1 /home/m1/current-profit)

and trim it

similarly do the same if its using COIN='NICE_HASH_PROFIT_SWITCHING'

That is already included,
I was thinking of a  better way to trim and post all miners output to the page.
Think I found it... no worries.

Pages: « 1 ... 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 [208] 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 ... 417 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!